menu buttons and showname
J. Landman Gay
jacque at hyperactivesw.com
Thu Jul 2 02:17:45 EDT 2015
On 7/1/2015 8:52 PM, Peter Haworth wrote:
> The showName property needs to be true for the the user's selected choice
> 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 be empty,
> its name is displayed instead of empty which normally isn't something you
> want to happen.
The general rule is as the dictionary says: if showname is true and the
object has a label, the label is displayed. Otherwise the name is displayed.
But option button have dynamic labels that change to reflect the current
selection. If there is no text in the button at all, then there can be
no selection and therefore there can be no label. Since there is no
label, its name is displayed.
You'd think combo boxes would do the same thing, but those are a sort of
hybrid field/button object and the so-called "label" portion responds
like a field, where empty really can be empty.
--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list