adapting button width to string

View: New views
4 Messages — Rating Filter:   Alert me  

adapting button width to string

by Thierry-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

looking for any howto/Faqs/Tutorials
or Doc entry to manage the resizing of a
button depending on the real width of
the label ( dynamic one ),
or put it in the other way
how to calculate the width in pixels of a line of text.

Thanks for any hints,

Regards,
Thierry

_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: adapting button width to string

by Eric Chatonet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Bonjour Thierry,

Le 14 mai 08 à 10:13, Thierry a écrit :

> Hi all,
>
> looking for any howto/Faqs/Tutorials
> or Doc entry to manage the resizing of a
> button depending on the real width of
> the label ( dynamic one ),
> or put it in the other way
> how to calculate the width in pixels of a line of text.
>
> Thanks for any hints,
>
> Regards,
> Thierry

Have a look at formattedWidth.

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet@.../
----------------------------------------------------------------


_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: adapting button width to string

by Mark Schonewille-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Thierry,

Can't you simply set the width of the button to its formattedWidth?

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software.  
Download at http://www.salery.biz

Op 14-mei-2008, om 10:13 heeft Thierry het volgende geschreven:

> Hi all,
>
> looking for any howto/Faqs/Tutorials
> or Doc entry to manage the resizing of a
> button depending on the real width of
> the label ( dynamic one ),
> or put it in the other way
> how to calculate the width in pixels of a line of text.
>
> Thanks for any hints,
>
> Regards,
> Thierry



_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Re: adapting button width to string

by Thierry-24 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks  Mark, Eric

> Can't you simply set the width of the button to its formattedWidth?

Seems to be the property to use.

Regards,
Thierry

_______________________________________________
use-revolution mailing list
use-revolution@...
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution