>Is there some trick to controlling the width of a standard 
>pushbutton (made with the Button tool) through script? I realize 
>that it's not an exciting programming challenge, but it seems odd 
>that I can control every other aspect of a pushbutton's appearance, 
>except for width. What am I missing?

You can't set the width, but you can set the rect. It's not a screen 
coordinate rect, it's local:

set the rect of member "some button" to rect(0,0,200,13)

The Y coordinates won't do much, the height is controlled by the text 
height of the font you've used for the button name. The top left of 
the sprite will remain where it is, and the width of the sprite (and 
member) will change to be the difference between the first and second 
X coordinates.


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to