![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 110
1998-2004 Gravitybox Software LLC
consists of 2 bytes per character. The printing code needs to know that this is a double-
byte language. When the UseUniCode property is set, all text is assumed to be double
byte and is displayed as such. Keep in mind that this only works on Windows NT and
Windows 2000 machines. On Windows 95/98 machines the double byte text will still not
completely be displayed.
OutsideAreas
In addition to the NoDropAreas collection coloring the
schedule in a special way, you may also define
OutsideAreas. Objects in this collection are defined just as
those in the NoDropAreas collection. The difference is that the user may still drag and
drop appointment to these areas. Sometimes it may be necessary to define and area as
special. It is still valid so the user may move appointments there, but you just wish to
mark it a different color for some reason. In this situation, you can use this collection to
define these areas. An example may be that you wish to display an entire day 12:00 AM
for 24 hours. However you may wish that 12:00 AM to 8:00 AM and 5:00 PM to 12:00
AM be marked another color. This could signify that these times are not normal
business hours. You may not care if they schedule appointments there. You just want to
make sure that the user knows this is outside normal business hours.
End of day overlap
The DayLength property may not make the day display past 12:00 AM. If the StartTime
is 8:00 AM then the maximum DayLength is 16. Since 17 hours would make the
schedule display until 1:00 AM the next day. Since days are displayed in columns 1:00
AM the next morning should not be in that days column since it would really be the next
day. Because of the way the schedule handles appointments this is a limitation at this
time. If you wish to have a 2-day appointment, you will not be able to display it on the
schedule. At this time, the maximum allowed length for an appointment is 24 hours.
End of schedule overlap
Appointments may not overlap the end of a schedule either. Even if the schedule ends
well before the 12:00 AM. If the schedule ends at 6:00 PM then an appointment starting
at 5:00 PM may not last 2 hours, since there would be no place to display it. When the
user drags an appointment to the edges of a schedule, the appointment will stop when
its bottom edge (or left edge) touches the edge of the schedule. This ensures that a
drag can move all the way to an edge, but not over. If dragging a 2-hour appointment
and the schedule end at 6:00 PM the appointment, the user cannot move the
appointment any further than 4:00 PM. This is the last valid time that this appointment
will fit.
Quick Tip
You may mark areas a special color
with the OutsideAreas collection.
|