void SyntaxHighlightDlg::OnSelTextChanged(wxColourPickerEvent& event) { CHECK_PTR_RET(m_lexer); event.Skip(); StyleProperty& selProp = m_lexer->GetProperty(SEL_TEXT_ATTR_ID); if(!selProp.IsNull()) { m_isModified = true; selProp.SetBgColour(event.GetColour().GetAsString(wxC2S_HTML_SYNTAX)); } }
void MainFrame::OnColourChanged( wxColourPickerEvent& event ) { wxColour color = event.GetColour(); Control::getInstance()->setTargetColor(color.Red(), color.Green(), color.Blue()); // process the image Control::getInstance()->process(); //show the result image; this->processed_image->SetBitmap(Control::getInstance()->getResult()); }
void PreferencesDialog::OnPencilColor(wxColourPickerEvent & evt) { m_frame->m_gridCtrl->SetPencilColor(evt.GetColour()); evt.Skip(); }
void PreferencesDialog::OnSelectedWordColor(wxColourPickerEvent & evt) { m_frame->m_gridCtrl->SetFocusedWordColor(evt.GetColour()); evt.Skip(); }
void WeatherDlg::onColorPickerWhite1( wxColourPickerEvent& event ) { m_RGBWPanel->setWhite1Color(event.GetColour().Red(), event.GetColour().Green(), event.GetColour().Blue()); }
void WeatherDlg::onColorPickerSaturation( wxColourPickerEvent& event ) { m_RGBWPanel->setSaturationColor(event.GetColour().Red(), event.GetColour().Green(), event.GetColour().Blue()); }
void WeatherDlg::onColorPickerBrightness( wxColourPickerEvent& event ) { m_RGBWPanel->setBrightnessColor(event.GetColour().Red(), event.GetColour().Green(), event.GetColour().Blue()); }
void MainFrm::OnHowerColor(wxColourPickerEvent& event) { m_pShapeCanvas->SetHoverColour(event.GetColour()); }
void SettingsDlg::OnFGColour(wxColourPickerEvent& event) { m_fg_colour = event.GetColour(); }
void MainFrame::OnColourChanged(wxColourPickerEvent& e){ wxColour colour = e.GetColour(); m_colour->SetBackgroundColour(colour); m_colour->Refresh(); }