Inserting controls in a window – PB Docs 70

Inserting controls in a window

You insert controls in a window in the Window painter.

proc.gif To insert a control in a window:

  1. Select Insert>Control from the
    menu bar.

    or

    Display the Controls dropdown toolbar on the PainterBar.

  2. Select the control you want to insert.

    If you select a user object control, the Select Object dialog
    box displays listing all user objects defined for the application.
    Select the library and the user object and click OK.

  3. In the Layout view, click where you want the control.

After you insert the control, you can size it, move it, define
its appearance and behavior, and create scripts for its events.

note.gif Duplicating controls To place multiple controls of the same type in a window, place
a control in the window and make sure it is selected. Then press ctrl+t or
select Duplicate from the popup menu once for each duplicate control
you want to place in the window. The controls are placed one under
another. You can drag them to other locations if you want.

Inserting DataWindow controls, Pictures, PictureButtons,
and PictureHyperLinks

When you insert a DataWindow control, a picture, a PictureButton,
or a PictureHyperLink in a window, you are inserting a control in
the window. No DataWindow object or picture has yet been specified
for the control.

If the control is a You see For more information
DataWindow control An empty box to indicate no DataWindow
object has been specified
Chapter 14, “Defining DataWindow Objects “
Picture The dotted outline of a box to indicate
no picture has been specified
“Using pictures”
PictureButton A large button (resembling a CommandButton)
with space at the top to indicate no picture has been specified
“Using PictureButtons”
PictureHyperLink The dotted outline of a box to indicate
no picture has been specified
“Using PictureHyperLinks”

Placing OLE controls

On Windows, you can place objects from applications that support
OLE, such as Excel worksheets and Visio drawings, in your windows.

For information about using OLE with PowerBuilder,
see Application Techniques
.


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