Introduction to PowerBuilder
PictureButton
A PictureButton
works exactly like a CommandButton and in addition to displaying
text on the face of the button, it allows you to display a
bitmap, a Run Length Encoded file or Windows metafile picture on
the button.
PowerBuilder
allows you to display different pictures when the PictureButton
is enabled and disabled. When you disable the PictureButton with
some script, PowerBuilder automatically displays the picture you
specified for the "Disabled
File Name".
PictureButtons
have one more advantage over CommandButtons - the ability to
display multiple lines of text on the button and to format them
around the button. You can set the alignment of the text by using
the "Horizontal
Alignment" and "Vertical
properties".
Checking the
"Original
Size"
property changes the picture to its original dimensions, i.e. to
the dimension the picture was given when it was first created.
Even if you check this option, you can still resize the control
and the picture will stretch to fit the size of the button. If
you do this and look at the properties of the button again,
you'll see that PowerBuilder has unchecked the "Original
Size"
property.
|