4D v14.3SET DRAG ICON |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
SET DRAG ICON
SET DRAG ICON
The SET DRAG ICON command associates the icon picture with the cursor during drag and drop operations that are managed by programming. This command can only be called in the context of the On Begin Drag Over form event (see the Form event command). In the icon parameter, pass the picture to use. Its maximum size is 256x256 pixels. If one of its dimensions exceeds 256 pixels, it is automatically resized. In horOffset and vertOffset, you can pass offset values in pixels:
If you omit this parameter, the cursor is placed at the center of the icon. In a form, a user can generate a label by dragging and dropping a row. In the object method of the list box, you can write: If(Form event=On Begin Drag Over) When you drag a row, the picture appears as shown here: Note that you can modify the position of the cursor with respect to the picture: SET DRAG ICON(vpict;0;0) |
PROPERTIES
Product: 4D
HISTORY
SEE ALSO ARTICLE USAGE
4D Language Reference ( 4D v14 R3) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||