示例#1
0
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));
    }
}
示例#2
0
文件: MainFrame.cpp 项目: snyh/toy
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());
}
示例#3
0
void
PreferencesDialog::OnPencilColor(wxColourPickerEvent & evt)
{
    m_frame->m_gridCtrl->SetPencilColor(evt.GetColour());
    evt.Skip();
}
示例#4
0
void
PreferencesDialog::OnSelectedWordColor(wxColourPickerEvent & evt)
{
    m_frame->m_gridCtrl->SetFocusedWordColor(evt.GetColour());
    evt.Skip();
}
示例#5
0
void WeatherDlg::onColorPickerWhite1( wxColourPickerEvent& event ) {
  m_RGBWPanel->setWhite1Color(event.GetColour().Red(), event.GetColour().Green(), event.GetColour().Blue());
}
示例#6
0
void WeatherDlg::onColorPickerSaturation( wxColourPickerEvent& event ) {
  m_RGBWPanel->setSaturationColor(event.GetColour().Red(), event.GetColour().Green(), event.GetColour().Blue());
}
示例#7
0
void WeatherDlg::onColorPickerBrightness( wxColourPickerEvent& event ) {
  m_RGBWPanel->setBrightnessColor(event.GetColour().Red(), event.GetColour().Green(), event.GetColour().Blue());
}
示例#8
0
void MainFrm::OnHowerColor(wxColourPickerEvent& event)
{
	m_pShapeCanvas->SetHoverColour(event.GetColour());
}
示例#9
0
void SettingsDlg::OnFGColour(wxColourPickerEvent& event)
{
    m_fg_colour = event.GetColour();
}
示例#10
0
void MainFrame::OnColourChanged(wxColourPickerEvent& e){
    wxColour colour = e.GetColour();
    m_colour->SetBackgroundColour(colour);
    m_colour->Refresh();
}