wxUiEditor
wxUiEditor copied to clipboard
Can't add bitmaps to wxBitmapComboBox
Description:
wxBitmapComboBox isn't really usable in it's current form, because there isn't any way to add items and associated bitmaps. The prop_contents just displays a normal string -- this should be a custom control that has both a string and a bitmap entry. Either that, or we need to add some kind of child node that has both a string and bitmap.
In terms of the project file, creating a long list of contents each with string and bitmap information is going to make for a very large string to save. That entire string will create a diff in git if even one item gets changed. On the flip side, adding child controls is going to be awkward since then we need to add UI to create those controls.
One thing worth trying is for the custom contents to gather up all the child controls and present them to the user as a normal list of string/bitmap pairs that the user can edit. Once the user clicks OK, all of the child nodes get recreated. That would allow the user to modify the child controls directly, or via the contents property. Discoverability would be the main issue.