Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Hi,
I was trying to figure out how to write code for a popup menu to open - to show the menu options - when I came across a previous thread pertaining to it.
Code was given as
In the thread this was acclaimed to be the solution, but with me, the menu options were displayed only momentarily then disappeared, too quickly for the user to read them and click on a selection. I tried locking the screen but with no success.
Anyone got any ideas ?
v10.0(dp 4) : Windows 10
There are indeed many threads on this forum about that topic, including things to do after it opens. Looking at your code, it seems fine.The menu should stay open, because there is no reason for it to close. That said, I am on a Mac, and expect sanity.
I've spent a lot of time playing with this, changing the inspector settings and messing with the code, but cannot get the the menu options to stay visible. Perhaps I should mention that the options are long pieces of text, but they stay visible when I click the btn.
Anyone got any further ideas about this ?
dunbarx wrote: Wed Mar 22, 2023 3:35 pm
Anyone else duplicate, or have even heard of this?
It might be related to the general misbehaviour of popup buttons in Windows — that they do not pause the script to wait for user input (contrary to what the docs say and how it works on Mac).
but not even a glimpse of the options.
Thanks anyway.
If your popup menu button's name is not "popop menu1" then substitute "popop menu1" with the actual name of your popup menu button.
But if it still does not work, then good luck. It works on my Windows system.
Yes I have a Windows machine and the popup command works. We both came up with the same idea just a few minutes apart, but your button is named slightly better than mine.