BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Event Handlers

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Urs Wigger
Guest





PostPosted: Thu Dec 25, 2003 10:37 pm    Post subject: Event Handlers Reply with quote



Hello,

If importing an (Event exposing) ActiveX Control to a Delphi project,
the Delphi 'Object Inspector' supports me in creating Event Handler Code
by just assigning a Name to one of the listed Events in the 'Actions'
column.

However, if using a (non- ActiveX) COM Component with an IDispatch
Connection-Point Interface, the Events TAB in the Delphi Object
Inspector reamains empty.

I'm using the same component with Visual Basic. There, I just can
provide the 'With Events' keyword to the declaration (example:
Dim WithEvents ObjSync As LTCommandSync) and I get supported in creating
Event handler code as with ActiveX controls by just selecting the
desired event from a list.

Is there an equivalent to the 'With Events' Keyword in Delphi? If not,
how do I implement an IDsipatch Event Sink in a Delphi COM client? Does
anybody have a sample?

Thaks in advance,
Urs

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.