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

InsertPanel – PB Docs 2021 – PowerBuilder Library

InsertPanel – PB Docs 2021

InsertPanel

PowerScript function

Description

Inserts a panel in the category of the RibbonBar control.

Applies to

RibbonBar
control

Syntax

Argument

Description

controlname

The name of the RibbonBar control.

CategoryHandle

The handle of the category into which you want to insert a
panel.

ItemHandleAfter

The handle of the panel on the same level after which you
want to insert the panel.

Text

The title of the panel to be inserted.

PictureName

The name of the file that contains the picture. It will be
displayed as 16*16. The picture will be shown when the panel is
collapsed (a panel is collapsed automatically when the window
width becomes too small to display the panel). See the section called “Introduction to RibbonBar items” in Users Guide for more.

Item

A panel item to be inserted.

Return value

Long.

Returns the handle of the inserted item if it succeeds and -1 if an
error occurs. If any argument’s value is null, returns null.

Example 1

This example inserts the “MyPanel2” panel after “MyPanel1” in the
“MyCategory” category.

Example 2

This example also inserts the “MyPanel2” panel after “MyPanel1” in
the “MyCategory” category. It first defines a panel item with various
properties (including Text, PictureName etc.) and then inserts it after
“MyPanel1” in the “MyCategory” category.

See also

InsertPanelFirst

InsertPanelLast

DeletePanel

SetPanel

GetPanel

GetChildItemByIndex


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