guides:programming:programmers_reference_manual:coldropdownlist_message

COLDROPDOWNLIST message

Sets or retrieves the Drop Down list used within an edit table's COLUMN, a ROW, or a particular CELL.

Edit table

text = Send_Message( controlID, "COLDROPDOWNLIST", column, dropdownlist )

For COLDROPDOWNLIST, the Send_Message function has the following parameters.

ParameterDescription
columnThe column number to which Drop Down list should be applied.
dropdownlistAn @vm delimited list of values

Introduced in OpenInsight 9.0.

The Styles that can be set are outlined in the Edit Table Column Styles topic of the Programmer's Reference.

*****************************************************************************
// Flag the first column In an edit table as a drop down column.
// The drop down will allow for the entering of data not in the
// drop down list.
*****************************************************************************
posStyle = Send_Message(EditTable, "STYLE_BY_POS", 1, 0)

posStyle = bitor(posStyle, DTCS_DROPDOWNEDIT$)
posStyle = Send_Message(EditTable, "STYLE_BY_POS", 1, 0, posStyle)

// Establish the list of values in the drop down.
dropdownItems = "Gold" : @vm : "Silver" : @vm : "Bronze"

// Populate the Drop Down values In the column
dropDownList = Send_Message(EditTable, "COLDROPDOWNLIST", 1,  dropdownItems)
  • guides/programming/programmers_reference_manual/coldropdownlist_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1