Datagrid Options Menu Label
Posted: Thu Jan 26, 2017 4:39 am
Hello, I wanted to check with forum on this. Isthe label of an Options Menu button supposed stay when you load the Options menu in a datagrid table. When I try using "set the label of btn.." it doesn't stick. I would like to have the label "Select:" and then my menu items underneath.
The only method I found that worked is below, but then Select is one of menu items.
Thanks for any help
The only method I found that worked is below, but then Select is one of menu items.
Code: Select all
on FillInData pData
-- This message is sent when the Data Grid needs to populate
-- this template with the column data. pData is the value to be displayed.
-- Example:
lock messages
set the text of btn "methodType" of me to "Select:"& cr & "Method A"& cr & "Method B"
set the menuhistory of button "methodType" of me to lineoffset(pData, the text of button "methodType" of me)
unlock messages
end FillInData