![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 215
1998-2004 Gravitybox Software LLC
BeforeCopy
Event BeforeCopy(OldAppt As
CScheduleEl, OldApptIndex As Long,
OldMode As ViewModeConstants, NewDate
As Date, NewRoom As String, NewTime As
Date, NewMode As ViewModeConstants,
DoPrompt As Boolean, Cancel As Boolean)
BeforeCopy is raised before the user drags a
ScheduleItem to a new location. This happens after
the user drops the item on its new location. The
event provides the appointment and its index in the
ScheduleItems collection. The NewDate, NewRoom,
and NewTime define the position of the new
appointment. Also there are two "By Reference"
parameters that allow you to send information back
to the schedule. "DoPrompt" allows you to display
your own confirmation by canceling the default
prompt. If you do this then the copy will automatically
be confirmed, unless the "Cancel " parameter is set
to False. "Cancel" provides a way for you to cancel a
drag, if desired.
The OldMode and Newmode parameters determine
the ViewMode setting of source schedule (OldMode)
and the mode of the target schedule (NewMode).
This allows you cancel a copy between windows if
desired, for example if the modes do not match.
Note:
The "OldApptIndex" parameter will be zero if the
user is dragging between schedule windows. This
parameter is only valid when a drag is started and
completed inside the same schedule window.
|