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 title of graph gr_emp,
code:
1 |
gr_emp.TitleDispAttr.Italic = TRUE |
Similarly, to turn on autoscaling of a graph’s Values
axis, code:
1 |
gr_emp.Values.Autoscale = TRUE |
To change the label text for the Values axis, code:
1 |
gr_emp.Values.Label = "New label" |
To change the alignment of the label text in the Values axis,
code:
1 |
gr_emp.Values.LabelDispAttr.Alignment = Left! |
For a complete list of graph properties, see Objects
and Controls or use the Browser.
For more about the Browser, see the PowerBuilder Users
Guide.
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest