25
Wizards & Wizards & Builders Builders GmbH GmbH ActiveX-Controls ActiveX-Controls Verwendung und Einsatz Verwendung und Einsatz von ActiveX-Controls von ActiveX-Controls unter unter Microsoft Visual FoxPro Microsoft Visual FoxPro

Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Embed Size (px)

Citation preview

Page 1: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

ActiveX-ControlsActiveX-Controls

Verwendung und Einsatz Verwendung und Einsatz von ActiveX-Controls untervon ActiveX-Controls unter

Microsoft Visual FoxProMicrosoft Visual FoxPro

Page 2: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

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

Page 3: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

ThemenübersichtThemenübersicht

Einbindung von ActiveX-ControlsEinbindung von ActiveX-Controls SimpleBound-ControlsSimpleBound-Controls SimpleFrame-ControlsSimpleFrame-Controls Probleme mit SimpleFrame-ControlsProbleme mit SimpleFrame-Controls Spezialfunktionen zur EinbindungSpezialfunktionen zur Einbindung Subclassing (Calendar)Subclassing (Calendar) Subclassing (RTF)Subclassing (RTF) Standard-MS-ControlsStandard-MS-Controls Internet/Messaging-ControlsInternet/Messaging-Controls Weitere einfache ControlsWeitere einfache Controls Spezielle Visual FoxPro ControlsSpezielle Visual FoxPro Controls Visual Basic Control Creation EditionVisual Basic Control Creation Edition

Page 4: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Ansteuerung von ActiveXAnsteuerung von ActiveX

Besonderheiten der Besonderheiten der AnsteuerungAnsteuerung

von ActiveX-Controls untervon ActiveX-Controls unterMicrosoft Visual FoxProMicrosoft Visual FoxPro

Page 5: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Einbindung von ActiveXEinbindung von ActiveX

SYS(2333)SYS(2333) VTABLE-Binding bzw. DualInterface-SupportVTABLE-Binding bzw. DualInterface-Support

SYS(3004 / 3005)SYS(3004 / 3005) Return / Set Locale IDReturn / Set Locale ID 1029 Czech, 1031 Deutsch, 1033 Englisch, 1029 Czech, 1031 Deutsch, 1033 Englisch,

1034 Spanisch, 1036 Franz., 1040 Ital., 1045 1034 Spanisch, 1036 Franz., 1040 Ital., 1045 Polnisch, 1046 Brasilianisch, 2070 Polnisch, 1046 Brasilianisch, 2070 PortugiesischPortugiesisch

(Def)OLECID setzt nur Interface(Def)OLECID setzt nur Interface

Page 6: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

SimpleBound ControlsSimpleBound Controls

Bindable- und DefaultBind-Property Bindable- und DefaultBind-Property vorhandenvorhanden

VFP setzt ControlSource-PropertyVFP setzt ControlSource-Property VFP setzt Value-Property (Hidden)VFP setzt Value-Property (Hidden) OnChanged für OptimisticOnChanged für Optimistic OnRequestEdit für PessimisticOnRequestEdit für Pessimistic

Page 7: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

SimpleFrameSimpleFrame

VFP setzt folgende VFP setzt folgende Methoden/Properties:Methoden/Properties:

Paint( )Paint( ) ShowTips( )ShowTips( ) SetAll( )SetAll( ) AddObject( )AddObject( )

Page 8: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Probleme mit SimpleFrameProbleme mit SimpleFrame

Überlappende VFP-Controls fehlerhaftÜberlappende VFP-Controls fehlerhaft Plazierung auf Pages > 1 führt zu Plazierung auf Pages > 1 führt zu

Mehrarbeit (UIEnable(.F.) in PageFrame. Mehrarbeit (UIEnable(.F.) in PageFrame. oder Form.Init)oder Form.Init)

Sheridan Tab Control erlaubt Sheridan Tab Control erlaubt SimpleFrames nur für Page 1SimpleFrames nur für Page 1

Visual Basic TWIPs häufig als DefaultVisual Basic TWIPs häufig als Default

Page 9: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Zusätzliche VFP-FunktionenZusätzliche VFP-Funktionen

AutoYield = .F.AutoYield = .F. ActiveX waitstate, OnKeyLabel/Mouse queue, ActiveX waitstate, OnKeyLabel/Mouse queue,

SET ESCAPE OFF, Queries ohne Pause, kein SET ESCAPE OFF, Queries ohne Pause, kein Switch-Back zu VFPSwitch-Back zu VFP

DOEVENTSDOEVENTS führt Windows-Events nachträglich ausführt Windows-Events nachträglich aus

Add. VTABLE-Binding Registry-KeyAdd. VTABLE-Binding Registry-Key HKEY_CLASSES_ROOT\NoDualInterface\{clsid}

Page 10: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Subclassing von ActiveX-Subclassing von ActiveX-ControlsControls

Subclassing von ActiveX-Subclassing von ActiveX-Controls istControls ist

eine der Sonderfunktionen eine der Sonderfunktionen vonvon

Microsoft Visual FoxproMicrosoft Visual Foxpro

Page 11: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Calendar ControlCalendar Control

Beispiel für SubclassingBeispiel für Subclassing addieren von Buttons für addieren von Buttons für

MethodenaufrufMethodenaufruf Verwendung Container mit Buttons in Verwendung Container mit Buttons in

