1. wxGetOsDescription() function added

2. wxApp::GetComCtlVersion() slightly updated
3. wxToolBar::AddControl() should work on all systems, DeleteTool() added
4. wxListCtrl custom draw changes (custom colours/fonts)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-12-04 22:34:54 +00:00
parent 1d62a8b425
commit bdc72a2268
18 changed files with 1008 additions and 624 deletions

View File

@@ -279,7 +279,7 @@ void MyFrame::OnReportView(wxCommandEvent& WXUNUSED(event))
wxChar buf[50];
wxSprintf(buf, _T("This is item %d"), i);
long tmp = m_listCtrl->InsertItem(i, buf, 0);
m_listCtrl->SetItemData(tmp, i);
//m_listCtrl->SetItemData(tmp, i);
wxSprintf(buf, _T("Col 1, item %d"), i);
tmp = m_listCtrl->SetItem(i, 1, buf);
@@ -287,21 +287,19 @@ void MyFrame::OnReportView(wxCommandEvent& WXUNUSED(event))
wxSprintf(buf, _T("Item %d in column 2"), i);
tmp = m_listCtrl->SetItem(i, 2, buf);
}
#ifndef __WXMSW__
// we leave all mask fields to 0 and only change the colour
wxListItem first;
first.m_itemId = 0;
first.m_colour = wxBLUE;
m_listCtrl->SetItem( first );
first.m_itemId = 2;
first.m_colour = wxLIGHT_GREY;
m_listCtrl->SetItem( first );
first.m_itemId = 3;
first.m_colour = wxLIGHT_GREY;
m_listCtrl->SetItem( first );
#endif
wxListItem item;
item.m_itemId = 0;
item.SetTextColour(*wxBLUE);
m_listCtrl->SetItem( item );
item.m_itemId = 2;
item.SetTextColour(*wxLIGHT_GREY);
m_listCtrl->SetItem( item );
item.m_itemId = 3;
item.SetTextColour(*wxLIGHT_GREY);
m_listCtrl->SetItem( item );
m_listCtrl->SetColumnWidth( 0, wxLIST_AUTOSIZE );
m_listCtrl->SetColumnWidth( 1, wxLIST_AUTOSIZE );