Description:
Assigns a toolbar item to a group which will cause the button to display in the groups dropdown list instead of in the toolbar.
Syntax:
of_assignitemtogroup (integer groupid, integer itemid)
Argument |
Description |
groupid |
The index of the group you are adding the toolbar button to. groupid is returned from of_addgroup . |
itemid |
The index of the button you are adding to the group. |
Return Value:
Returns 1 if successful or a 0 if the method was unable to assign the button to a group.
Usage:
Long ll_group, ll_b, ll_s, ll_o, ll_c
ll_group = uo_toolbarstrip.of_AddGroup()
ll_b = uo_toolbarstrip.of_AddItem( 'Blue' , 'blue.bmp' )
ll_s = uo_toolbarstrip.of_AddItem( 'Silver' , 'silver.bmp' )
ll_o = uo_toolbarstrip.of_AddItem( 'Olive', 'olive.bmp' )
ll_c = uo_toolbarstrip.of_AddItem( 'Classic' , 'classic.bmp')
uo_toolbarstrip.of_DisplayText(ll_group, TRUE )
//Assign new toolbar items to group
uo_toolbarstrip.of_AssignItemToGroup(ll_group,ll_b)
uo_toolbarstrip.of_AssignItemToGroup(ll_group,ll_s)
uo_toolbarstrip.of_AssignItemToGroup(ll_group,ll_o)
uo_toolbarstrip.of_AssignItemToGroup(ll_group,ll_c)
See Also:
of_addgroup
of_cleargroup
of_setgroupitem
Copyright © 2021 Werysoft Inc.