 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Urs Wigger Guest
|
Posted: Thu Dec 25, 2003 10:37 pm Post subject: Event Handlers |
|
|
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 |
|
 |
|
|
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
|
|