SetActiveCategory
PowerScript function
Description
Sets the active category in the RibbonBar control.
Applies to
Syntax
|
1 |
controlname.SetActiveCategory ( Long ItemHandle ) |
|
Argument |
Description |
|---|---|
|
controlname |
The name of the RibbonBar control. |
|
ItemHandle |
The handle of the category that you will set to |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any
argument’s value is null, returns null.
Examples
This example inserts two categories “MyCategory1” and “MyCategory2”
and sets “MyCategory2” as the active category.
|
1 2 3 4 5 6 |
Integer li_Return Long ll_Handle, ll_Handle2 ll_Handle = rbb_1.InsertCategoryFirst("MyCategory1") ll_Handle2 = rbb_1.InsertCategoryLast("MyCategory2") li_Return = rbb_1.SetActiveCategory(ll_Handle2) |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest