1 / 16

Energizing Your Programs With ActiveX

Energizing Your Programs With ActiveX. What is ActiveX What will it do for me How can I use it. What is ActiveX. It is a tried-and-tested control Progressbar Multi-object Calendar WebBrowser Interact with it Call Functions and Procedures Set Properties Receive Events

Download Presentation

Energizing Your Programs With ActiveX

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Energizing Your Programs With ActiveX • What is ActiveX • What will it do for me • How can I use it

  2. What is ActiveX • It is a tried-and-tested control • Progressbar • Multi-object Calendar • WebBrowser • Interact with it • Call Functions and Procedures • Set Properties • Receive Events • Can be Visual or non-visual • Html-Label • Spell Checker

  3. What Will It Do For Me • Enable you to add powerful or visual features immediately and cheaply • Add capabilities otherwise unavailable • Save development time • How long would it take to write a spell-checker or graphics utility? • Now multiply that by five

  4. How Can I Use It • Obtain the controls • Import them in the IDE • Drag them from the Controls Palette

  5. Obtaining ActiveX Controls • Built-in • Imaging, Animation, Video, etc • Buy • Magazines such as Visual Developer, etc • Download • Download from www.ActiveX.com, etc

  6. Import Into The IDE • Two parts • The easy, fun, visual side • The difficult, complex, error-prone, time-consuming never-gonna-get-it-all-working side

  7. Import Into The IDEThe easy part • You Do: • Select from Registered Controls • Global or Workspace • Simple or Data-Aware

  8. Import Into The IDEThe not-easy part • The IDE Does: • Create the PKG Class-File • Creates the DFC file • Creates the DFO • Creates the bitmap (both) • Registers in the Class-List • Puts on Controls Palette

  9. Dragging From The Controls Palette • Property Page • PropertyFile/.OCP • OnCreate • Com/OnCom prefixes

  10. What We’re Going To Do Next • Create several Simple ActiveX Controls • Create two Data-Aware ActiveX Controls • Show Property Pages • Show using the OnCreate event to set the ActiveX properties • Using regular controls to interact with the ActiveX controls

  11. And For Free • Learn the common mistakes • Learn how to use the new Code Explorer and Error Reconciliation to fix bugs

  12. Simple ActiveX Controls • Instance of the cComControl • cHtmlLabel • cFolderPicker • cRichTextBox • cCoolProgressBar • cAnalogClock • cSpellChecker • cSimplePrinter

  13. Data-Aware ActiveX Controls • Instance of the cDbComControl • Need to provide two events • OnRefreshDbOcxValue (DD->DEO) • ??? (DEO->DD) • (//ToDo: Ctrl+T) • cDbDatePicker • cDbBitmap

  14. cDbDatePicker • Provide a popup calendar for Date fields • Import as Global • Import from Windows Common Controls-2 • Data-Events • OnRefreshDbOcxValue (DD->DEO) • OnComChange (DEO->DD)

  15. cDbBitmap • Replacement for the dbBitmap class to show JPG/BMP/GIF, etc • Import from built-in Kodak Image Edit • Set it as the Visual Control in DBB • Implement Zoom feature with Trackbar • Data-Events • OnRefreshDbOcxValue (DD->DEO) • Relative vs Absolute pathing • Displaying • Clearing

  16. Where Next • Run the COM sample Workspace • Read the Help • Importing ActiveX Controls (IDE) • Outlines the process and has a tutorial • COM Class Reference • Close PowerPoint and do it!

More Related