1 / 25

ActiveX-Controls

ActiveX-Controls. Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro. Diese Schulung dient der Einführung in die Verwendung und die Einbindung von ActiveX-Controls und der Darstellung der dabei möglicherweise entstehenden Probleme unter Microsoft Visual FoxPro.

ryan-bell
Télécharger la présentation

ActiveX-Controls

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. ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unterMicrosoft Visual FoxPro

  2. Diese Schulung dient der Einführung in die Verwendung und die Einbindung von ActiveX-Controls und der Darstellung der dabei möglicherweise entstehenden Probleme unter Microsoft Visual FoxPro

  3. Themenübersicht • Einbindung von ActiveX-Controls • SimpleBound-Controls • SimpleFrame-Controls • Probleme mit SimpleFrame-Controls • Spezialfunktionen zur Einbindung • Subclassing (Calendar) • Subclassing (RTF) • Standard-MS-Controls • Internet/Messaging-Controls • Weitere einfache Controls • Spezielle Visual FoxPro Controls • Visual Basic Control Creation Edition

  4. Ansteuerung von ActiveX Besonderheiten der Ansteuerungvon ActiveX-Controls unterMicrosoft Visual FoxPro

  5. Einbindung von ActiveX • SYS(2333) • VTABLE-Binding bzw. DualInterface-Support • SYS(3004 / 3005) • Return / Set Locale ID • 1029 Czech, 1031 Deutsch, 1033 Englisch, 1034 Spanisch, 1036 Franz., 1040 Ital., 1045 Polnisch, 1046 Brasilianisch, 2070 Portugiesisch • (Def)OLECID setzt nur Interface

  6. SimpleBound Controls • Bindable- und DefaultBind-Property vorhanden • VFP setzt ControlSource-Property • VFP setzt Value-Property (Hidden) • OnChanged für Optimistic • OnRequestEdit für Pessimistic

  7. SimpleFrame VFP setzt folgende Methoden/Properties: • Paint( ) • ShowTips( ) • SetAll( ) • AddObject( )

  8. Probleme mit SimpleFrame • Überlappende VFP-Controls fehlerhaft • Plazierung auf Pages > 1 führt zu Mehrarbeit (UIEnable(.F.) in PageFrame. oder Form.Init) • Sheridan Tab Control erlaubt SimpleFrames nur für Page 1 • Visual Basic TWIPs häufig als Default

  9. Zusätzliche VFP-Funktionen • AutoYield = .F. • ActiveX waitstate, OnKeyLabel/Mouse queue, SET ESCAPE OFF, Queries ohne Pause, kein Switch-Back zu VFP • DOEVENTS • führt Windows-Events nachträglich aus • Add. VTABLE-Binding Registry-Key • HKEY_CLASSES_ROOT\NoDualInterface\{clsid}

  10. Subclassing von ActiveX-Controls Subclassing von ActiveX-Controls isteine der Sonderfunktionen vonMicrosoft Visual Foxpro

  11. Calendar Control • Beispiel für Subclassing • addieren von Buttons für Methodenaufruf • Verwendung Container mit Buttons in Maske

  12. Rich Text Box-Control • Beispiel für Subclassing • Verwendung von Buttons für Methodenaufruf • Addieren Eigenschaft „Controlsource“ für Datenanbindung des Controls • Verwendung von Container in Maske

  13. Dynazip-Control • Professionelle Kompressionslibrary • Beispiel für Subclassing: • Parameter/Konfiguration über Methode • Aufruf Kompression über Methode

  14. Mitgelieferte ActiveX-Controls Übersicht über die mitgeliefertenActiveX-Controls vonMicrosoft Visual FoxPro

  15. Standard-MS-Controls • Treeview • Listview • Imagelist • RTF • Calendar

  16. Treeview-Control • Benötigt Imagelist • Kombination mit Listview sinnvoll • separater Vortrag über Ansteuerung

  17. Rich Text Box • Muß um Speicher-möglichkeiten ergänzt werden • Build-Nummern mit Twips statt Pixel!

  18. Messaging/Internet mit ActiveX • MAPI Session Control • MAPI Message Control • MS CommControl • MS Web Browser • MS WinSock Control

  19. Einfache ActiveX-Controls • SysInfo • Progressbar • Slider • Statusbar

  20. Spezielle FoxPro-Controls • FOXTLIB Anzeige von TYPELIBs • TypeLib-Reader-Klasse in Component Gallery • FOXHWND Anzeige von WMF/Icon • zusätzliche Grafikformate

  21. VB Controls Creation Edition Erstellung von einfachen Controls mit der Microsoft Visual Basic Controls Creation Edition

  22. Controls Creation Edition • Kurze Erläuterung • Wichtige Einstellungen: • .Autoyield = .F. • =SYS( 2333, 0 )

  23. ActiveX-Katalog • Der ActiveX-Markt boomt (angeblich)! • Sehr viele weitere ActiveX-Controls verfügbar • Erheblicher Zeitbedarf für Sichtung und Test! • Viel Schrott!

  24. Vielen Dank! Das waren die Themen: • Einbindung von ActiveX-Controls • SimpleBound-Controls • SimpleFrame-Controls • Probleme mit SimpleFrame-Controls • Spezialfunktionen zur Einbindung • Subclassing (Calendar) • Subclassing (RTF) • Standard-MS-Controls • Internet/Messaging-Controls • Weitere einfache Controls • Spezielle Visual FoxPro Controls • Visual Basic Control Creation Edition

  25. Wenn Fragen bestehen: Wizards & Builders Methodische Software-Entwicklung GmbH Frankfurter Str. 21b 61476 Kronberg Tel.: 06173-950906 Fax: 06173-950907 CIS: 101605,175

More Related