![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 79
1998-2004 Gravitybox Software LLC
IsTimeVisible
Like its two sister methods, the IsTimeVisible method
returns with a Boolean value that determines the visibility of
a particular time. If the time slot is only partially visible, this
method returns false. The start edge to the end edge must be in the view port for a
return value of true.
If Not Schedule1.IsTimeVisible(#12:00:00 PM#) Then
....
'What to do if NOT visible
....
End If
ShowDay
The ShowDay method is the complement to the IsDayVisible function. It may be used in
conjunction with it to show a date that is not currently visible. The day is not guaranteed
to be displayed at any particular spot in the view port. It is only guaranteed that it will be
visible after this method is called.
If Not Schedule1.IsDayVisible(#6/3/2002#) Then
Call Schedule1.ShowDay(#6/3/2002#)
End If
Search capability for dates may be added to any scheduling application very easily, with
a combination of these functions.
ShowRoom
This is the complement method to the IsRoomVisible method. The visibility of a Room
object may be determined and displayed within the view port, if necessary.
If Not Schedule1.IsRoomVisible("Room2") Then
Call Schedule1.ShowRoom("Room2")
End If
As expressed earlier, this method may be of limited use if displaying a limited number of
rooms. If many rooms are present, this method may be very useful. There are only so
many rooms that an office may have in reality. A more productive use of this method
would be apparent when the Rooms collection defines something other than rooms. It
could define people, objects, planes, or any other physical object. There may be many
more of these objects and search capability would be needed more.
Quick Tip
You may check if a time is in the
viewable area by using the
IsTimeVisible property.
|