createCheckGroupAt Method
Creates a ToolbarCheckGroup on the Toolbar at the specified index.
Syntax
ToolbarCheckGroup = TOOLBAR.createCheckGroupAt(iIndex)
Parameters
iIndex Required. Integer that specifies which index position on the Toolbar to create the ToolbarCheckGroup element.
Return Value
The ToolbarCheckGroup that is created by the method.
Example
The following example shows how to use the createCheckGroupAt method to add a ToolbarCheckGroup object to a Toolbar.
<HTML xmlns:mytb> <?import namespace="mytb" implementation="toolbar.htc"> <SCRIPT LANGUAGE="JScript"> function addButtonGroup(index) { // Create the checkButtonGroup var oGroup = oToolBar.createCheckGroupAt(index); //Create the checkbuttons of the group and set their TEXT attributes oCheckButton = oGroup.createCheckButtonAt(0); oCheckButton.setAttribute("text", "A"); oCheckButton = oGroup.createCheckButtonAt(1); oCheckButton.setAttribute("text", "B"); oCheckButton = oGroup.createCheckButtonAt(2); oCheckButton.setAttribute("text", "C"); } </SCRIPT> <BODY> <!-- Form controls --> Index: <INPUT type="text" size="3" id="oIndex" value="0" ></INPUT> <!-- Press this to add a button --> <BUTTON onclick="addButtonGroup(oIndex.value)"> Add</BUTTON> <!-- Here is the toolbar --> <mytb:toolbar id="oToolBar"> <mytb:toolbarbutton imageUrl="tool-mail.gif" /> <mytb:toolbarseparator /> <mytb:toolbarbutton imageUrl="tool-reply.gif" Text="Reply" title="Reply" /> <mytb:toolbarbutton imageUrl="tool-reply_all.gif" Text="Reply All" title="Reply to All" DefaultStyle="font-weight:bold" HoverStyle="color:blue" SelectedStyle="color:red" /> <mytb:toolbarbutton imageUrl="tool-forward.gif" Text="Forward" title="Forward" DefaultStyle="font-style:italic" /> <mytb:toolbarseparator /> <mytb:toolbarcheckbutton selected="true" imageurl="tool-calendar.gif" text="Meetings" title="Turn on meeting reminders" /> </mytb:toolbar> </BODY> </HTML>
Code example: https://samples.msdn.microsoft.com/workshop/samples/webcontrols/toolbar/createCheckGroupAt.htm
Applies To
TOOLBAR
See Also