MCPcopy Create free account
hub / github.com/ALTaleX531/OpenGlass / ApplyChoiceColorEx

Method ApplyChoiceColorEx

OpenGlassGUI/MainFrame.State.cpp:32–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 void MainFrame::ApplyChoiceColorEx(wxChoice* ch, wxColourPickerCtrl* cp, DWORD value, DWORD themeSentinel, DWORD autoSentinel, DWORD systemSentinel) const
33 {
34 if (value == systemSentinel)
35 {
36 ch->SetSelection(3); // System determined
37 cp->Enable(false);
38 cp->SetColour(*wxLIGHT_GREY);
39 }
40 else
41 {
42 ApplyChoiceColor(ch, cp, value, themeSentinel, autoSentinel);
43 }
44 }
45
46 void MainFrame::ApplyChoiceSlider(wxChoice* ch, wxSlider* sl, DWORD value, DWORD themeSentinel, DWORD autoSentinel, int disabledValue) const
47 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected