Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
The textAlign
property returns or sets the way Paint text, text in a field, or a button name aligns within its rectangle. It can align left
, right
, or center
. The default value is left
for fields and paint text, and center
for buttons.
You can set the textAlign
for radio buttons and check boxes, but the text always displays aligned left
.
You can’t set the textAlign
for a chunk of text.
One of the following:
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
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: When a button receives a message: 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”.button
me
[the] target