Examples: QueryEntryResize event

This QueryEntryResize event continues the resize operation if the user approves of the start and end times for the calendar view entry.

(Globals) (Declarations)
%INCLUDE "lsconst.lss"
Sub Queryentryresize(Source As Notesuiview, _
Continue As Variant)
  If Messagebox (Source.CalendarDateTime & Chr(13) & _
  Source.CalendarDateTimeEnd, _
  MB_YESNO + MB_ICONQUESTION, _
  "Are these start and end times OK?") = IDYES Then
    Continue = True
  Else
    Continue = False
  End If
End Sub