Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== ACCEPTDROPFILES Property ====== ==== 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(): ^Value^Description^ |bValue|Boolean true (1) or false (0)| ==== Returns ==== Values returned by Get_Property and Set_Property Value ==== Description ==== ^Value^Description^ |canDrop|The Boolean status of the control’s ability to accept a DROPFILES event.| |couldDrop|The Boolean status of the control’s ability to accept a DROPFILES event, when Set_Property was run.| ==== Example ==== <code> 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) </code> guides/programming/programmers_reference_manual/acceptdropfiles.txt Last modified: 2024/06/19 20:20by 127.0.0.1