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
m_listCtrl->SetColumnWidth( 0, wxLIST_AUTOSIZE );
m_listCtrl->SetColumnWidth( 1, wxLIST_AUTOSIZE );
#include "wx/gifdecod.h"
#include "wx/wfstream.h"
#include "wx/log.h"
+#include "wx/intl.h"
#if !USE_SHARED_LIBRARIES
IMPLEMENT_DYNAMIC_CLASS(wxGIFHandler,wxImageHandler)
#include "wx/wfstream.h"
#include "wx/module.h"
#include "wx/log.h"
-
+#include "wx/intl.h"
//-----------------------------------------------------------------------------
// PCX decoding
if (m_mode == wxLC_REPORT)
{
wxString s;
+ wxColour *colour = (wxColour*) NULL;
wxNode *node = m_items.First();
while (node)
{
m_owner->GetImageSize( item->GetImage(), x, y );
x += item->GetX() + 5;
}
+ if (!colour)
+ colour = item->GetColour();
if (item->HasText())
{
item->GetText( s );
if (hilight)
dc->SetTextForeground( wxSystemSettings::GetSystemColour( wxSYS_COLOUR_HIGHLIGHTTEXT ) );
else
- dc->SetTextForeground( *item->GetColour() );
+ dc->SetTextForeground( *colour );
dc->DrawText( s, x, item->GetY() );
}
dc->DestroyClippingRegion();