AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren

COM Events

Ein Thema von MarLe · begonnen am 20. Dez 2007 · letzter Beitrag vom 26. Jun 2008
 
Brainshock

Registriert seit: 26. Nov 2004
Ort: 37345
214 Beiträge
 
Delphi 7 Professional
 
#4

Re: COM Events

  Alt 26. Jun 2008, 15:04
Keine Ahnung ob du das meinst, aber hier mal ein Beispiel mit Hilfe der Powerpoint_TLB.


Powerpoint_TLB.pas

Delphi-Quellcode:
type
  TPowerPointApplicationSlideShowOnPrevious = procedure(ASender: TObject; const Wn: SlideShowWindow) of object;

TPowerPointApplication = class(TOleServer)
private
  FOnSlideShowOnPrevious: TPowerPointApplicationSlideShowOnPrevious;
published
  property OnSlideShowOnPrevious: TPowerPointApplicationSlideShowOnPrevious
    read FOnSlideShowOnPrevious write FOnSlideShowOnPrevious;
end;
Unit1.pas

Delphi-Quellcode:
TForm1 = class(TForm)
private
  FPowerpointApp: TPowerPointApplication;
  procedure DoSlideShowOnPrevious(ASender: TObject; const Wn: SlideShowWindow);
public
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  FPowerpointApp:= TPowerPointApplication.Create(Self);
  FPowerpointApp.OnSlideShowOnPrevious:= DoSlideShowOnPrevious; // <- Event zuweisen
end;

procedure TForm1.DoSlideShowOnPrevious(ASender: TObject; const Wn: SlideShowWindow);
begin
  // mache was beim Wechsel...
end;
Matthias
  Mit Zitat antworten Zitat
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht

Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:51 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz