![]() ![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 161
1998-2004 Gravitybox Software LLC
When there are appointments actually on the schedule, the user may double-click on
each to display its property box. Each appointment has many properties including date,
start time, and reminder. Most of these are self-explanatory. An interesting one is the
reminder property. It will set the schedule to raise an event when the specified item
comes due. For example, if we make an appointment for June 5, 2002 at 9:00 AM, the
ScheduleItemStart event would be raised at this time to signify that the appointment
has come due. In the GbOrganize example, the property box is displayed.
Figure 16.7
This informs the user that an appointment has come due and gives him access to the
appointments properties. In this example we have loaded the properties screen and
shown it non-modally. The reason for this is that if the user is away or this is an
automated application then another appointment may come due while the first screen is
still displayed. In this example there may be any number of property boxes displayed on
the screen, waiting for user attention.
Private Sub Schedule1_ScheduleItemStart(ByVal Index As Long)
Call ShowApptDue(Schedule1.ScheduleItems(Index),
oAppointments)
End Sub
Public Sub ShowApptDue(ByVal oScheduleItem As CScheduleEl, _
ByVal Appointments As CAppointmentCol, _
Optional ByVal lSnoozeCount As Long = 1)
|