![]() ![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 30
1998-2004 Gravitybox Software LLC
Figure 1.7
This collection is most useful; however it has much more power. You have seen how to
block entire columns and rows, but in the real world many times we need to block very
specific sections of our schedule such as Thursdays the 9 from 10AM 11AM. This
may greatly increases the functionality of the collection and the schedule component.
Using multiple parameters of this collection may block any section of a schedule. If you
wish to block August 9, 2002 from 8AM through 12PM then you need to add a
NoDropArea for this section of the schedule. Notice that second parameter was omitted.
There is no room component to this schedule block so we leave it blank. Keep in mind
that this block will only show up if both the date and time is displayed by the schedules
viewmode. If the ViewMode is displaying dates versus rooms only, with no time
component, this NoDropArea will not be displayed even if the proper date is displayed.
If a NoDrop zone is defined with a date, room, or time element then these same
components must be in the schedules viewmode. A good example of this is a NoDrop
zone for a specified date, room and time. It would only be shown is the viewmode was
set to vmcNormalDayRoomTopTimeLeft or vmcNormalDayRoomLeftTimeTop. These
are the only two viewmodes that display all of the NoDrop zones parts.
Call NoDropAreas.Add(#8/9/2002#, , #8:00:00 AM#, 240)
This collection may be of no use to some developers, but it will be extremely valuable to
others. Since GbSchedule does not allow for the selective removal of dates and times
from its display, this is the next best thing. The dates and times will be displayed, but
only as placeholders.
|