I have just modified the GUI file so it will stretch if you widen the window.
I using the following code to set the column headers
i would like the Task Name column to stretch to fill the gap as the window widens.
is there a way to do this?
I could get the listctrl width, subtract the other column widths and redefine MainTask width, assuming the ListCtrl itself has a width value that i can get, but it seems a bit "hacky" to me.
Cheers
Glenn
I using the following code to set the column headers
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, ("Task Name"), wxLIST_FORMAT_LEFT,200) ListControl.InsertColumn(3, ("Due Date"), wxLIST_FORMAT_LEFT, cListCtrlDateWidth) ListControl.InsertColumn(4, ("Completed"), wxLIST_FORMAT_LEFT, cListCtrlDateWidth) ListControl.InsertColumn(5, ("Cancelled"), wxLIST_FORMAT_CENTRE, cListCtrlDateWidth) Case m_listCtrlSubTask Default DebugLog "You have passed a ListCtrl that doesn't exist" End Select End Method
i would like the Task Name column to stretch to fill the gap as the window widens.
is there a way to do this?
I could get the listctrl width, subtract the other column widths and redefine MainTask width, assuming the ListCtrl itself has a width value that i can get, but it seems a bit "hacky" to me.
Cheers
Glenn