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

Gravitybox Schedule Primer
Page 158 
1998-2004 Gravitybox Software LLC
Figure 16.5
Once added, the user may double-click on a task to bring up its property box. It allows
the user complete control over all aspect of the task. In the GbOrganize example,
columns may be hidden. This means that not all information is necessarily visible. The
property box gives the user a way to view all properties at one time.
The property box is not a built-in form. You must build this screen. If you wish to include
it in your application, it must be built. The form has text boxes and such on it, but how is
it loaded? Simple, we define a new property of the form called Task of type CTaskEl.
We then set the property before we show the form. All of the controls on the form are
setup by the property set method.
Option Explicit
Dim m_Task As OrganizeAPI.CTaskEl
Public Property Get Task() As OrganizeAPI.CTaskEl  
  Set Task = m_Task
End Property
Public Property Set Task(ByVal Value As OrganizeAPI.CTaskEl)
  
  Set m_Task = Value
  
  'Setup the screen
  txtSubject.Text = Value.Subject
  If Value.StartDate = 0 Then
    datStartDate.Value = Now
  Else
    datStartDate.Value = Value.StartDate
http://www.purepage.com