Programming Guide
Version 1.3
1 Programming Guide. 4
1.1 Controls and Commands. 4
1.2 XML Configuration. 4
1.3 IWebBrowser2. 5
1.4 Object Model 5
1.4.1 ControlC. 5
1.4.2 ToolBandC. 6
1.4.3 CommandC. 6
1.4.4 CommandSetC. 7
1.4.5 ToolBandContextC. 7
1.4.6 ToolBandHookC. 8
1.5 Interfaces. 9
1.6 Getting Started. 9
1.6.1 Project Classes. 10
1.6.2 Built-in Commands. 11
1.6.3 Project Files. 11
1.6.4 Framework includes files. 12
1.6.5 Framework library files. 12
1.7 Adding Controls to a Toolbar 12
1.7.1 Implementing a “Go Home” Button. 12
1.7.2 Implementing a “Search Google” Combo-Box. 13
1.7.3 Implementing “Find & Highlight “ Buttons. 15
1.8 Using Built-in Commands. 17
1.8.1 Navigate. 17
1.8.2 JavaScript 18
1.8.3 VBScript 19
1.8.4 Toolband.ToolbarLayout 19
2 Reference. 20
2.1 Classes. 20
2.1.1 class CommandC. 20
2.1.2 class CommandContainerI 24
2.1.3 class CommandI 25
2.1.4 class CommandObserverI 28
2.1.5 class CommandPointerSetC. 28
2.1.6 class CommandSetC. 29
2.1.7 class CommandSetI 30
2.1.8 class ControlC. 31
2.1.9 class ControlCollectionI 32
2.1.10 class ControlI 32
2.1.11 class ControlPointerSetC. 35
2.1.12 class ToolBandContextC. 36
2.1.13 class ToolBandHookC. 39
2.1.14 class ToolBandC. 40
2.1.15 class ToolBandI 40
2.2 Functions. 41
2.2.1 CreateButtonControl 41
2.2.2 CreateComboBoxControl 41
2.2.3 CreateEditControl 42
2.2.4 CreateLabelControl 42
2.2.5 CreateMenuControl 43
2.2.6 CreateReadOnlyControl 43
2.2.7 CreateSeparatorControl 43
3 XML Configuration. 44
3.1 An Example. 44
3.2 Tags and Attributes. 44
3.2.1 <toolbar>. 44
3.2.2 <menu>. 45
3.2.3 <button>. 46
3.2.4 <label>. 46
3.2.5 <edit>. 47
3.2.6 <read-only>. 48
3.2.7 <combo-box>. 48