Dynamic labels for buttons with (oddshaped) icon images?

Scott Rossi scott at tactilemedia.com
Thu Feb 5 23:47:29 CST 2009


Recently, J. Landman Gay wrote:

>> Maybe I'm thinking  a bit naive, but why shouldn't it then be possible
>> (for the engine) to combine these two
>> "states" and the result would be "the label on top of the icon" :-)
> 
> I see what you mean now. Yes, it would be much easier. Most of the image
> buttons I've made are set to the specific size of their image, so it
> hasn't been an issue for me. But yeah, having the engine do it would be
> a nice touch.
> 
> I suppose it would be possible to write a little script that would
> calculate the font size, compare it to the button height, and adjust the
> margins.

It's possible, but it's not a little script. :-)  I demoed a customizable
button object at the last RevLive conference in Vegas.  One can set the font
of the text, the orientation of the text, margins, and include an icon
(which orients itself as expected, as opposed to the current behavior). But
this all needs to be handled as a group of objects. Features in the upcoming
version of Rev will make this type of control much more practical for end
users.

Regards,

Scott Rossi
Creative Director
Tactile Media, Multimedia & Design





More information about the use-livecode mailing list