Chart Director API for APPX ChartDirector setup manuals

Text Object Routines

Set the font, layout, and text box for a chart title, axis label, or legend.

Titles, axis labels, and legends can each have a current text object. Set the text box’s background or border to make the box visible. See how current objects work.

Create and select text objects

.TEXT INITIALIZE
Initialize a Text Object.
.TEXT SET CURRENT
Set the current Text Object to be a previously initialized Text Object.
.TEXT GET NAME
Get the name of the current Text Object.
.TEXT SET TEXT
Set the text of the current Text Object.

Fonts

.TEXT SET FONT NAME
Set the font name and font index for the current Text Object.
.TEXT SET FONT INDEX
Set the font index.
.TEXT SET FONT STYLE
Set the font style (normal, bold, italic) for the current Text Object.
.TEXT SET FONT SZ
Set the font size for the current Text Object.
.TEXT SET FONT SZ:H
Set the height of the font for the current Text Object.
.TEXT SET FONT SZ:W
Set the width of the font for the current Text Object.
.TEXT SET FONT CLR
Set the font color for the current Text Object.

Text boxes

The 'text object' is always contained in a 'text box'. By default, the 'text box' is not visible. These routines allow you to change the attribute of the 'text box' to make it visible, change the borders, etc.

.TEXT BX ALIGN
Set the alignment (position) of the current Text Box.
.TEXT SET BX BG CLR
Set the background color for the current Text Object.
.TEXT SET BX EDGE CLR
Set the edge color for the current Text Object.
.TEXT SET BX EDGE EFF
Set the edge effect (Flat, Raised, or Depressed) of the current Text Object.
.TEXT SET BX EDGE W
Set the edge width of the current Text Object.
.TEXT SET BX CNR STYLE
Set the corner style (Square or Rounded) of the current Text Object.
.TEXT SET BX CNR R
Set the corner radius of the current Text Object.
.TEXT SET BX CNR R:TL
Set the radius of the Top Left corner of the current Text Object.
.TEXT SET BX CNR R:TR
Set the radius of the Top Right corner of the current Text Object.
.TEXT SET BX CNR R:BR
Set the radius of the Bottom Right corner of the current Text Object.
.TEXT SET BX CNR R:BL
Set the radius of the Bottom Left corner of the current Text Object.
.TEXT SET BX LOC
Set the offset (x and y) of the current Text Object.
.TEXT SET BX LOC:X
Set the x offset of the current Text Object.
.TEXT SET BX LOC:Y
Set the y offset of the current Text Object.
.TEXT SET BX SZ
Set the size (height and width) of the current Text Object.
.TEXT SET BX SZ:H
Set the height of the current Text Object.
.TEXT SET BX SZ:W
Set the width of the current Text Object.
.TEXT SET BX Z ORDER
Set the Z Order of the current Text Object.

Margins, alignment, and rotation

.TEXT SET TXT MAX SZ
Set the maximum size (width and height) of the text that can be displayed in the current Text Object.
.TEXT SET TXT MAX SZ:W
Set the maximum width (in pixels) of the text that can be displayed in the current Text Object.
.TEXT SET TXT MAX SZ:H
Set the maximum height (in lines) of the text that can be displayed in the current Text Object.
.TEXT SET TXT MARGIN
Set the margins for the text in the current Text Object.
.TEXT SET TXT MARGIN:L
Set the Left margin for the text in the current Text Object.
.TEXT SET TXT MARGIN:R
Set the Right margin for the text in the current Text Object.
.TEXT SET TXT MARGIN:T
Set the Top margin for the text in the current Text Object.
.TEXT SET TXT MARGIN:B
Set the Bottom margin for the text in the current Text Object.
.TEXT SET TXT ROTATION
Set the rotation angle for the text in the current Text Object.
.TEXT SET TXT ALIGN
Set the alignment of the text in the current Text Object.
.TEXT SET TXT LAYOUT
Set the layout direction of the text to horizontal or vertical.

Comments:

Read what other users have said about this page or add your own comments.


 

-- JeanNeron - 2011-11-24
Topic revision: r5 - 03 Dec 2026, AdminUser - This page was cached on 04 Dec 2026 - 00:59.

Powered by Foswiki. Wiki content belongs to its contributing authors.