![]() ![]() ![]() ![]() ![]() Gravitybox Schedule Primer
Page 156
1998-2004 Gravitybox Software LLC
End Select
Unload Me
End Sub
On the main contact form the Contacts collection must be saved when the user unloads
the form. This happens by clicking on another function like notes, tasks, or calendar; or
by closing the application all together. The QueryUnload event is used to save the
contact collection and deallocate the object.
Private Sub Form_QueryUnload(Cancel As Integer, _
UnloadMode As Integer)
Call oContacts.Save(ThisUser)
Set oContacts = Nothing
End Sub
Tasks
The next operation uses a control from the GbSchedule module. The TaskList control is
used to display any number of columns and the information in them. The tasks in this
program have been setup to display none or more of the following items: date, start
time, subject, notes, and priority. These are properties associated with appointment;
however these tasks are independent from the calendar screen.
Figure 16.4
A TaskList has multiple sections. First there is the add portion at the top of the control.
This may be selectively toggled on/off with the AllowAdd property. In Figure 16.4, the
property value is true. The user may click inside this area to start editing a new
appointment. When the <Enter> key is pressed, the task is added to the list. If the
<Esc> key is pressed in this section, the new add is canceled and all information typed
into this section is removed.
|