Download presentation
Presentation is loading. Please wait.
Published byAlbert Parrish Modified over 9 years ago
1
Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The New VDF12.1 Codejock Menu and Toolbar Classes John Tuohy
2
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The Codejock CommandBars COM Classes CommandBars A non-visible command bar system An active/x control All other controls are automation objects CommandBar A menubar, toolbar or context menu CommandBarControls A collection of CommandBar Controls CommandBarControl This is a menu or toolbar item Can be a Button, Popup, Checkbox, Combo, etc.
3
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The Codejock CommandBars COM Classes CommandBarStatusBar The Status bar and a collection of Status panes CommandBarStatusPane A Status Pane CommandBarAction Represents an item action Used to display caption, description, tooltip, image Used to control execution, enabling, hiding, checkbox, etc. CommandBarActions A collection of actions
4
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The Codejock CommandBars COM Classes CommandBarOptions Maintains CommandBars settings (appearance, etc.) CommandBarStateOptions Maintains save and restore settings There are many more classes – approximately 45
5
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The Codejock CommandBars Object Structure CommandBars CommandBar (1…n) CommandbarControls collection CommandbarControl (1…n) CommandBar (if control is a popup) CommandbarControls collection CommandbarControl (1…n) (and so it goes) StatusBar collection StatusBarPane (1…n) CommabarActions collection CommandBarAction (1…n) CommandBarOptions CommandBarStateOptions Events
6
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The Codejock CommandBars Object Structure CommandBars Events All Events are sent to the CommandBars object Sample Events are: On Execute OnControlSelected OnInitCommandsPopup All events are passed a COM object handle representing the menu/toolbar item that triggered the event. That object contains a user assigned ID that is used to identify the object
7
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The VDF Menu & Toolbar Classes cCJCommandBarSystem cCJMenuBar cCJToolbar cCJContextMenu cCJMenuItem cCJStatusbar cCJStatusbarPane
8
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The VDF Menu & Toolbar Object Structure cCJCommandBarSystem cCJMenuBar cCJMenuItem (1..n) : cCJToolbar cCJMenuItem (1..n) cCJStatusBar cCJStatusBarPane (1..n) cCJContextMenu cCJMenuItem (1..n)
9
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The Menu Item (cCJMenuItem) Main Interface Properties psCaption psToolTip psDescription psShortCut psImage peControlType Methods IsEnabled IsChecked IsVisible Events OnExecute OnPopupInit OnCreate
10
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide The VDF Menu & Toolbar classes Let’s see some examples…
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.