![]() ![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 29
1998-2004 Gravitybox Software LLC
The collection can be used to define a NoDrop zone for a room also. If five rooms are
defined and Room3 must be guaranteed to never accept any appointments, the room
may be added to this collection and the user will no be allowed to add, copy or move
any appointments to the specified room. If the user attempts to drag an appointment to
this schedule section, the mouse will turn to a no-drop pointer, to indicate that this
action is not valid.
It may be very useful to block rooms. Perhaps you have an office that is being
remodeled and you do not wish to schedule any appointments in a particular room.
Adding the specified room as the second parameter to the collection does this.
Call NoDropAreas.Add(, 3)
Figure 1.6
To block a time interval two parameters must be specified, StartTime and Length. The
zone will begin at the specified time and last for the duration of the Length property, in
minutes. The usefulness of this may be seen in the doctors demo by defining 12PM-
1PM as the lunch hour. No appointments should be scheduled for this time slot, as the
office is closed. The following code sets 12:00PM until 1:30PM as a NoDrop zone.
Call NoDropAreas.Add(, , #12:00:00 PM#, 90)
|