![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 72
1998-2004 Gravitybox Software LLC
language you could change the text it to reflect the local word for week. Currently week
number of only displayed in List mode and Calendar mode. All of this adds to the
internationalization of your application. Also, if you ever need to determine the week
number of date the method GetWeekNum method returns this information.
ScheduleIncrement
Every schedule will have different resolution needs. This
property will allow the schedule resolution to be configured
in relation to time increments. The property defines the
smallest time block visible on the schedule. The displayed time must be carved into
some sized pieces. This property provides the time slice size. Each one the valid values
for this property is a factor of 60. This is the number of minutes in an hour and the hour
must be sliced evenly for a coherent display. Its possible values are 1, 2, 3, 4, 5, 6, 10,
12, 15, 20, 30, and 60. For example, if the ScheduleIncrement is set to 20 minutes,
every hour will be displayed across three rows (or columns). The smaller the
ScheduleIncrement value, the more detailed each hour becomes. Figure 6.4 is
displayed with a ScheduleIncrement of 30. The time is displayed with two rows per
hour.
AllowColumnResizing
This property, when set to true, will allow the user to
dynamically resize columns. This allows the column widths
to be locked at a predetermined size or it allows the user to
modify their size will. If true, the user may move the mouse pointer over the column
break, until the mouse pointer changes to a resize icon. At this time, the user may click
the left mouse button and drag the mouse, until the column resizes to the preferred
width.
AllowRowResizing
This property, when set to true, will allow the user to
dynamically resize rows. As with columns, the row size may
be set to some predetermined size or the user may have
access to modify it. Again, the user must move the mouse pointer over the row break
until the mouse pointer changes to a resize icon. The user may then drag the mouse
until the row size is the preferred height.
TimeFormat
In different countries, the time is displayed in different formats. There could be a display
problem if the schedule is forced to always be display the same way. GbSchedule
allows for the time to be displayed in 12-hour or 24-hour format, based on the setting of
this property. In 12-hour format, the hours 1-12 are used as well as an AM/PM symbol.
In the 24-hour format, the time is displayed with the hours 0-23. The latter format is the
Quick Tip
The time resolution of the schedule
may be any divisor of 60 minutes.
Quick Tip
To allow the user to resize columns,
set the AllowColumnResizing
property to True
Quick Tip
To allow the user to resize rows, set
the AllowRowResizing property to
True
|