Datagrid: empty Option Menu
Posted: Wed Nov 06, 2019 10:40 am
Hello,
I'm trying to use an Option Menu in a Datagrid cell.
Populating is OK, changing cell value with Option Menu is OK... All is OK but the Menu always seems empty, even if the Datagrid's data is correct and it's menuHistory is correct.
At this time, Option menu text is "a b c" for testing purpose.
Script:
Project browser:
Checkbox behavior at column 3 works fine.
Maybe I made stupid mistake but I don't understand why the Option Menu looks empty.
Thank you.
I'm trying to use an Option Menu in a Datagrid cell.
Populating is OK, changing cell value with Option Menu is OK... All is OK but the Menu always seems empty, even if the Datagrid's data is correct and it's menuHistory is correct.
At this time, Option menu text is "a b c" for testing purpose.
Script:
Code: Select all
on FillInData pData
lock messages // don't send "menuPick" msg
set the menuHistory of button 1 of me to (lineOffset(pData, the text of button 1 of me))
-- set the label of button 1 of me to pData
unlock messages
end FillInData
on menuPick pItem
SetDataOfIndex the dgIndex of me, the dgColumn of me, pItem
end menuPick
Maybe I made stupid mistake but I don't understand why the Option Menu looks empty.
Thank you.