Schedule.NET
WebSchedule.NET
ActiveX
Enterprise Server
General
Site



DOWNLOADS | eSTORE | CONTACT | MESSAGE BOARD

Schedule.NET Appearance


Each appointment has an Appearance object that controls all aspects of its display. This single object allows you to build almost any display imaginable. There are actually two separate Appearance objects for an appointment. The main one controls the appearance of an appointment itself. Many times this is all a user will see. However it is possible to give an appointment a header, if so desired. The header of an appointment has its own Appearance object as well. 

When an Appearance object is used you can control any aspect of an appointment's display, including but not limited to backcolor, forecolor, bordercolor, borderwidth, font size, etc. In the following screen shot, you can see many different display styles.

Listed below are some examples of styles used in the above screen shot.

January 1 @ 9:30AM
This appointment has a header set to display time, but the break between the body and the appointment is invisible. Since the header back color and the appointment back color are the same color, it looks like one solid appointment with no header, yet the time is displayed at the top. The  border color matches the back color.

appointment = F.Schedule1.AppointmentCollection.Add("", _
   #1/1/2004#, #9:30:00 AM#, 60) appointment.Subject = "Weekly Staff Meeting" appointment.Appearance.BackColor = Color.LightBlue appointment.Appearance.Transparency = 30 appointment.Appearance.BorderColor = Color.Blue appointment.Appearance.ForeColor = appointment.Appearance.BorderColor appointment.Appearance.IsRound = True appointment.Header.HeaderType = _
   AppointmentHeader.HeaderTypeConstants.TimeHeader appointment.Header.Appearance.BackColor = _
   appointment.Appearance.BackColor appointment.Header.Appearance.ForeColor = _
   appointment.Appearance.ForeColor appointment.Header.Appearance.Transparency = _
   appointment.Appearance.Transparency appointment.Header.Appearance.AllowBreak = False

January 3 @ 10:00AM
This appointment has a visible header set to display time. There is a break between the body and the appointment. The border color is black to ensure that there is a differentiator between schedule background, appointment back color, and the header back color.

appointment = F.Schedule1.AppointmentCollection.Add("", _
   #1/3/2004#, #10:00:00 AM#, 90)
appointment.Subject = "5k Heart Run" appointment.Appearance.BackColor = Color.LightPink
appointment.Appearance.Transparency = 30
appointment.Appearance.BorderColor = Color.Black
appointment.Appearance.ForeColor = appointment.Appearance.BorderColor
appointment.Appearance.IsRound = True
appointment.Header.HeaderType = _
   AppointmentHeader.HeaderTypeConstants.TimeHeader appointment.Header.Appearance.BackColor = Color.Red appointment.Header.Appearance.ForeColor = Color.White appointment.Header.Appearance.Transparency = 0 appointment.Header.Appearance.AllowBreak = True

January 2 @ 8:00AM
This appointment has a visible header set to display time and the header and appointment colors are different. You can see a difference between it and the others in that there is an icon displayed in the header. An appointment header can have zero or one icon associated with it for display. The icon used is actually part the schedule. There is a small collection of built-in icons in the DefauItIcons collection. However you could have just as easily loaded one from disk.

appointment = F.Schedule1.AppointmentCollection.Add("", _ #1/2/2004#, #8:00:00 AM#, 90) appointment.Subject = "Dentist Appt" appointment.Appearance.BackColor = Color.LightBlue appointment.Appearance.Transparency = 30 appointment.Appearance.BorderColor = Color.Blue appointment.Appearance.ForeColor = appointment.Appearance.BorderColor appointment.Appearance.IsRound = True appointment.Header.HeaderType = _ AppointmentHeader.HeaderTypeConstants.TimeHeader appointment.Header.Appearance.BackColor = Color.Blue appointment.Header.Appearance.ForeColor = Color.White appointment.Header.Appearance.Transparency = 0 appointment.Header.Appearance.AllowBreak = False appointment.Header.Icon = Schedule1.DefaultIcons.IconWarning

You also notice that the schedule grid lines are visible through some of the appointments and headers. Each Appearance object has a Transparency property that defines the percentage of transparency of its defining object. In the last appointment described, January 2 at 8:00AM, the transparency is set to 30%. You can see the faint fade through of the schedule grid lines because of this setting.

As a side note, there is a special conflict setting on this screen shot as well. The three conflicting appointments in column two are shown staggered. The ConflictDisplay property of the schedule defines there display. Use this property to define the way in which conflicting appointments are displayed: overlap, staggered, or side-by-side.