Share via


createGripperAt Method

Creates a toolbarGripper object on the Toolbar at the specified index.

Syntax

ToolbarGripper = TOOLBAR.createGripperAt(iIndex)

Parameters

iIndex Required. Integer that specifies which index position on the Toolbar to create the toolbarGripper object.

Return Value

The toolbarGripper that is created by the method.

Example

The following example shows how to use the createGripperAt method to add a toolbarGripper object to a Toolbar.


<HTML xmlns:mytb>
<?import namespace="mytb" implementation="toolbar.htc">
<SCRIPT LANGUAGE="JScript">
function addGripper(index)
{
    var item;
    // Create the ToolBarGripper
    item = oToolBar.createGripperAt(index);
}
</SCRIPT>
<BODY>
Index: <INPUT TYPE="text" SIZE="3" ID="oIndex" VALUE="0" ></INPUT>
<P>
<BUTTON onclick="addGripper(oIndex.value)">Add Gripper</BUTTON>
<P>
<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/createGripperAt.htm

Applies To

TOOLBAR

See Also

Internet Explorer WebControls, About the Toolbar WebControl