wxDataViewChoiceRenderer set/get methods should use the current selection index not a string
|Reported by:||HansR||Owned by:|
At present the wxDataViewChoiceRenderer's set and get methods accept and return strings, respectively. This means that any data model that uses this class has to read the strings and work backward to get the choice that the user entered. It is the choice, and not the string describing the choice, that the application needs, and the current method makes getting this information complicated.
It would be much better if the current selection index were used instead. The string could still be used internally by the renderer, but the data model needs the selection index.
Change History (10)
comment:2 Changed 4 years ago by vadz
- Keywords wxDataViewCtrl API added
- Milestone changed from 2.9.2 to 3.0
- Status changed from new to confirmed
comment:6 Changed 4 years ago by HansR
- Resolution fixed deleted
- Status changed from closed to reopened