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

Gravitybox Schedule.NET
1998-2005 Gravitybox Software LLC
Page 28 of 90
ignored.
FrameIncrement
Determines the number of columns or rows that are scrolled
at one time. The default is one but this allows you to make
the user scroll only N rows or columns at a time.
Size
Determines the size, in pixels, of the header. For column
header this value is the width and for row headers it is the
height.
NoDropAreaCollection  and ColoredAreaCollection
Schedule areas can be defined to present some type of color-coded information to the
user. For example, you may wish to define 12pm through 1pm as lunchtime and June 3
as surgery day. You would use the NoDropAreaCollection for the first example and the
ColoredAreaCollection for the second. During lunchtime you do not want any
appointments to be scheduled. You define this time range and it is colored. If a user
tries to move an appointment over this position, it turns to a no-drop icon. In the second
example, surgery, you wish to define a day to schedule surgeries. Here you want to
color-code the schedule but you do want appointments to be scheduled there.
The following code demonstrates how to add to two examples above.
'Define lunchtime for every day
Schedule1.NoDropAreaCollection.Add(Color.Red, #12:00:00 PM#, 60)
'Define surgeries for 6/3/2004
Schedule1.ColoredAreaCollection.Add(Color.LightBlue, #6/3/2004#)
The entire functionality of these two collections lies in their Add methods. Once an
object is created it cannot be modified only removed. The Add method is overloaded to
allow many different types of areas to be defined. For example, you may wish to define
a date, date/time, date/room, room/time, etc. Use the Add method that matches the
information need to define your area.
SelectedItems
The SelectedItems list allows multiple appointments to be selected at one time. If the
MultiSelect property is set to true, then multiple appointments can be selected at the
same time. The user can add appointments to this collection by holding the <CTRL>
key and clicking on any number of appointments. You can programmatically select an
appointment by adding it to this collection.
ScheduleIcons
This is a fixed list of predefined icons that may be used on the schedule. You may use
icons in this list to as appointment icons or place in an appointment header. You do not
have to use these icons. They are provided for convenience only. The code below
creates an appointment and adds an icon that will be displayed in its left margin.
Dim appointment As Appointment