![]() Gravitybox WebSchedule.NET
1998-2005 Gravitybox Software LLC
Page 61 of 65
appointment.Header.HeaderType =
AppointmentHeader.HeaderTypeConstants.DateHeader
'Set the header icon to the default "Info" icon
appointment.Header.Icon = Schedule1.DefaultIcons.IconInfo
How do I determine how many days an appointment spans?
Appointments may overlap any number of day boundaries. To determine the number of
breaks use the DaySpan appointment property. This property is not the number of full
days that the appointment covers. It is the number 12:00AM boundaries that the
appointment covers. For example, an appointment from 1:00AM on Jan 1 to 11:00PM
Jan 2 covers 46 hours but it only crosses 1 day boundary.
Dim days As Integer = appointment.DaySpan
How do I display a colored bar next to an appointment?
There are four ways to configure an appointments left side bar: none, category,
provider, or user-drawn. The first, none, displays no bar at all. The second, category,
displays a colored bar the same color as the first category object in the appointments
CategoryList object. If no categories are present in this list, no bar is drawn. The third,
provider, displays a colored bar the same color as the first provider object in the
appointments ProviderList object. If no providers are present in this list, no bar is
drawn. The last, user-drawn, is quite interesting. It allows you receive notification
through the UserDrawnBar event when an appointment bar needs to be drawn and
allows you to draw your own custom bar.
Schedule1.AppointmentBar = _
Gravitybox.Controls.Schedule.AppointmentBarConstants.None
Schedule1.AppointmentBar = _
Gravitybox.Controls.Schedule.AppointmentBarConstants.Category
Schedule1.AppointmentBar = _
Gravitybox.Controls.Schedule.AppointmentBarConstants.Provider
Schedule1.AppointmentBar = _
Gravitybox.Controls.Schedule.AppointmentBarConstants.UserDrawn
How do I mark an appointment as read-only and have is displayed with no details
visible?
If you wish to show an appointment space as taken, but do not want the user to see any
details of the appointment, you should use an appointments BlockOut property. It
ensures that the appointment drawn as a solid colored block defined by the schedules
BlockOutColor. No text or icons are displayed on the appointment. The user cannot
move, copy, or otherwise interact with the appointment. The appointment simply
becomes a placeholder to inform the user that the space is taken but he has no
business know any other information about the appointment.
appointment.Blockout = True
|