Ticket #3901 (new defect)
validator doesn't work with wxBitmapComboBox
| Reported by: | blizzymadden | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | GUI-all | Version: | |
| Keywords: | wxBitmapComboBox wxValidator | Cc: | blizzymadden, p_michalczyk |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
If you hook up a wxGenericValidator (with a wxString in it) to a wxBitmapComboBox, the string never gets updated when you call TransferDataToWindow() and vice versa. Example:
wxBitmapComboBox* languageCombo = new wxBitmapComboBox(this, wxID_ANY, _T(""), wxDefaultPosition, wxSize(100, -1), choiceStrings, wxCB_DROPDOWN|wxCB_READONLY, wxGenericValidator(&m_langName));
No matter what "m_langName" is, the combobox is empty when it appears, and when you call TransferDataToWindow(), m_langName is emptied. If I swap in a regular wxComboBox into this code it works perfectly.
