menu buttons and showname
dunbarx at aol.com
dunbarx at aol.com
Thu Jul 2 05:23:23 CEST 2015
I am misunderstanding. In an option menu, if I have, say, the second line of the text of the button as empty, I get empty in the selected choice. This has nothing to do with the name of the button itself, which does not show itself, nor the state of the show name.
This is the behavior of an ordinary button, where if the label is not empty, then that label is shown as the "name" of the button, taking the place of the actual name.
What am I missing?
From: Peter Haworth <pete at lcsql.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Wed, Jul 1, 2015 9:52 pm
Subject: menu buttons and showname
I've struggled with using the showName property of a menu button pretty
ever since I started using LC and beginning to wonder if I'm
The showName property needs to be true for the the user's
from, for example, an option menu to be displayed. First
problem - that's
the label not the name. But if the text of the menu happens to
its name is displayed instead of empty which normally isn't something
want to happen.
The dictionary says "If the
<https://inbox.google.com/u/1/glossary/o/329.xml> has a *label*
instead of the name." but I have not found that to be the case. If a
button has non-empty text and label and you set the text to empty, its
is displayed, not the label.
A good number of my menus are populated in
a mouseDown handler with dynamic
content which may be empty. My workaround has
been to check for empty and
either set the button text to space, or set the
showName property to false
and be sure to set it to true in the menu's menuPick
This isn't a huge deal but am I missing something obvious? Wouldn't
use-livecode at lists.runrev.com
Please visit this url to subscribe,
unsubscribe and manage your subscription
More information about the use-livecode