guides:programming:programmers_reference_manual:dropformatlist

DROPFORMATLIST Property

Drop Target controls.

Contains an @fm-delimited list of data formats accepted by the control. The list is sorted in order of preference. During DRAGOVER events the system will examine the data be being dragged and compare it to the formats in this list, selecting the first match it finds.

dropFormat = Get_Property(dragSource, "DROPFORMATLIST")

An @fm-delimited list of data formats being dragged.

Control TypeFormatsNotes
BITMAPBITMAP
FILENAMEif applicable
COMBOBOX(Item)TEXT
COMBOBOX(List)OI_LIST@fm-delimited list
TEXTCRLF-delimited list
EDITLINETEXT
EDITBOXTEXTCRLF-delimited list
EDITTABLE(Cell)TEXT
EDITTABLE(Rows)OI_EDT_ROWLIST@fm/@vm - delimited list
TEXTCRLF/TAB delimited list
LISTBOXOI_LIST@fm-delimited list
TEXTCRLF-delimited list

DRAGSOURCE property, DRAGFORMATLIST property, GETDRAGDATA message, SETDRAGDATA message, REMOVEDRAGDATA message, CLEARDRAGDATA message.

Declare function Get_Property, Set_Property

 

dropTarget = Get_Property("SYSTEM","DROPTARGET")

dropFormatList = Set_Property(dropTarget,"DROPFORMATLIST")
  • guides/programming/programmers_reference_manual/dropformatlist.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1