In addition to the properties it inherits from the CommandBarControl interface, the CommandBarButton interface supports two properties, BuiltInFace and FaceId.
BuiltInFace | |
Access | Read/write |
Type | Boolean |
Description | Returns true if the icon/image of the specified control is its built-in face; this property can be set only to true, which will reset the face to the built-in one. |
Usage | |
JScript |
vbl = CommandBarButton_object.BuiltInFace; CommandBarButton_object.BuiltInFace = boolBuiltin; |
VBScript |
vbl = CommandBarButton_object.BuiltInFace CommandBarButton_object.BuiltInFace = boolBuiltin |
Example |
// SoftQuad Script Language JSCRIPT: var cmdBars = Application.CommandBars; var cmdBar = cmdBars.item("Standard"); // get the first button var cmdBarButton = cmdBar.Controls.item(1); // check to see if the button's icon/image // is a built-in face Application.Alert(cmdBarButton.BuiltInFace); |
FaceId | |
Access | Read/write |
Type | Long |
Description | Returns or sets the icon/image face ID for the specified control. |
Usage | |
JScript |
vbl = CommandBarButton_object.FaceId; CommandBarButton_object.FaceId = intId; |
VBScript |
vbl = CommandBarButton_object.FaceId CommandBarButton_object.FaceId = intId |
Example |
// SoftQuad Script Language JSCRIPT: var cmdBars = Application.CommandBars; var cmdBar = cmdBars.item("Standard"); // get the first button var cmdBarButton = cmdBar.Controls.item(1); // display the FaceId Application.alert(cmdBarButton.FaceId); |
Copyright © SoftQuad Software Inc. 1999