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 controls to the window – PB Docs 2021 – PowerBuilder Library

Add controls to the window – PB Docs 2021

Add
controls to the window

Where you are

Create a new
window

> Add controls to
the window

Change the tab order on
the window

Code some Help events
and preview the window

Write the script to
open the window

Controls allow users to interact with PowerBuilder objects, such as
windows and DataWindows. You set properties of these controls and later
add script for control events and functions.

Selecting a control button from the
PainterBar

You can add controls from the Insert menu or by selecting a control
button in PainterBar1. Unless you customize your toolbars, there is only
one control button that appears in the PainterBar. When you first open a
painter, PainterBar1 includes the CommandButton control button, which has
a down arrow to its right. Clicking the down arrow displays a drop-down
list of control buttons.

Some of the controls you can select from the drop-down list are
described in the table below:

Button appearance

Control type

Use in tutorial

bcommnd.gif

CommandButton

Default icon for the control button in PainterBar1.
You add command buttons later in this lesson.

bpcthyp.gif

Picture

To add a picture to the login window.

bpcture.gif

PictureHyperlink

Not used in tutorial. Its purpose is to provide a
link to a website.

bpctbtn.gif

PictureButton

Not used in tutorial. It is like a command button,
but it displays a picture as well as text.

bsttext.gif

StaticText

To add text labels to the login
window.

btxthyp.gif

StaticHyperLink

To provide a link to a website.

bsledit.gif

SingleLineEdit

To add user entry text boxes to the login
window.

bmledit.gif

MultiLineEdit

Not used in tutorial. Its purpose is to add a
multiline edit text box.

After you select a control, it appears in place of the CommandButton
button on PainterBar1.

Adding controls with a 3D appearance

To make your controls look three dimensional, select
Design>Options from the menu bar and make sure that the Default To 3D
check box is selected on the General page of the Options dialog box. You
can change the window background color from the default color of
ButtonFace gray using the Properties view in the Window painter.

Now you modify the login window you just created by adding controls
and changing some of their properties. You:


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