CommandBars methods

The CommandBars interface supports one method, Add.

Add(strName, [intPosition=5])  
Returns  CommandBar 
Description  Creates and adds to the collection a new CommandBar object with the given name and position. The allowed values for intPosition are:
  • 1: left
  • 2: top
  • 3: right
  • 4: bottom
  • 5: floating (the default)
 
Usage 
JScript  CommandBars_object.Add("strName", [intPosition]);  
VBScript  CommandBars.Add("strName", [intPosition]) 
Example 
// SoftQuad Script Language JSCRIPT:
// create a floating command bar
Application.CommandBars.Add("My Toolbar");
 

FindControl(intControlType, longCmdId, [variantVisible], [variantRecursive])  
Returns  CommandBarControl 
Description 

Searches for and returns a CommandBarControl based on the arguments provided. The allowed values for intControlType are:

  • 1: button
  • 2: text box
  • 3: drop-down list
  • 4: combination box
  • 5: popup

(Not implemented)

 
Usage 
JScript  CommandBars_object.FindControl(intControlType, longCmdId, [variantVisible], [variantRecursive]);  
VBScript  CommandBars_object.FindControl(intControlType, longCmdId, [variantVisible], [variantRecursive]) 


Right arrow
Next Topic
Left arrow
Previous Topic
Table of contents
Table of Contents

Copyright © SoftQuad Software Inc. 1999