![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 219
1998-2004 Gravitybox Software LLC
BeforeMove
Event BeforeMove(oAppt As CScheduleEl,
lApptIndex As Long, lMode As
ViewModeConstants, NewDate As Date,
NewRoom As String, NewTime As Date,
NewMode As ViewModeConstants, DoPrompt
As Boolean, Cancel As Boolean)
BeforeMove 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 its new location.
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 move 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 "lApptIndex" 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.
BeforeRowResize
Event BeforeRowResize(Cancel As
Boolean)
This event is raised before a user resizes the rows. If
the AllowRowResizing property is set, then the user
can use the mouse to grab the edge of a row and
resize it. All rows are the same width, so resizing
one applies to all rows. The "Cancel" parameter
allows you cancel this operation before it gets
started.
|