"One optionMenu to rule them all..."
Posted: Sun Jun 03, 2018 11:08 pm
I'm writing an app that needs to run on Windows desktop, and Android and iPhone. The app is going to need to have a lots (couple of hundred) of buttons that allow the user to pick from a pre-defined list of items. Typically the user will need to choose from a list of between 10 and 30 items.
For Windows, the tools palette option menu meets my needs perfectly.
But on Android the tools palette option menu doesn't work as-is, and I understand that I need to use mobilePick. I did try adding the following script to my tools palette option menu and the early results looked promising -
on mouseUp
if the environment is "mobile" then
mobilePick the text of me
Put the result into itemSelected
set the label of me to line itemSelected of the text of me
End if
end mouseUp
The only immediately obvious problem with this solution was that the option menu chevron graphic (down arrow) didn't display correctly in Android.
I haven't yet tried iPhone.
Is there a recommended way to implement one option menu button that will work on Windows, Android & IOS; or do I need to implement different option menu buttons for Windows and Android (and possibly iPhone) and toggle their visibility on/off based on the platform?
Or is there a way to get the chevron graphic to display correctly on Android, or to turn off the chevron graphic?
Thanks in advance
Kim (LC9 on Windows 10)
I realise that this is a very similar post to the [unresolved] one linked here - viewtopic.php?f=49&t=25940&hilit=optionMenu
For Windows, the tools palette option menu meets my needs perfectly.
But on Android the tools palette option menu doesn't work as-is, and I understand that I need to use mobilePick. I did try adding the following script to my tools palette option menu and the early results looked promising -
on mouseUp
if the environment is "mobile" then
mobilePick the text of me
Put the result into itemSelected
set the label of me to line itemSelected of the text of me
End if
end mouseUp
The only immediately obvious problem with this solution was that the option menu chevron graphic (down arrow) didn't display correctly in Android.
I haven't yet tried iPhone.
Is there a recommended way to implement one option menu button that will work on Windows, Android & IOS; or do I need to implement different option menu buttons for Windows and Android (and possibly iPhone) and toggle their visibility on/off based on the platform?
Or is there a way to get the chevron graphic to display correctly on Android, or to turn off the chevron graphic?
Thanks in advance
Kim (LC9 on Windows 10)
I realise that this is a very similar post to the [unresolved] one linked here - viewtopic.php?f=49&t=25940&hilit=optionMenu