INFORMIX Visionary Tutorial

List of Tasks

If you test in this task, you will not see any changes. The next task shows you how to use the parameter Sbacklog to refine the Orders scene.

Tutorial Task #7

Refining Text Objects

You can refine the Orders scene by putting a title on it and making the labels for the wedges on the pie chart readable.

Make sure you are in design mode.

In the World Manager, click the Graphics tab

Click the Primitives button.

Click the Text object.

In the Scene Editor, click above the pie chart.

    Where you click becomes the location for your text.

Right-click the Text object and select Properties.

From the Object Inspector list box, select Text1.Font1. In the property cell for Size, enter 10.

In the Orders Scene, right-click Text and select Properties.

In the Object Inspector, with the default as Text1 in the list box, enter the expression If(Sbacklog="y","Backlog","Sales") for the Text property cell.

The property expression for the text creates two titles for the pie chart: Sales and Backlog. The one that displays for the title depends on the data.

In the Scene Editor, right-click the piechart and select Open Data Element.

In the DataElement Editor, right-click the wedge and select Properties.

From the Object Inspector list box, select AlignPanel1.Text1.Font1. In the property cell for Size, enter 8. In the property cell for Color, enter If(total_price>300, Black,White)

The property expression for Color shows only the manufacturers who have sold more than $300 worth of goods. Their names appear in black on the white background. Those manufacturers with less than $300 in sales do not show because their names are in white on the white background.

Click Runtime Mode to test. You should see a pie chart similar to the one that follows.


Copyright © 1998, Informix Software, Inc. All rights reserved.