Method SetColumnHeadings(ListControl:wxListCtrl)
Select ListControl
Case m_listCtrlDue
Case m_listCtrlMainTask
ListControl.InsertColumn(0, ("TM"), wxLIST_FORMAT_LEFT, 30) ' Team Member Initials
ListControl.InsertColumn(1, ("Created"), wxLIST_FORMAT_LEFT, cListCtrlDateWidth)
ListControl.InsertColumn(2, ("Due Date"), wxLIST_FORMAT_LEFT, cListCtrlDateWidth)
ListControl.InsertColumn(3, ("Completed"), wxLIST_FORMAT_LEFT, cListCtrlDateWidth)
ListControl.InsertColumn(4, ("Cancelled"), wxLIST_FORMAT_CENTRE, cListCtrlDateWidth)
' ListControl.InsertColumn(5, ("Task Name"), wxLIST_FORMAT_LEFT,200)
ListControl.InsertColumn(5, ("Task Name"), wxLIST_FORMAT_LEFT,wxLIST_AUTOSIZE)
DebugStop
Local o:Object = ListControl.GetRectRect()
Local i:Int = o.width
'ListControl.SetColumnWidth(5, wxLIST_AUTOSIZE )
Case m_listCtrlSubTask
Default
DebugLog "You have passed a ListCtrl that doesn't exist"
End Select
End Method
Local i:Int = o.width is not liked.
How do i get the field from an object without knowing the field names?
Select ListControl
Case m_listCtrlDue
Case m_listCtrlMainTask
ListControl.InsertColumn(0, ("TM"), wxLIST_FORMAT_LEFT, 30) ' Team Member Initials
ListControl.InsertColumn(1, ("Created"), wxLIST_FORMAT_LEFT, cListCtrlDateWidth)
ListControl.InsertColumn(2, ("Due Date"), wxLIST_FORMAT_LEFT, cListCtrlDateWidth)
ListControl.InsertColumn(3, ("Completed"), wxLIST_FORMAT_LEFT, cListCtrlDateWidth)
ListControl.InsertColumn(4, ("Cancelled"), wxLIST_FORMAT_CENTRE, cListCtrlDateWidth)
' ListControl.InsertColumn(5, ("Task Name"), wxLIST_FORMAT_LEFT,200)
ListControl.InsertColumn(5, ("Task Name"), wxLIST_FORMAT_LEFT,wxLIST_AUTOSIZE)
DebugStop
Local o:Object = ListControl.GetRectRect()
Local i:Int = o.width
'ListControl.SetColumnWidth(5, wxLIST_AUTOSIZE )
Case m_listCtrlSubTask
Default
DebugLog "You have passed a ListCtrl that doesn't exist"
End Select
End Method
Local i:Int = o.width is not liked.
How do i get the field from an object without knowing the field names?