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: Introduction to Window Painter
Next Lesson: Course 1:: Session 4 :: Page 40

Creating a Window

Invoke the Window painter by clicking on the Window icon (the one that is filled with blue color) from the Powerbar and select the New button in the 'Select Window' dialog box. ( You will see another Window icon also which is filled with gray color;don't click on that, you will be learning about that later in this session ).

Image of Select Window dialogbox.
Image of Select Window dialog box

Once the Window painter is open, it will look like:

Image of Window Painter Working Environment.
Image of Window Painter Working Environment

The rectangular area that you see in the "Window - (Untitled)" window is the window work area. The work area is the area where you can paint the window. If you want to have a large work area, you can do so; Move the mouse over the border of the work area (you know the window border when the mouse pointer changes to or or ), click on the border, drag till you get the area you need.

In the previous section, we described in simple terms that  a window is like a screen. Now, if you were from xBase background, what you would do to display "Enter your name:" on the screen. You probably would have coded @05,01 SAY "Enter your name:".

Later when the user wants it at a different position, you would have opened your program and changed the x and y co-ordinates. In PowerBuilder, you don't have to code the x, y co-ordinates; instead you place a control that is capable of displaying the given text and use the mouse to drag it to the correct position. The control that is used to display the text in PowerBuilder is called "StaticText" control. To place a 'StaticText' control in the Window workspace, you can follow either of the following procedures:

Select Controls/StaticText from the menu and click in the workspace wherever you want to place the StaticText control. (OR)
From the Painterbar, Click on the arrow that has OK and click on the StaticText control (Whichever displays "A") and click in the window workplace wherever you want to place it.

As the name suggests, the purpose of the "StaticText" control is to display text that won't be changed by the user. Of course, you can change the text programmatically at run-time using PowerScript.
HomePrevious Lesson: Introduction to Window Painter
Next Lesson: Course 1:: Session 4 :: Page 40

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