Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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

 

Code Block
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)