Navigation: Ultimate Suite for PowerBuilder Help > Toolbar Strip > Functions >

of_addgroup

Send comments on this topic.

 

Description:

Adds a group item to the toolbar which allows you to create a dropdown of toolbar items.

Syntax:

of_addgroup ()
of_addgroup (string as_text, string as_image, integer al_dropdownwidth)
of_addgroup (long al_dropdownwidth)

Argument

Description

as_text (optional)

If passed in, this text will display as the "groups" text. If this is not passed in, the groups text will change to the text of the item picked in the dropdown.

as_image (optional)

The file name of the image used in the group. You can use a PowerBuilder image (e.g. "sql!").

al_dropdownwidth (optional)

Sets the width of the dropdown that's displayed when the group item is clicked.

Return Value:

Returns a number representing the index of the new group that was added. You can use this index value when calling of_assignitemtogroup .

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_assignitemtogroup
of_cleargroup
of_setgroupitem
 


Copyright © 2021 Werysoft Inc.