Change the size of the main window

Note

Now you change the size of the application’s main window. When you run the application, the main window displays in the position and size that you specify.

  1. Double-click w_pbtutor_frame in the System Tree.

    The Window painter opens the application’s frame window.

  2. Check the Center check box on the General page in the Properties view.

    Now when you run the application, the frame window will be centered.

  3. Scroll down and select normal! in the WindowState drop-down list box.

    Shown is the General tab of the Properties page.
  4. Click the Other tab in the Properties view.

  5. Type 3000 in the Width text box and 2400 in the Height text box.

    The size of the window rectangle in the Layout view changes. The values you type are in PowerBuilder Units (PBUs).

  6. Press the Tab key.

    Shown is the General tab of the Properties page.
  7. Select File>Close from the PowerBuilder menu.

    Click Yes when you are prompted to save your changes.

    The Window painter closes.

    Next you run the application. When you run the application, the frame window will be centered and sized as you specified.