Align column's header of wxListCtrl

Vadim Zeitlin vadim at wxwindows.org
Sun Mar 4 13:33:59 PST 2007


On Wed, 21 Feb 2007 11:10:07 -0200 Max Velasques <maxvelasques at gmail.com> wrote:

MV> To do this I'm using something like:
MV> 
MV> wxListItem itemCol;
MV> itemCol.m_mask =
MV> wxLIST_MASK_DATA|wxLIST_MASK_STATE|wxLIST_MASK_TEXT|wxLIST_MASK_IMAGE;
MV> itemCol.SetAlign(wxLIST_FORMAT_LEFT);
MV> this->InsertColumn(0, itemCol);
MV> 
MV> But this doesn't work, because I still have a space between the string
MV> and the border(look the yellow mark on the picture attached).
MV> 
MV> Anybody knows, how do I fix this?

 I think this space is reserved for the column image. AFAIK you can't get
rid of it if you use images at all.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list