Hyderabad Jobs Book Website FREE PowerBuilder Training I Love Hyderabad Hyderabad Colleges
Home Business Emails Hyderabad Classifieds Contact Us
7 Wonders of Hyderabad Web Hosting Yellow Pages Our Network

 
Webpowerbuilder.hyderabad-colleges.com

Introduction to PowerBuilder

HomePrevious Lesson: CommandButton
Next Lesson: EditMask

PictureButton

Image of PictureButton example.

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.

PictureButton properties dialogbox.

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.
HomePrevious Lesson: CommandButton
Next Lesson: EditMask

Copyright © 1996 - 2006 HamaraShehar.com Pvt. Ltd. All Rights Reserved.
Domain Registration, Website Design, Website Hosting by HamaraShehar.com