Navigation bar
  Print document Start Previous page
 25 of 90 
Next page End  

Gravitybox Schedule.NET
1998-2005 Gravitybox Software LLC
Page 23 of 90
configuration object as well. In the configuration the appointment categories are turned
off, the dialog is displayed center-screen, and no navigation is allowed within the dialog.
Dim appointment As Appointment
Dim dialogSettings As New AppointmentDialogSettings
dialogSettings.StartPosition = FormStartPosition.CenterScreen
dialogSettings.AllowCategory = False
dialogSettings.AllowNavigate = False
appointment = Schedule1.AppointmentCollection.Add("", #1/1/2004#, _
                                                  #8:00:00 AM#, 60)
Call Schedule1.Dialogs.ShowPropertyDialog(appointment)
Overriding Dialogs
As stated above some of the dialogs may be displayed through user interaction. Many
times the default behavior is fine; however there are times when you want to override
the default functionality and override certain aspects of the dialogs or cancel the dialog
all together.
There are three dialogs that may be displayed through user interaction: appointment
properties, category list, and provider list dialogs. The latter two are called from the
appointment property dialog. When the user double clicks on an appointments if starts
an edit of the appointment. An edit occurs by displaying an appointment property dialog.
Before the dialog is shown the event “BeforePropertyDialog” is raised. Its mouse event
parameter has a cancel property that when set to true will cancel the edit. The
appointment property dialog is not shown. If you wish to display the dialog but change
the default UI then the “DialogSettings” mouse event property is the actual settings
object used to configure the dialog. All you need do is change any relevant properties
on this object to apply them to the dialog before it is shown.
If either the category or provider button on the appointment property screen is pressed
the appropriate dialog is shown. The event “BeforeCategoryListDialog” is called before
the category dialog is shown and the “BeforeProviderListDialog” event is called before
the provider dialog is shown. Both of these events allow you to cancel and configure the
respective dialog screens.
http://www.purepage.com