CommandButton control
You use a CommandButton to carry out an action. For example, you can
use an OK button to confirm a deletion or a Cancel button to cancel the
requested deletion.
Properties
|
CommandButton property |
Datatype |
Description |
|---|---|---|
|
String |
A description of the control and/or its purpose for |
|
|
String |
A label that briefly describes the control, such as |
|
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the |
|
|
Boolean |
Specifies whether PowerBuilder moves the control to TRUE — Move to the top. FALSE — |
|
|
Boolean |
Specifies whether the control acts as the Cancel TRUE — Acts as the Cancel FALSE — Does not act as the Cancel |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
Boolean |
Specifies whether the control is the default TRUE — Acts as the FALSE — Does not act as the Editable controls Default |
|
|
Boolean |
Specifies whether PowerBuilder puts the control TRUE — FALSE — When the control is clicked, the |
|
|
String |
Contains the name of the stock icon or the file When the user drags the control, the |
|
|
Boolean |
Specifies whether the control is enabled (can be TRUE — Control is FALSE — Control is not |
|
|
String |
Specifies the name of the typeface in which the |
|
|
FlatStyle |
Boolean |
Specifies that the edge of the button displays only TRUE — Button has a flat FALSE — Button does not have a flat |
|
FontCharSet (enumerated) |
Specifies the font character set used for the text |
|
|
FontFamily (enumerated) |
Specifies the font family (type style) used for the AnyFont! Decorative! Modern! Roman! Script! Swiss! |
|
|
FontPitch (enumerated) |
Specifies the pitch (spacing) of the font used for Default! Fixed! Variable! |
|
|
Integer |
Specifies the height of the control, in |
|
|
Boolean |
Specifies whether the text in the control is TRUE — Text is FALSE — Text is not italic. |
|
|
String |
Specifies the name of the stock pointer of the file |
|
|
Integer |
Specifies the tab value of the control within the |
|
|
String |
Specifies the tag value assigned to the |
|
|
String |
Specifies the text that displays in the |
|
|
Integer |
Specifies the size of the text in the control, in |
|
|
Boolean |
Specifies whether the text in the control is TRUE — Text is FALSE — Text is not |
|
|
Boolean |
Specifies whether the control is TRUE — Control is FALSE — Control is not |
|
|
Integer |
Specifies the stroke weight of the text in the |
|
|
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
|
CommandButton event |
Occurs |
|---|---|
|
When the control is clicked |
|
|
Immediately before the Open event occurs in the |
|
|
Immediately after the Close event occurs in the |
|
|
When a dragged control is dropped on the |
|
|
When a dragged control enters the |
|
|
When a dragged control leaves the |
|
|
When a dragged control is within the |
|
|
Before the control receives focus (before it is |
|
|
When the user presses the F1 key or drags the |
|
|
When the control loses focus (becomes |
|
|
When a Windows message occurs that is not a |
|
|
When the right mouse button is pressed on the |
Functions
|
CommandButton function |
Datatype returned |
Description |
|---|---|---|
|
String |
Returns the name assigned to the |
|
|
Integer |
Starts or ends the dragging of 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 |
|
|
Integer |
Returns the distance of the pointer from the left |
|
|
Integer |
Returns the distance of the pointer from the top of |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Prints the control |
|
|
Integer |
Changes the size of the control |
|
|
Integer |
Sets focus to the control |
|
|
Integer |
Specifies the position of the control in the |
|
|
Integer |
Controls automatic redrawing of the control after |
|
|
Integer |
Makes the control visible |
|
|
Integer |
Triggers a specified event in the control and |
|
|
Object |
Returns the control type of the |