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

Add a Picture control – PB Docs 2021 – PowerBuilder Library

Add a Picture control – PB Docs 2021

Add a
Picture control

Now you add a Picture control to the login window.

  1. Select the Picture button (bpcture00001.gif) from the drop-down list of controls

    or

    Select Insert>Control>Picture from the menu bar.

  2. Click inside the rectangular window in the Layout view.

    A Picture control displays at the selected location. At the
    same time you add the control, the Properties view switches from
    displaying the window properties to displaying the control
    properties.

    If you do not see the Properties view, select
    View>Properties from the menu bar. If the Properties view does
    not display the control properties, click the picture control in the
    Layout view.

    How to delete controls

    If you add a control to the window and later decide you do
    not want it, select the control and press the Delete key. This
    deletes the control and its scripts.

  3. Select the text p_1 in the Name text box on the General tab of
    the Properties view.

    Type p_sports in the Name text box.

    This names the Picture control. The prefix p_ is standard for
    Picture controls.

  4. Click the ellipsis button next to the PictureName text
    box.

    The Select Image dialog box displays.

  5. Select the “Use a custom image” option, click the ellipsis button and navigate to the Tutorial directory if it is not already selected.

    Select the tutsport.bmp file.

    The bitmap you selected appears in the control you added to
    the Layout view. The Visible, Enabled, and OriginalSize check boxes
    are selected by default in the Properties view.

  6. Make sure the picture control is selected in the Layout
    view.

    Click the Other tab in the Properties view.

    Type 40 in the X text box and 50 in the Y text box.

    You can use the spin controls in the X and Y text boxes to
    enter these values. You might want to adjust the position of the
    picture control again after you preview the window at the end of
    this lesson.

  7. Type 300 in the Width text box and 250 in the Height text
    box.

You change the size of the picture control. You might want to
adjust the picture size again after you preview the window.

wdwone.gif

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