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

Gravitybox Schedule Primer
Page 36 
1998-2004 Gravitybox Software LLC
Moving Appointments between Windows
The previous move and copy example displayed the actions being performed on a
single screen. It is possible to drag appointments across windows or even applications.
As in the example you may drag an appointment to another form that has a GbSchedule
component on it. Since this is another instance of GbSchedule, it does not matter if it is
the same screen, a child window, or a different application. The drag will work no matter
what! This feature is nice when building a MDI application. You can construct an
application that allows the user to open different days or rooms or some combination of
both in different windows. If the user opens two, child forms say one for January 12 and
the other for January 13; he will have two instances of GbSchedule. He may then drag
one of the existing appointments to the other window. The original appointment in the
source windows will disappear and the appointment will reappear in the destination
window. There is a little caveat though. For an instance of the schedule to receive drops
from outside of itself, the AllowOtherDrops must be toggled to true. This property
ensures that the schedule is allowed to receive outside drops. If this property is false, no
appointments may be dropped from other schedules. The beauty of this cross-window
dragging is that the source and destination schedules need not be the same format. The
source may display time at the top and the destination may display time on the left. One
may display Rooms while the other may not. They may be displayed in any
combination. 
http://www.purepage.com