GetPanel
PowerScript function
Description
Gets the panel according to the handle in the RibbonBar
control.
Applies to
RibbonBar controls
Syntax
|
1 |
controlname.GetPanel ( Long ItemHandle, ref RibbonPanelItem Item ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the RibbonBar control. |
|
ItemHandle |
The handle of the panel you want to obtain. |
|
Item |
A RibbonPanelItem variable in which you want to store the |
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 get an item according to the handle by using the GetItem function.
Examples
This example inserts a “MyPanel” panel and then gets a copy of the
panel.
|
1 2 3 4 5 6 7 |
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, "MyPanel", "AddSmall!") li_Return = rbb_1.GetPanel (ll_Handle_Panel, lr_Panel) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest