DisableDragDrop – PB Docs 150

DisableDragDrop property for PowerScript controls

Controls

TreeView controls

Description

The DisableDragDrop property determines whether events for
dragging, such as BeginDrag, are triggered when the user clicks
on an item within the control and drags. DisableDragDrop affects
only the dragging of items within the control.

When DisableDragDrop is true, no drag events
occur when the user tries to drag an item. To implement drag and
drop, write scripts for the appropriate dragging events.

DisableDragDrop also affects when selection occurs. When it
is true, an item the user clicks is selected
when the mouse button is pressed down. When it is false,
the item is selected when the mouse button is released.

Usage

In a painter

proc.png To disable drag and drop within the TreeView control:

  1. Select the DisableDragDrop check box on
    the General page of the control’s Properties view.

In scripts

The DisableDragDrop property takes a boolean value. The following
example prevents drag events from being triggered within a TreeView
control:


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x