AutoScale  AutoSkip

Chapter 3: Property Descriptions and Usage

AutoSize

Applies to

grDispAttr objects within Graph controls

Description

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.

Usage


In a painter

StepsTo enable automatic sizing of text objects:

  1. Display the Text tab page of the control’s Properties view.

  2. Select a text object from the Text Object list.

  3. 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.


In scripts

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. AutoSkip

View this book as PDF