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

Gravitybox Schedule Primer
Page 216 
1998-2004 Gravitybox Software LLC
BeforeDelete
Event BeforeDelete(Index As Long,
Prompt As String, Cancel As Boolean)
BeforeDelete is raised before the removal of a
scheduled item using the DeleteItem method. The
DeleteItem method can be called by the user or in
code. In addition it is called by pressing the <Delete>
key when an appointment is highlighted. The Prompt
parameter is the text to be displayed as a delete
prompt to the user. If you do not wish for a prompt
set this parameter to an empty string. The Boolean
Cancel parameter gives you a chance to cancel the
operation from code. If you set Cancel to true, the
item will not be removed and the AfterDelete event
will not be raised. AllowDelete dictates this
functionality.
BeforeDrag
Event BeforeDrag(Index As Long,
InitialDragOperation As
DragOperationConstants, Cancel As
Boolean)
This event is raised before a copy or move. When
the user starts to drag an appointment, this event is
raised first and gives you a chance to cancel the
drag by setting Cancel = true. The "Index" parameter
is the index in the ScheduleItems collection of the
appointment being dragged. The
"InitialDragOperation" parameter is the drag
operation that is taking place.
BeforeDragFromFile
Event BeforeDragFromFile(ScheduleItem
As CScheduleEl, Cancel As Boolean)
This event is raised after the user drops a schedule
file onto the schedule window. Dragging an
appointment and dropping it outside of the schedule
create the file. This event is raised before the
appointment is added by dragging that saved file
back onto the schedule window.
http://www.purepage.com