wxColourProperty with choice box--hitting Cancel button on color dialog causes wrong color to be used
|Reported by:||snowleopard2||Owned by:||vadz|
|Keywords:||wxColourProperty wxPropertyGrid wxSystemColourProperty||Cc:|
In the property grid sample, set any wxColourProperty to use as "wxPGEditor_Choice" or "wxPGEditor_ChoiceAndButton" as its editor, like so:
pg->SetPropertyEditor( wxT("ColourProperty "), wxPGEditor_Choice );
Run the sample and find the property, expand its combobox, and select "Custom" at the bottom and select something like purple from the color dialog. Now, select Custom again from the combobox, but hit the Cancel button on the Color dialog.
Instead of keeping the color as it was, it will arbitrarily set it to black.
Note that using wxPGEditor_Combo doesn't have this issue.
Change History (8)
comment:2 Changed 16 months ago by awi
- Keywords wxSystemColourProperty added
- Patch set
- Version changed from 2.9.5 to dev-latest
Changed 16 months ago by awi
comment:3 Changed 15 months ago by vadz
- Priority changed from normal to low
- Status changed from new to confirmed
comment:6 Changed 15 months ago by VZ
- Resolution set to fixed
- Status changed from accepted to closed