Applies to

Window, Pushbutton, Edit line, Edit Box, ComboBox, ListBox, Edit table.

Description

A boolean property that lets the operating system know if a user can drag files from the Operating System shell to the OpenInsight form or control. When True, the DROPFILES event is raised when a file is dropped onto the control.

Usage

canDrop = Get_Property( objectname, "ACCEPTDROPFILES" ) couldDrop = Set_Property(objectname, "ACCEPTDROPFILES", bValue )

Remarks

Values passed in Set_Property():

ValueDescription
bValueBoolean true (1) or false (0)

Returns

Values returned by Get_Property and Set_Property

ValueDescription
canDropThe Boolean status of the control’s ability to accept a DROPFILES event.
couldDropThe Boolean status of the control’s ability to accept a DROPFILES event, when Set_Property was run.

Example

Declare function Get_Property, Set_Property
/* retrieve the ACCEPTDROPFILES property of an editline control and if true set to false and vice versa. */
equ TRUE$ to 1
equ FALSE$ to 0
fileControl = @window : ".EDT_FILES"
canDrop = Get_Property(fileControl, "ACCEPTDROPFILES")
if canDrop then
   shouldDrop = false$
end else
   shouldDrop = true$
end
couldDrop = Set_Property(fileControl, "ACCEPTDROPFILES", shouldDrop)
  • No labels