GetPanel

Description

Gets the panel according to the handle in the RibbonBar control.

Applies to

RibbonBar control

Syntax

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 panel identified by the item handle.


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.

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

InsertPanel

InsertPanelFirst

InsertPanelLast

DeletePanel

SetPanel

GetChildItemByIndex