![]() Gravitybox Schedule.NET
1998-2005 Gravitybox Software LLC
Page 81 of 90
How do I mark an appointment as read-only and have is displayed with no details
visible?
If you wish to show an appointment space as taken, but do not want the user to see any
details of the appointment, you should use an appointments BlockOut property. It
ensures that the appointment drawn as a solid colored block defined by the schedules
BlockOutColor. No text or icons are displayed on the appointment. The user cannot
move, copy, or otherwise interact with the appointment. The appointment simply
becomes a placeholder to inform the user that the space is taken but he has no
business know any other information about the appointment.
appointment.Blockout = True
How do I override the displayed header (column or row) text?
There are three events that are displayed before header are drawn:
BeforeRoomHeaderDraw, BeforeProviderHeaderDraw, and BeforeDateHeaderDraw.
These events allow you to change the text drawn in the header if desired. The change
will not change the text permanently. It will only be changed on the screen and not in
the header object.
How do I get notification when an appointments alarm comes due?
The event BeforeAppointmentDue is raised just before the default alarm dialog is
displayed. You may cancel the dialog from this event. In addition the
BeforeAppointmentReminder event is raised some number of minutes before (or after)
the BeforeAppointmentDue event determined by the appointments Reminder
property. The Reminder property is the number of minutes before an appointment to
display the reminder screen. If this value is 0 then no reminder is displayed. If this value
is negative then the reminder occurs after the appointment comes due.
How do I override the displayed appointment text?
The event BeforeAppointmentTextDraw is raised just before each appointments
subject text is drawn. You may change the displayed text from this event is necessary.
Overriding the text will not change the appointment object Subject property. It will only
change the text drawn on the screen. The change has no persistence.
How do I get notification when an appointment is added, copied, moved, or
deleted?
There are numerous events that provide notification upon an action occurring. Many
times there are complementary events that begin with Before and After. These
events work in pairs to notify the container before an action occurs and after that action
has occurred. In most cases the action may be canceled in the Before
event. Below
are a few event actions and there associated events.
Action: Appointment Add
BeforeAppointmentAdd
AfterAppointmentAdd
|