SetPanel
PowerScript function
Description
Sets the panel for the RibbonBar control.
Applies to
RibbonBar controls
Syntax
|
1 |
controlname.SetPanel (Long ItemHandle, RibbonPanelItem Item ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the RibbonBar control. |
|
ItemHandle |
The handle of the panel on the same level that you will |
|
Item |
A panel item you are setting. |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, returns null.
Usage
You can also use the SetItem
function to set the panel. Refer to SetItem for the difference between SetItem and SetPanel.
Examples
This example inserts a panel and then sets new values for its Text
and PictureName properties.
|
1 2 3 4 5 6 7 8 9 |
Integer li_Return Long ll_Handle_Category, ll_Handle_Panel RibbonPanelItem lr_Panel ll_Handle_Category = rbb_1.InsertCategoryFirst ("MyCategory") ll_Handle_Panel = rbb_1.InsertPanelFirst (ll_Handle_Category, "MyPanel1", "AddSmall!") lr_Panel.Text = "MyPanel2" lr_Panel.PictureName = "BOMSmall!" li_Return = rbb_1.SetPanel (ll_Handle_Panel, lr_Panel) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest