TOOLBARCHECKBUTTON Element | ToolbarCheckButton Object
Adds a ToolbarCheckButton element to a Toolbar.
Syntax
HTML <namespace:TOOLBARCHECKBUTTON ... >
Possible Values
namespace Prefix that associates a custom tag with an XML namespace. This prefix is set using the XMLNS attribute of the html tag.
Remarks
The TOOLBARCHECKBUTTON derives from TOOLBARBUTTON. Unlike a TOOLBARBUTTON, however, a TOOLBARCHECKBUTTON can be made part of a TOOLBARCHECKGROUP, which mutually excludes the buttons.
This element is a block element.
This element requires a closing tag.
Members Table
The following table lists the members exposed by the ToolbarCheckButton object.
Attribute Property Description DEFAULTSTYLE Sets or retrieves a value that indicates the default style for the element. HOVERSTYLE Sets or retrieves a value that indicates the style of the element when the user hovers the keyboard focus or mouse pointer over it. SELECTED Sets or retrieves a value that indicates whether the object is selected. SELECTEDSTYLE Sets or retrieves a value that indicates the style for the selected element.
Method Description getAttribute Retrieves the value of the specified attribute. getType Retrieves the type of item. remove Removes the item from the Toolbar object. setAttribute Sets the value of the specified attribute.
Example
The following example shows how to use the TOOLBARCHECKBUTTON element to add a check button to a Toolbar.
<HTML xmlns:TOOLBAR> <?import namespace="TOOLBAR" implementation="toolbar.htc"> <BODY> <TOOLBAR:TOOLBAR STYLE="display:inline" ID="oToolBar"> <toolbar:toolbarseparator /> <TOOLBAR:TOOLBARCHECKBUTTON TEXT="A" DEFAULTSTYLE="width:30px; text-align:center;font-size:large;" HOVERSTYLE="background-color:#99CCFF;" SELECTEDSTYLE="background-color:#003399; color:#FFFFFF" /> <TOOLBAR:TOOLBARCHECKBUTTON TEXT="B" DEFAULTSTYLE="width:30px; text-align:center;font-size:large;" HOVERSTYLE="background-color:#99CCFF;" SELECTEDSTYLE="background-color:#003399; color:#FFFFFF" /> <toolbar:toolbarseparator /> </TOOLBAR:TOOLBAR> </BODY> </HTML>
Code example: https://samples.msdn.microsoft.com/workshop/samples/webcontrols/toolbar/toolbarCheckButton.htm
Applies To
TOOLBAR, TOOLBARCHECKGROUP
See Also