Reminder |
Post Reply |
Author | ||
WillieVS
Newbie Joined: 02 February 2008 Location: South Africa Status: Offline Points: 8 |
Post Options
Thanks(0)
Posted: 09 February 2008 at 2:12am |
|
I cannot seem to find the XtremeCalendarControl.CalendarDialogsClass in the ocx.
How do I activate reminders using the ocx calender.
Thanks
|
||
Willie van Schalkwyk
http://www.cyberprop.com |
||
WillieVS
Newbie Joined: 02 February 2008 Location: South Africa Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|
Ok, I have found the solution after trying about everything. Here is the solution should anybody else need it in future:
VB Code:
FoxPro Code:
The real problem here was to create the reminder object as there was no reference to the name to be used in the createobject function.
The problems comes with creating the
|
||
Willie van Schalkwyk
http://www.cyberprop.com |
||
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
|
If you need to create some others objects ::: ******** Foxpro CODE :
with this && "this" is my class where I put everything from CodeJock together
.cVersion = "11.2.2" .GlobalSettings_CommandBars = createobject("Codejock.CommandBarsGlobalSettings." + this.cVersion) .GlobalSettings_CalendarTheme = createobject("Codejock.CalendarThemeOffice2007." + this.cVersion) ._setSystemTheme() endwith
*!* #DEFINE xtpSystemThemeUnknown 0 && No known theme in use
**************************************************************************************************************** |
||
wlcabral
|
||
WillieVS
Newbie Joined: 02 February 2008 Location: South Africa Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|
mmm cVersion, nice one.
With a lot of trial and error I got my calendar to work. I even created my own form for editing and creating of events. Well I did it because I did not know that the OCX contains / manages those too.
To my astonishment I could edit the appointments from within the reminder dialog window.
Although very nice, I need other fields like a Rep code selection, customer selection and so on.
Do you know how I can change the behavior of the Reminder to run my code on editing an existing object?
Thanks for your help
|
||
Willie van Schalkwyk
http://www.cyberprop.com |
||
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
|
Theoretically :
.EnableReminders(.t.)
All events have a Reminder property that can be used to set a reminder for the event.
OnReminders event Occurs when reminders are enabled, disabled, snoozed, dismissed, and fired....
I said Theoretically because (for me) the onReminders() event was fired, but the second paremeter (ByVal Reminder As CalendarReminder) was NULL ...
|
||
wlcabral
|
||
Saturnin
Newbie Joined: 27 February 2008 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
|
I have got the same probleme !
The second parameter is NULL :(
SOS :x
|
||
WillieVS
Newbie Joined: 02 February 2008 Location: South Africa Status: Offline Points: 8 |
Post Options
Thanks(0)
|
|
Hi
I dont think you going to get an answer here why it is happending. I suggest you open a support case and then once you have the answer you can let us know too
|
||
Willie van Schalkwyk
http://www.cyberprop.com |
||
Saturnin
Newbie Joined: 27 February 2008 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
|
i did !
the answer :
"
Hello,
Please take a look at the definition of parameters. When the first is 3 -- NULL value of the second one is correct. xtpCalendarRemindersMonitoringStarted = 1, // Reminder = NULL xtpCalendarRemindersMonitoringStopped = 2, // Reminder = NULL xtpCalendarRemindersFire = 3, // Reminder = NULL xtpCalendarReminderSnoozed = 4, // Reminder = Snoozed reminder xtpCalendarReminderDismissed = 5, // Reminder = Dismissed reminder xtpCalendarReminderDismissedAll = 6, // Reminder = NULL Instead, you can access Reminders collection and iterate them. "
can someone understand ? :/
|
||
wlcabral
Groupie Joined: 25 April 2007 Location: Brazil Status: Offline Points: 72 |
Post Options
Thanks(0)
|
|
They are telling that we don’t have this information when OnReminders is fired. We need to check manually through the Reminders collection, something (FOXPRO) like: With xtremeCalendar For i = 0 to .Reminders.Count-1 oEvent = .Item(i).Event if .Item(i).NextReminderTime < datetime() if messagebox(oEvent.Subject, 4) = 6 .Item(i).Dismiss() endif endif next endWith |
||
wlcabral
|
||
Saturnin
Newbie Joined: 27 February 2008 Status: Offline Points: 4 |
Post Options
Thanks(0)
|
|
it's not cool :( an event (in calendar) call the event "OnReminders". It could be logique to give it as parameter. even if there are more than one event which call the event "OnReminders", it could send a collection of events. thx you wlcabral for your help.
|
||
sensum
Newbie Joined: 21 February 2009 Location: Brazil Status: Offline Points: 1 |
Post Options
Thanks(0)
|
|
Hello, this is an addition and correction of the example shown above in FOXPRO. Thanks to Cabral published by example. *** ActiveX Control Event ***
lparameters action, reminder local i, oEvent, cAlert with thisform.calendar |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |