Use rectangles to organize objects
- Last Updated: December 28, 2023
- 2 minute read
- OpenEdge
- Version 13.0
- Documentation
You might not be inclined to think of a visualization as primitive as a rectangle as being a
real visual object at all, in the same sense that the other objects you looked at are.
But a rectangle has all the basic characteristics the other object types do:
- It has attributes you can set to change its appearance.
- It has a handle you can use to access the object and to set and query its attribute values.
- Though it would be unusual to do so, you can define triggers for a rectangle and apply events to it.
To add a rectangle to the sample window:
- Select its icon from the Palette.
- Use the mouse to drag a rectangular area around the Average Discount field and the corresponding slider value.
- Double-click on the rectangle (that is, anywhere within the area enclosed by the
rectangle that is not within another object) to bring up its property
sheet.
Because you are not going to define triggers or other code that references the rectangle, there is no need to change its default name.
- If you want the line to appear thicker, change the Edge
Pixels value from 2 to 4:
This is the code the AppBuilder generates for the rectangle:
|