TextAlign Property


For the text tool:
set the textAlign to <alignment> For objects: set the textAlign of [<part> of] <object> to <alignment>


The textAlign property determines the alignment of the text in an object or in a chunk of an object, except field chunks. Such text might be a button or movie label, a field's text, a column of a dataSheet, or text typed with the text tool in painting. Each property setting produces the effect described in the following list: Property Setting: right Effect: right-justified Property Setting: left Effect: left-justified Property Setting: center Effect: centered You can apply the textAlign property to the following object parts: Bitmap and field parts: label DataSheet and pickList parts: colLabel, \column (col)


Create a button with the following script: on mouseUp choose text tool put the textAlign into format if format = "left" then set the textAlign to center click at 100,100 type "Oracle Corporation" choose browse tool end mouseUp
This text has been mechanically extracted from the Oracle Media Objects MediaTalk Reference, © 1995 Oracle Corporation, and is provided here solely for educational/historical purposes.