bug in wxListCtrl for wxmac 2,9

Riccardo Cohen rcohen at articque.com
Wed Oct 3 07:09:54 PDT 2007


Hi
I found a bug in wxListctrl mac 2,9:

wxListCtrl* list = new wxListCtrl( itemFrame1, uid_list, 
wxDefaultPosition, wxSize(100, 200), wxLC_REPORT );

list->InsertColumn(0,newcol);
list->InsertItem(list->GetItemCount(),"0");
list->InsertItem(list->GetItemCount(),"1");
list->InsertItem(list->GetItemCount(),"2");
list->InsertItem(list->GetItemCount(),"3");
list->InsertItem(list->GetItemCount(),"4");
list->InsertItem(1,"NEW");

The last insert will put the item "1" at the end, and will empty its 
label... (this works all right on windows & linux)

I tried to debug into wx source code until 
wxMacDataItemBrowserControl::MacInsert , but could not find the error.

Thanks for any help


-- 
Très cordialement,

Riccardo Cohen
-------------------------------------------
Articque
http://www.articque.com
149 av Général de Gaulle
37230 Fondettes - France
tel : 02-47-49-90-49
fax : 02-47-49-91-49




More information about the wx-users mailing list