Navigation bar
  Home Print document Start Previous page
 115 of 234 
Next page End  

Gravitybox Schedule Primer
Page 113 
1998-2004 Gravitybox Software LLC
This code will assign category values to the first two appointments (lets assume that
there are at least two, Ok). The category 1 is the "Shoes" category and category 2 is the
"Music" category. Elements may not be added or removed from an appointment’s
Categories collection. The number of elements in the ScheduleItems’ Categories
collection determines the number of elements in the Categories collection, of each
ScheduleItem object. As seen here, elements are not added or removed from the
Categories collection of each ScheduleItem, but only modified.
AppointmentShape
Modifying the appointments’ shape may also change the
display of a schedule. The default shape for an appointment
is square. This will cover the entire area of the appointment.
If desired, the schedule’s AppointmentShape property may be used to change the
appointments’ shape. There may be times when you may wish to change the
appointment shape, but it is more natural to display the appointments as a square
shape. The valid settings for this property are normal, folded, and rounded. The normal
is square. The folded settings draws the appointments with the right, bottom edge of the
appointment folded up. The rounded setting will draw the all four edges of each
appointment rounded.
Redrawing
When an appointment's properties are changed, the
schedule is immediately updated. This only applies to the
properties that are displayed of course. The Notes or Id
properties would not refresh the screen because they do not
affect display, however Length does. This actually may
become very time consuming, if many items are set. When loading or clearing a
schedule, it is advised to use the schedule property AutoRedraw. Set this property to
false before loading or clearing, so that the screen is not refreshed, for every change
that is made. The value must be set back to true when done or the schedule will never
be redrawn and the user will be very confused as to what is wrong, with the “broke”
schedule.
Quick Tip
If desired, appointments may have
different shapes.
Quick Tip
When loading many appointments,
toggle the “AutoRedraw” property to
False. When complete, set it to True.
This action will temporarily turn off
screen repaints for quicker loading.
http://www.purepage.com