grDispAttr objects within Graph controls
The AutoSize property allows PocketBuilder to change the font size of the text object automatically according to the amount of text being displayed. If automatic sizing is not enabled, you must set the text size.
To enable automatic sizing of text objects:
Display the Text tab page of the control’s Properties view.
Select a text object from the Text Object list.
Select the AutoSize check box.
If you uncheck the AutoSize check box for a specific text object, set the text size for that object by selecting a value from the TextSize list.
The AutoSize property takes a boolean value and can be set via the grDispAttr object for each text component.
This example turns autosizing off for the graph control’s title and then sets a specific text size.
gr_1.TitleDispAttr.AutoSize = FALSE
gr_1.TitleDispAttr.TextSize = 10
This example turns autosizing off for the label of the Category Axis of the graph control and then sets a specific text size.
gr_1.Category.LabelDispAttr.AutoSize = FALSE
gr_1.Category.LabelDispAttr.TextSize = 8
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |