Skip to content

Configuration series selection wxChoice needs to set series background color for each series in list of choices #75

@DRNadler

Description

@DRNadler

To make it easy to find the relevant series in the configuration dialog, series tab: the series name needs display with the series background color in the series selection wxChoice (and reset this background color when the series color is changed). This can be done with a custom wxChoice as shown here: colored wxChoice

Lionel: You used a tool to generate the configuration dialog. Is this tool capable of specifying a custom class to replace wxChoice (wxFormBuilder does this easily)? I don't want to break your form creation tool...

PS: To be clear, the output of your tool should change wxChoice to the derived class with color support in this line:
388: ChoiceSeries = new wxChoice(Panel4, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0, 0, 0, wxDefaultValidator);

PPS: A customized wxOwnerDrawnComboBox would be better, see includes wxOwnerDrawnComboBox version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions