logo       
Google Custom Search
    AddThis Social Bookmark Button

left justified text on listctrls: msg#00016

Subject: left justified text on listctrls
Hi list.

I have a problem that has been driving me up the wall for days now.

Im trying to create a listctrl and populate the list from data generated
(simple enough) but when it gets to the listctrl it is _always_ right
justified.

Ive looked at the demo, and my code is _exactly_ the same as the
listctrl demo, but when I run it within my code all data within all the
columns within the list is right justified, when I run the demo, its
left justified.

the listctrl is created with 

$self->{listctrl} = Wx::ListCtrl->new($self, -1, wxDefaultPosition,
wxDefaultSize, wxLC_REPORT);

then added to a sizer

and then the items are inserted like this.

$index = $this->{listctrl}->GetItemCount;
$this->{listctrl}->InsertImageStringItem($index, "value",0);
$this->{listctrl}->SetItem($index,1, $var1);
$this->{listctrl}->SetItem($index,2, $var2);
  
any clues as to what I am doing wrong?

Ive tried with InsertStringItem as well, same effect.

thanks

Jonathan





-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>