InsertGroupLast
PowerScript function
Description
Inserts a group as the last item in the panel.
Applies to
RibbonBar controls
Syntax
|
1 |
controlname.InsertGroupLast ( Long PanelHandle ) |
|
1 |
controlname.InsertGroupLast ( Long PanelHandle, RibbonGroupItem Item ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the RibbonBar control. |
|
PanelHandle |
The handle of the panel into which you want to insert a |
|
Item |
A group 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 a group as the last item in the “MyPanel”
panel.
|
1 2 3 4 5 |
Long ll_Handle_Category, ll_Handle_Panel, ll_Handle_Group ll_Handle_Category = rbb_1.InsertCategoryFirst ("MyCategory") ll_Handle_Panel = rbb_1.InsertPanelFirst (ll_Handle_Category, "MyPanel", "AddSmall!") ll_Handle_Group = rbb_1.InsertGroupLast (ll_Handle_Panel) |
Example 2
This example also inserts a group as the last item in the “MyPanel”
panel. It defines a group item lr_Group and then inserts it
as the last item in the “MyPanel” panel.
|
1 2 3 4 5 6 |
Long ll_Handle_Category, ll_Handle_Panel, ll_Handle_Group RibbonGroupItem lr_Group ll_Handle_Category = rbb_1.InsertCategoryFirst ("MyCategory") ll_Handle_Panel = rbb_1.InsertPanelFirst (ll_Handle_Category, "MyPanel", "AddSmall!") ll_Handle_Group = rbb_1.InsertGroupLast (ll_Handle_Panel, lr_Group) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest