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

Gravitybox Schedule Primer
Page 204 
1998-2004 Gravitybox Software LLC
This method, given a number of parameters, will return
the next available slot into which the appointment will
fit. Define the parameters start date, start room, start
time, and appointment length and the method will
determine the next fit on the schedule. The return is an
appointment object that is NOT in the ScheduleItems
collections. The object is returned populated with its
Date, Room, and StartTime. No other properties are
set. You can use this information to add another
appointment to the ScheduleItems collection with its
Add method. You may specify the indexes to ignore
when searching. These indexes include appointments
that may conflict with the specified appointment space
but you do not care about them. The ignore indexes
are numbers separated by a space, comma, colon, or
semicolon.
Note: The time resolution is determined by the
ScheduleIncrement property. In other words if the
ScheduleIncrement is 15 minutes and you are testing
an appointment of 20 minutes then 2-15 minute slots
will be needed.
GetRoomFromCor
Function GetRoomFromCor(X As Long, Y As
Long, [bInBounds As Boolean = False]) As
Long
Given X/Y coordinates in pixels, this property returns
the room that is associated with the position. The
InBounds parameter may be used to specify whether
you wish the specified coordinates to be inside the
client area. When true, the method will only return a
valid value if the coordinates are inside the client area
where the appointments are displayed. Clicking in the
margins will not return a valid value in this case.
GetTimeFromCor
Function GetTimeFromCor(X As Long, Y As
Long, [bInBounds As Boolean = False]) As
Date
Given X/Y coordinates in pixels, this property returns
the time that is associated with the position. The
InBounds parameter may be used to specify whether
you wish the specified coordinates to be inside the
client area. When true, the method will only return a
valid value if the coordinates are inside the client area
http://www.purepage.com