How parts of a graph are represented  Accessing data properties

Chapter 7: Manipulating Graphs in Windows

Referencing parts of a graph

You use dot notation to reference these display properties. For example, one of the properties of a graph’s title is whether the text is italicized or not. That information is stored in the boolean Italic property in the TitleDispAttr property of the graph.

For example, to italicize the title of graph gr_emp, code:

gr_emp.TitleDispAttr.Italic = TRUE

Similarly, to turn on autoscaling of a graph’s Values axis, code:

gr_emp.Values.Autoscale = TRUE

To change the label text for the Value axis, code:

gr_emp.Values.Label = "New label"

To change the alignment of text in the Value axis’s label text, code:

gr_emp.Values.LabelDispAttr.Alignment = Left!

For a complete list of graph properties, see the online Help for the graph control.





Copyright © 2004. Sybase Inc. All rights reserved. Accessing data properties

View this book as PDF