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

appointment can not be automatically added. The
Gravitybox Schedule Primer
Page 221 
1998-2004 Gravitybox Software LLC
DragDropScheduleItem
Contacts Control
Event DragDropScheduleItem(ScheduleItem
As CScheduleEl, DragOperation As
DragOperationConstants, X As Long, Y As
Long, Effect As Long, Cancel As
Boolean)
This event is raised when the user drops a
ScheduleItem from a Schedule control onto a
Contacts control. A copy of the ScheduleItem object
is passed as a parameter.
Schedule Control
Event DragDropScheduleItem(ApptDate As
Date, ApptRoom As Long, ApptTime As
Date, ApptLength As Long, DragOperation
As DragOperationConstants, X As Long, Y
As Long, Effect As Long, Cancel As
Boolean)
This event is raised when an appointment is dropped
on a schedule window. This can be another
OLEDrag drag (i.e. from Windows Explorer) if the
AllowInterWindowDrop and AllowOtherDrops
properties are enabled. The date/room/time/length
are sent in as parameters so that any conflict
checking or other processing can be performed. The
DragOperation parameter is the operation being
performed which is none, copy, move, or add. If the
AllowOtherDrops is True and the user drags a non-
appointment item (like files or text or anything else)
then this parameter will always be set to "Add" since
the user is adding a new appointment with a drag.
When dragging an appointment to another position,
in the same window or across windows, this
parameter is set to "Move". Alternately, if the
<CTRL> key is pressed it is a "Copy". The Effect
parameter is the standard OLE Effect.
TaskList Control
Event DragDropScheduleItem(ScheduleItem
As CScheduleEl, DragOperation As
DragOperationConstants, X As Long, Y As
Long, Effect As Long, Cancel As
Boolean)
This event is raised when the user drops a
ScheduleItem from a Schedule control onto a
TaskList. A copy of the ScheduleItem object is
passed as a parameter. In this event you may add
the ScheduleItem as a task if you wish. Since there
are no predefined columns on  a TaskList,  an
http://www.purepage.com