Underlined characters in button label?

Jeanne A. E. DeVoto jeanne at runrev.com
Wed Jan 1 23:03:01 EST 2003


At 3:48 PM -0800 1/1/03, Sarah wrote:
>I too have ben trying to apply different formats to various characters
>of a button name or label but not succeeding. I think Jeanne has
>provided the reason:
>
>> if you set a property, you need to set all of it - you can't set a
>> chunk of a property.
>
>The possible solutions suggested so far are:
>- use an image instead
>- use a font with special characters
>Neither of these are any good for me as I want the font & size
>user-selectable, so I'm still hoping for some other wonderful
>suggestions.

Hmm. You could fake it by putting  a transparent field on top of a button
with a label of a single space (so it's got no visible label) and group
them for ease of movement. You'd have to do a wee bit of scripting to make
sure the button size accommodates the text as it changes size/font, but
that should be easy for you....

--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
Runtime Revolution Limited - The Solution for Software Development
http://www.runrev.com/





More information about the use-livecode mailing list