menu buttons and showname

Peter Haworth pete at lcsql.com
Thu Jul 2 10:52:52 EDT 2015


So my technique of setting showname to false if the text is empty is the
only way round this?

Also, you can have a label for an option menu with empty text. Try setting
the text of an option menu to empty, then use the message box to set its
label to some value.

On Wed, Jul 1, 2015, 11:18 PM J. Landman Gay <jacque at hyperactivesw.com>
wrote:

> 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
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list