|
Advanced Graphics
There are numerous other ways to enhance the look-and-feel of a schedule. Many of
the schedule's properties change its display. Listed are some of these properties
that affect a schedule's display. AppointmentBar
The AppointmentBar property allows you to define a colored bars for each appointment
and also for the schedule as a whole.
The AppointmentBar property allows you to display a colored bar on the left
side of an appointment. The valid settings are as follows: None, UserDrawn, Category,
and Provider. When the setting is None, no bar is drawn. The next two settings allow
for the visualization of additional appointment information. When set to Category
the color of the first category object in the appointment’s CategoryCollection will
be drawn. If the collection empty no colored bar will be drawn. Only the first category
object’s color is drawn. The appointment shows similar functionality when the AppointmentBar
property is set to Provider except that the bar is the color of the first provider
object in the ProviderCollection.
A most interesting setting is the UserDrawn. This setting will draw nothing where
the colored bar should be, but will raise an event, UserDrawnAppointmentBar, to
inform the container that this area should be drawn. This allows you, the developer,
to draw any thing you wish on the canvas. This is useful if you wish to draw regions
that correspond to some non-visible appointment information. For example, this property
can be used to notify the user of time slots for providers. TimeBar
The TimeBar property defines the time margin colored bars. This set of bars
is much like the AppointmentBar settings except that it is a summary of all appointment
bars. For example, if there is an appointment 8-9a and one from 10-11a in category
1, then that category bar in the time margin would be colored in both ranges (8-9a
and 10-11a).
The example below shows the AppointmentBar and TimeBar properties
set to 'Category'. The colored bars in the time margin correspond to the TimeBar
property and the colored bars on each appointment correspond to the AppointmentBar
property.
Appointment.Header
Each appointment has a Header object. This object allows you to define a hedaer
for each appointment. The graphic below shows numerous appointment with headers.
You can see the different displays. Below are some descriptions of header customizations.
- may have icons
- custom backcolor and forecolor
- may be transparent
- may have divider line
- may display date, time, or custom text
|
|