wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") );
- if (string == label->label)
+ if (string == wxString(label->label,*wxConv_current))
return count;
child = child->next;
wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") );
- return label->label;
+ return wxString(label->label,*wxConv_current);
}
child = child->next;
count++;
wxFAIL_MSG( _T("wxChoice: invalid index in GetString()") );
- return "";
+ return _T("");
}
wxString wxChoice::GetStringSelection() const
wxASSERT_MSG( label != NULL , _T("wxChoice: invalid label") );
- return label->label;
+ return wxString(label->label,*wxConv_current);
}
int wxChoice::Number() const