Page 1 of 1

wxListCtrl InsertItem problem on MAC

Posted: Mon Apr 12, 2010 10:38 am
by frank_frl
Hi to all,

I have a log window with a wxListCtrl inside. The newest entry should always be the first in the list, so I call

Code: Select all

pList->InsertItem(0,"Some text")
This works as expected on MSW, but on MAC it always replaces the first entry, so that the list is never filled.
Do I miss something? Calling InsertItem should actually do an insert and not a replace.

Frank

Posted: Mon Apr 12, 2010 3:13 pm
by Auria
Hi,

unfortunately, this is a known bug : http://trac.wxwidgets.org/ticket/4492

Posted: Mon Apr 12, 2010 4:30 pm
by frank_frl
Auria wrote:Hi,

unfortunately, this is a known bug : http://trac.wxwidgets.org/ticket/4492
This ticket is opened 2 years ago and not fixed yet :cry:
Guess I have to find an other solution.

Frank

Re: wxListCtrl InsertItem problem on MAC

Posted: Thu Aug 04, 2011 10:39 pm
by spectrum
hi all

this thread has been marked as solved, but seems theris not any solution yet.
i have the same issue, anyone know a workaround ?

regards
angelo