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, "DROPDOWNLIST_BY_POS", column, row , dropdownlist)
For STYLE_BY_POS, the Send_Message function has the following parameters.
Parameter | Description |
---|---|
column/row | When the column and row parameters are both positive, the style parameter is applied to the cell in the column and row specified. When the column parameter is positive and row parameter is 0, the style parameter is applied to the entire column specified. When the column parameter is 0 and row parameter is positive the style parameter is applied to the entire row specified. |
dropdownlist | An @vm delimited list of values |
The order of processing is CELL overrides ROW, ROW overrides COLUMN.
The Styles that can be set are outlined in the Edit Table Column Styles topic of the Programmer's Reference.
Edit Table Column Styles, COLSTYLE message, COLDROPDOWNLIST message, STYLE_BY_POS message
****************************************************************** // Create a DropDown in the Cell at Column 2, Row 5 origColStyle = Send_Message( EditTable, "STYLE_BY_POS", 2,5 ) newColStyle = bitor( origColStyle, DTCS_DROPDOWN$ ) ColStyle = Send_Message( EditTable, "STYLE_BY_POS", 2, 5, newColStyle ) dropDownList = "Yes" : @vm : "No" dropDown = Send_Message( EditTable, "DROPDOWNLIST_BY_POS", 2, 5, dropDownList ) // Create a Drop Down across Row 6 origColStyle = Send_Message(EditTable, "STYLE_BY_POS", 0,6) newColStyle = bitor(origColStyle, DTCS_DROPDOWN$) ColStyle = Send_Message(EditTable, "STYLE_BY_POS", 0, 6, newColStyle) dropDownList = "Yes" : @vm : "No" : @vm : "Meaningless" dropDown = Send_Message( EditTable, "DROPDOWNLIST_BY_POS", 0, 6, dropDownList ) // Create a Drop Down in column 1 origColStyle = Send_Message(EditTable, "STYLE_BY_POS", 1, 0) newColStyle = bitor(origColStyle, DTCS_DROPDOWN$) ColStyle = Send_Message(EditTable, "STYLE_BY_POS", 1, 0, newColStyle) dropDownList = "A" : @vm : "B" : @vm : "C" dropDown = Send_Message( EditTable, "DROPDOWNLIST_BY_POS", 1, 0, dropDownList ) |