DragAuto
property for PowerScript controls
Applies to
Draggable controls
Description
The DragAuto property determines whether PowerBuilder puts the
control into drag mode automatically. If the property is enabled, when the
user clicks the control and starts dragging it, PowerBuilder puts the
control in drag mode. Clicking the control triggers a DragDrop event, not
a Clicked event.
If DragAuto is not enabled, then when the user clicks the control,
PowerBuilder does not put the control in drag mode. You have to call the
Drag function to put the control into drag mode.
Usage
In a painter
To set DragAuto:
-
Select the DragAuto check box on the Other tab page of the
control’s Properties view.
In scripts
Most controls have a DragAuto property. It takes a boolean value.
The following example sets drag mode for a CommandButton.
|
1 |
cb_1.DragAuto = TRUE |