Error getting tags :
error 404Error getting tags :
error 404 width | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
width
Basics
Expander triangle
Type
Property
Syntax

set the width of object to numberOfPixels

Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
The width of an object is the distance from its left edge to its right edge.
Examples

set the width of the target to 100
set the width of button 1 to the formattedWidth of button 1

Additional Comments
Expander triangle

Use the width property to determine how much horizontal space an object needs, or to make it wider or narrower.

Value:

The width of an object is a positive integer.

Comments:

The width of a card is always the same as the width of its stack window. You can set the width of a card, but doing so has no effect and doesn't change the card's width property.

If you reduce the width of a stack, some objects may end up outside the stack window. These objects are not shown; however, they are still there, and will be displayed if you make the window wide enough.

If the object's lockLocation property is false, when you change its width, it shrinks or grows from the center: the object's left and right edges both shift, while the object's location property stays the same. If the object's lockLocation property is true, it shrinks or grows from the top left corner: the object's left edge stays in the same place, and the right edge moves.

The width of an object cannot be set to zero. Attempting to do so will set the width to 1 instead.

Cross-platform note: On Mac OS and OS X systems, the maximum width of an image is 16384 divided by the screen's bit depth. (For example, if the number of colors is "Millions", the maximum image width is 4096 pixels.)

User Comments
Expander triangle