TextSize Property


For the text tool:
set the textSize to <pointSize> For objects: set the textSize of [<chunk> of | <part> of] <object> to <pointSize> Applies to bitmaps, buttons, datasheets, fields, groups, movies, picklists, shapes, the text tool (global painting)


The textSize property determines the size of the font in an item of text, or text typed at an insertion point selected with the text tool. Object parts are listed in the following table: Bitmap and field parts: label DataSheet and pickList parts: colLabel, column (col) Field chunks: char, item, line, word With the exception of movies, if you do not specify a part, textSize will affect the entire object; however, setting textSize on a field, pickList, or dataSheet affects only the data contained in the object. The font size is measured in pixels from the top of the tallest uppercase letter to the bottom of the longest lowercase descender. The textSize can be any integer from 1 to 255, but the sizes installed and available in your computer's system produce the best results. The textSize property can be changed by using the set command and retrieved by using the get command.


If you wish to change the textSize of a chunk of a field, the field's multiFont property must be set to true. You must also exactly specify the text whose size you wish to change: set the textSize of char 5 to 10 of fld 2 to 18


Create a multifont field and name it "test". Type two words into the field and assign them different sizes using the "Size" option from the "Text" menu. Now, type the following into the Message Box and press Enter after each: get the textSize of word 1 of fld "test"
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.