DragIcon property for PowerScript controls
Controls
Draggable controls
Description
The DragIcon property specifies the icon to display when the
user drags the control. The default icon is a box the size of the
control. When the user drags a control, the icon displays when the
cursor is over an area in which the user can drop the control (a
valid drop area). When the cursor is over an area that is not a
valid drop area, the no-drop icon displays.
Usage
In a painter
To specify the drag icon:
-
Display the Other tab page of the control’s
Properties view. -
Click the down arrow on the DragIcon field and
select a stock icon from the list of stock icons, or use the Browse
button to select another icon (.ICO) file.
In scripts
The DragIcon property takes a string containing the name of
the icon file you want to display when the user drags the control.
You can specify a stock icon or any icon filename.
The following example sets the drag icon for a ListBox to
an icon called arrow.ico:
1 |
lb_1.DragIcon = 'c:examplesarrow.ico' |
This example sets the drag icon to the stock icon Question:
1 |
lb_1.DragIcon = 'Question!' |