-
- int imgIndex = item->GetImage();
- if ( (item->GetMask() & wxLIST_MASK_IMAGE) ){
- wxListCtrl* list = wxDynamicCast( owner->GetPeer() , wxListCtrl );
- wxImageList* imageList = list->GetImageList(wxIMAGE_LIST_SMALL);
- if (imageList && imageList->GetImageCount() > 0){
- wxBitmap bmp = imageList->GetBitmap(imgIndex);
- IconRef icon = bmp.GetBitmapData()->GetIconRef();
- ::SetDataBrowserItemDataIcon(itemData, icon);
+ break ;
+ default :
+ if ( property >= kMinColumnId ){
+ short listColumn = property - kMinColumnId;
+
+ if (HasColumnInfo(listColumn)){
+ wxListItem* item = GetColumnInfo(listColumn);
+ wxMacCFStringHolder cfStr;
+
+ if (item->GetText()){
+ cfStr.Assign( item->GetText(), wxLocale::GetSystemEncoding() );
+ err = ::SetDataBrowserItemDataText( itemData, cfStr );
+ err = noErr;
+ }
+
+ int imgIndex = item->GetImage();
+ if ( (item->GetMask() & wxLIST_MASK_IMAGE) ){
+ wxImageList* imageList = list->GetImageList(wxIMAGE_LIST_SMALL);
+ if (imageList && imageList->GetImageCount() > 0){
+ wxBitmap bmp = imageList->GetBitmap(imgIndex);
+ IconRef icon = bmp.GetBitmapData()->GetIconRef();
+ ::SetDataBrowserItemDataIcon(itemData, icon);
+ }
+ }
+