Navigation bar
  Print document Start Previous page
 31 of 90 
Next page End  

Gravitybox Schedule.NET
1998-2005 Gravitybox Software LLC
Page 29 of 90
appointment = Schedule1.AppointmentCollection.Add("", #6/3/2004#, _
                                                  #8:00:00 AM#, 60)
appointment.IconCollection.Add("", Schedule1.ScheduleIcons.IconInfo)
DefaultIcons
The DefaultIcons is also a predefined collection of icons however it differs in that these
icons are actually used in the schedule. There are places on the schedule where icons
are displayed to provide information. This collection holds all of the icons used by the
schedule component. For example, on the toolbar of the appointment properties screen,
the icons displayed are stored in the DefautlIcons collection. Also when an appointment
is in a recurrence pattern, the recurrence icon used comes form this collection as well.
Display Properties
Overview
There are many properties involved in the display of the schedule. Listed below are
some other more important ones. They control how bars and colors are displayed as
well as local display settings for data such as time.
AppointmentBar
This object defines the bar that may be displayed in the left margin of an appointment.
The bar may describe either the provider or category of an appointment. Since
appointments may actually have more than one category or provider assigned to it, only
the first one is used to draw the bar. The setting of the bar is by default none. No bar is
displayed in the appointment margin at all. There is also a fourth setting: user-drawn.
This allows you to draw your own bar on the appointment. The event
UserDrawnAppointmentBar is raised with a rectangle of the drawing area. The schedule
will not draw anything over this area, as it is your responsibility to draw there.
BarType
Determines the type of bar to draw:
None, Category, Provider, or
UserDrawn.
Size
This property defines the width, in
pixels, of the bar
This property is provided so that you might convey more information to the user if
desired by using a color-code bar. There is also a matching bar in the schedule’s left
margin defined by the property TimeBar. It is just like this property object except that its
settings are used to draw the bars in the schedule’s left margin.
AppointmentSpace
This property defines the number of pixels between and appointment’s right edge and
the column divider. This value must be greater than or equal to zero. If the value is zero
then there is no space between the two and appointments are positioned flush with the
column divider.  This property is useful to allow the user to create appointments that
conflict with each other. For example, if an appointment is schedule from 8a – 10a and
fills its column, the user has no way to click on the background to create an appointment