Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - How to detect the events fired
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to detect the events fired

 Post Reply Post Reply
Author
Message
aboldoc View Drop Down
Newbie
Newbie


Joined: 06 September 2006
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote aboldoc Quote  Post ReplyReply Direct Link To This Post Topic: How to detect the events fired
    Posted: 02 October 2006 at 2:18pm
Hi, Do you know how to implement this code in delphi? or windev(pcsoft)?

What I want to do is to detect the event that is fired.

OnReminders

------- from the sample vb code provided By Codejock

    Dim pRemI As CalendarReminder
    Dim pEventI As CalendarEvent
      
    For Each pRemI In frmMain.CalendarControl.Reminders
        Set pEventI = pRemI.Event
        .
        .
    Next

------------

Thank's

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 03 October 2006 at 10:37am
Hi,

Which data provider do you use? I suppose that Custom.
I've heard once about such a problem with PowerBuilder environment.

Reminder object does not contain an event object, it stores EventID.
 
pRemI.Event calls DataProvider.GetEvent(EventID).
GetEvent fires DoReadEvent notification.
 
In DoReadEvent implementation you'll have to create an event object, fill properties and return it.
 
But the problem is that PowerBilder does not return parameters other than VARIANT type. I suppose you have the same problem.
 
To solve this problem a few additional notifications with VARIANT parameters were added:
    DoReadEventV, DoReadRPatternV
 
This is available by request as a patch for version 10.3.1.
 
PS: And also please check that parameters in you functions declarations which must be ByRef is actually ByRef.

--
WBR,
Serge
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.