Determines whether or not image files from a drag and drop operation automatically load.

Usage

Set_Property(OLECtrlEntID, "OLE.AutoLoadDropFile", Boolean)

Values

[True | False]

Default: False

Remarks

The AutoLoadDropFile property is a flag that you can set for added convenience. When the user drags files from Windows Explorer and drops them over a picture control, the OnFileDrop event fires without affecting any of the OLE Picture control's properties. This allows the developer to decide how the dropped files should be processed.

However, if you know that you always want to show dropped images immediately, then set this property to 1. When you do so, the Image property will be set to the first image file in the list of dropped files. By default, this property is set to 0.

Example

// Always show what the user dropped 
Set_Property(@Window:".OLE_PICTURE", "OLE.AutoLoadDropFile", 1)

See Also

OnFileDropImage

  • No labels