Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
The width
property returns or sets an integer equal to the width in pixels of the specified object or window. Setting the width of a button, field, or card window resizes it.
Setting the width of a card resizes all the cards in a stack.
You can't set the menu bar's width.
Note: HyperCard restricts the width of a card to 32-pixel increments beginning from 64, the smallest width. For example, setting the width of a card to 420 results in a width of 416.
HyperCard maintains the location (center coordinate) of the object, expanding or shrinking it on both sides evenly.
HyperTalk Definition
An expression that identifies a button by name, number, or id, using one of the following forms:
For example:
When used inside a button script: me
When a button receives a message: [the] target
A button can also be referred to as a part when you’re talking about its position among all buttons and fields within the same card or background.
AppleScript Definition
An expression that identifies a button by name, number, or id, using the same forms as HyperTalk except that “background” must be used in place of “bkgnd”.
An expression that evaluates to a positive or negative integer or to zero. For example:
In AppleScript, integer is a value class.
An expression that identifies a field by name, number, or id using one of the following forms (in AppleScript, use “background” in place of “bkgnd”):
-- name
card field id 3894
card field "My Notes"
card field 1
first card field
background field 3 of card 1
An expression that identifies a card by name, number, or id using one of the following forms (in AppleScript, use “background” in place of “bkgnd”): For example: When used inside a card script in HyperTalk: When a card receives a message: See also: One of HyperCard’s built-in windows, the window containing the current stack (called the card window), or any other window containing a stack, as follows: Note: If a window containing a stack is inactive, you can set only its Important: External windows can’t be substituted for the card
me
[the] target
button
and field
window
location
and visible
properties.window
placeholder (see the externalWindow
placeHolder).