MaskeMaske

Page 12: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Rich Text Box-ControlRich Text Box-Control

Beispiel für SubclassingBeispiel für Subclassing Verwendung von Buttons für Verwendung von Buttons für

MethodenaufrufMethodenaufruf Addieren Eigenschaft „Controlsource“ Addieren Eigenschaft „Controlsource“

für Datenanbindung des Controlsfür Datenanbindung des Controls Verwendung von Container in MaskeVerwendung von Container in Maske

Page 13: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Dynazip-ControlDynazip-Control

Professionelle Professionelle KompressionslibraryKompressionslibrary

Beispiel für Subclassing:Beispiel für Subclassing: Parameter/Konfiguration über MethodeParameter/Konfiguration über Methode Aufruf Kompression über MethodeAufruf Kompression über Methode

Page 14: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Mitgelieferte ActiveX-Mitgelieferte ActiveX-ControlsControls

Übersicht über die Übersicht über die mitgeliefertenmitgelieferten

ActiveX-Controls vonActiveX-Controls vonMicrosoft Visual FoxProMicrosoft Visual FoxPro

Page 15: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Standard-MS-ControlsStandard-MS-Controls

TreeviewTreeview ListviewListview ImagelistImagelist

RTFRTF CalendarCalendar

Page 16: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Treeview-ControlTreeview-Control

Benötigt Benötigt ImagelistImagelist

Kombination Kombination mit Listview mit Listview sinnvollsinnvoll

separater separater Vortrag über Vortrag über AnsteuerungAnsteuerung

Page 17: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Rich Text BoxRich Text Box

Muß um Muß um Speicher-Speicher-möglichkeiten möglichkeiten ergänzt werdenergänzt werden

Build-Nummern Build-Nummern mit Twips statt mit Twips statt Pixel!Pixel!

Page 18: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Messaging/Internet mit Messaging/Internet mit ActiveXActiveX

MAPI Session ControlMAPI Session Control MAPI Message ControlMAPI Message Control

MS CommControlMS CommControl

MS Web BrowserMS Web Browser MS WinSock ControlMS WinSock Control

Page 19: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Einfache ActiveX-ControlsEinfache ActiveX-Controls

SysInfoSysInfo ProgressbarProgressbar SliderSlider StatusbarStatusbar

Page 20: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Spezielle FoxPro-ControlsSpezielle FoxPro-Controls

FOXTLIBFOXTLIB Anzeige von TYPELIBsAnzeige von TYPELIBs TypeLib-Reader-Klasse in Component GalleryTypeLib-Reader-Klasse in Component Gallery

FOXHWNDFOXHWND Anzeige von Anzeige von WMF/IconWMF/Icon zusätzliche Grafikformatezusätzliche Grafikformate

Page 21: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

VB Controls Creation VB Controls Creation EditionEdition

Erstellung von einfachen Controls Erstellung von einfachen Controls mit der Microsoft Visual Basic mit der Microsoft Visual Basic

Controls Creation EditionControls Creation Edition

Page 22: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Controls Creation EditionControls Creation Edition

Kurze ErläuterungKurze Erläuterung

Wichtige Einstellungen:Wichtige Einstellungen: .Autoyield = .F..Autoyield = .F. =SYS( 2333, 0 )=SYS( 2333, 0 )

Page 23: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

ActiveX-KatalogActiveX-Katalog

Der ActiveX-Markt Der ActiveX-Markt boomt (angeblich)!boomt (angeblich)!

Sehr viele weitere Sehr viele weitere ActiveX-Controls ActiveX-Controls verfügbarverfügbar

Erheblicher Erheblicher Zeitbedarf für Zeitbedarf für Sichtung und Test!Sichtung und Test!

Viel Schrott!Viel Schrott!

Page 24: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Vielen Dank!Vielen Dank!

Das waren die Themen:Das waren die Themen: Einbindung von ActiveX-ControlsEinbindung von ActiveX-Controls

SimpleBound-ControlsSimpleBound-Controls

SimpleFrame-ControlsSimpleFrame-Controls

Probleme mit SimpleFrame-Probleme mit SimpleFrame-ControlsControls

Spezialfunktionen zur Spezialfunktionen zur EinbindungEinbindung

Subclassing (Calendar)Subclassing (Calendar)

Subclassing (RTF)Subclassing (RTF)

Standard-MS-ControlsStandard-MS-Controls

Internet/Messaging-ControlsInternet/Messaging-Controls

Weitere einfache ControlsWeitere einfache Controls

Spezielle Visual FoxPro ControlsSpezielle Visual FoxPro Controls

Visual Basic Control Creation Visual Basic Control Creation EditionEdition

Page 25: Wizards & Builders GmbH ActiveX-Controls Verwendung und Einsatz von ActiveX-Controls unter Microsoft Visual FoxPro

Wizards & Wizards & Builders GmbH Builders GmbH

Wenn Fragen bestehen:Wenn Fragen bestehen:

Wizards & BuildersWizards & BuildersMethodische Software-Methodische Software-

Entwicklung GmbHEntwicklung GmbH

Frankfurter Str. 21bFrankfurter Str. 21b

61476 Kronberg61476 Kronberg

Tel.: 06173-950906Tel.: 06173-950906

Fax: 06173-950907Fax: 06173-950907

CIS: 101605,175CIS: 101605,175