Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Create the sheet window – PB Docs 2022 – PowerBuilder Library

Create the sheet window – PB Docs 2022

Create
the sheet window

You inherit the sheet window from the w_pbtutor_basesheet window.
This is the base class for sheet windows that you generated with the
Template Application wizard. You do not use the w_master_detail_ancestor
extension layer window, since the modifications you made to it are not
useful in the new sheet window.

  1. Select File>Inherit from the PowerBuilder menu.

    Make sure the Objects of Type box displays Windows.

    Select w_pbtutor_basesheet from the available windows in the
    pbtutor.pbl library and click OK.

  2. Make sure the Layout view displays in the Window
    painter.

    Select Insert>Control>StaticText and click near the top
    left corner of the Layout view.

  3. In the Properties view, highlight the default text in the Text
    text box and type the following:

  4. Lengthen the control width and the width of the sheet window
    to display the entire text and allow room for a drop-down list
    control at the top right of the window.

    A length of 2250 should be sufficient for the sheet window
    width. You can set this on the Other tab of the Properties view for
    the window, or you can drag the window edge in the Layout view to
    make room for an additional control.

  5. Right-click the static text control in the Layout view and
    click Duplicate from the pop-up menu.

    In the Properties view, highlight the default text in the Text
    text box of the new static text control and type the
    following:

  6. Select Insert>Control>DropDownListBox and click to the
    right of the static text boxes near the top right corner of the
    Layout view.

    newsheet.gif
  7. In the Properties view for the drop-down list box, type
    ddlb_state for the control name.

    Select the AllowEdit and the VScrollBar check boxes.

  8. Click the CommandButton button in the painter bar and click
    below the two static text boxes.

    In the Properties view, type cb_percent for the button name
    and type Percentage for the button text.

  9. Select Insert>Control>SingleLineEdit and click below the
    command button in the Layout view.

    In the Properties view, type sle_result for the control name
    and type the following for the control text:

  10. Lengthen the control width to display the entire text.

    allctrls.gif
  11. Make sure no control is selected and the sheet window
    properties are displayed in the Properties view.

    Type Customer Location for the Tag property.

    The text you typed will be visible in the sheet window title
    at runtime. Code in the basesheet ue_postopen event assigns the Tag
    text to the sheet window title.

  12. Select File>Save from the PowerBuilder menu.

    Select pbtutor.pbl for the application library, type
    w_cust_pct for the new sheet window name, and click OK.

    This saves the new sheet window with all its controls to the
    main tutorial library.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x