Introduction to PowerBuilder
Drawing Objects
You can make use of drawing objects to improve the appearance of the window you paint. You
can notice (from the picture below) that Drag-and-Drop properties are missing for controls
that fall under the Drawing category. Make a note that Drawing controls don't have any
events and moreover you can't define user-defined events (details in future sessions).
The only drawing control that has
interesting properties is the RoundRectangle. The "Corner Height" and "Corner Width" properties allow you to specify the degree of roundness
that should be applied to the corners. The "Corner
Height" property defines how far
from the corner on the vertical edges should the curve begin, while the "Corner Width" property affects the same, except that it affects the
horizontal edges.
Given the starting points, two for each
corner, PowerBuilder calculates the smoothest possible curve between the two points
closest to each corner, to produce a rounded rectangle.
|