Rectangle control
A rectangle is a filled or outlined rectangular form within a window
and is typically used for design purposes. For example, you can put a
CommandButton or a picture in a rectangle, or you can use a rectangle
behind and slightly offset from another control to create a shadow effect.
When you use a rectangle to group controls, the grouping does not affect
the behavior of the controls in the rectangle.
Properties
|
Rectangle property |
Datatype |
Description |
|---|---|---|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
Long |
Specifies the numeric value of the color used to |
|
|
FillPattern (enumerated) |
Specifies the hatch pattern used to fill the BDiagonal! Diamond! FDiagonal! Horizontal! Solid! Square! Vertical! FDiagonal! |
|
|
Integer |
Specifies the height of the control, in |
|
|
Long |
Specifies the numeric value of the line color: -2 |
|
|
LineStyle (enumerated) |
Specifies the pattern of the line used to draw the Continuous! Dash! DashDot! DashDotDot! Dot! Transparent! |
|
|
LineThickness |
Integer |
Specifies the thickness of the line used to draw |
|
String |
Specifies the tag value assigned to the |
|
|
Boolean |
Specifies whether the control is visible. Values TRUE — Control is visible. FALSE |
|
|
Integer |
Specifies the width of the control, in PowerBuilder |
|
|
Integer |
Specifies the X position (the distance from the |
|
|
Integer |
Specifies the Y position (the distance from the top |
Events
|
Rectangle event |
Occurs |
|---|---|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
Functions
|
Rectangle function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Integer |
Makes the control invisible |
|
|
Integer |
Moves the control to a specified |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Changes the size of the control |
|
|
Integer |
Makes the control visible |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the type of the control |