|
PictureButton is a button that is used to carry out or cancel an action. For example, you can use an OK button to confirm a deletion or a CANCEL button to cancel a requested deletion. When you place a PictureButton in a window or user object, you specify a picture (.bmp) that will display when the PictureButton is enabled and optionally, another picture that displays when the PictureButton is disabled. When the PictureButton is disabled, PowerBuilder grays the text and the displays the picture you specified as the disabled picture.
The PictureButton has a gray border. When the user clicks a PictureButton, the border becomes a darker gray and the text of the PictureButton moves to the right so the button looks depressed. The text in the button is on a transparent background so the picture displays through the text.
Every PictureButton control has:
A style, which is determined by its attributes
Events, which can trigger the execution of scripts
Functions, which you can use in a script to change the style or behavior of the PictureButton, or to obtain information about the PictureButton.
Related Topics
|