Additional Tips and Notes

There are two additional classes, which are not X-Pert Graphics specific but are commonly used in the X-Pert Graphics scripts for various operations and functions. They are the [TRichEdit] and the [TBitmap32] class.

The [TRichEdit] class is often used with all X-Pert Graphics text objects, especially with procedure TTBObject.TextAssign(RichEdit: TrichEdit), described in Appendix 6 below. It allows you to change all kinds of formatting in a given text selection.

The [TBitmap32] class is used for creating and controlling Bitmap32 images. It is often associated with procedure TTBObject.ImageAssign(Bmp32: TBitmap32), described in Appendix 6 below. A Bitmap32 image will not be shown in the X-Pert Graphics work area, unless you paste it in a certain object in the grid. These variables need to be set Free after using in the script.

A description of all properties, procedures, and functions that the [TBitmap32] class supports is available in Appendix 6 below.

For your convenience, check the table below for the major functions of the classes, specifically created for X-Pert Graphics. It also shows whether or not they have to be set Free in the script after operation:

Class

Function

Free

TTBObject

To be linked to or create all types of object in X-Pert Graphics.

Yes

TTBSlide

To be linked to or create slides in your project.

Yes

TTBSlidesManager

To be linked to the Slides Manager in your project.

No

TTBDataProvider

To be linked to all Data Providers set in the Data Source Manager.

Yes

TTBDataDistributor

To be linked to all Data Distributors, set in the Data Source Manager.

No

TTBProject

To be linked to your current project in X-Pert Graphics.

No

TTBStorage

To save certain variables to be used in different scripts and / or projects within one X-Pert Graphics session.

No

TIP (!): If you are not certain whether you need to Free a certain variable or not, you can check the list of functions, procedures, and properties, related to its class in the Browser View. If [procedure: Free] exists there, then you have to free that particular variable. Otherwise, the variable does not need to be set free.