Beispiel #1
0
void
PreferencesDialog::OnPromptTextColor(wxColourPickerEvent & evt)
{
    m_frame->m_cluePrompt->SetForegroundColour(evt.GetColour());
    m_frame->m_cluePrompt->Refresh();
    evt.Skip();
}
Beispiel #2
0
void SyntaxHighlightDlg::OnSelTextFgChanged(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.SetFgColour(event.GetColour().GetAsString(wxC2S_HTML_SYNTAX));
    }
}
/*---------------------------------------------------------------------------*/
void wxPrefDlg::OnItembackColourChanged(wxColourPickerEvent& event)
{
   int index = m_EdItems->GetSelection();
   if (index != wxNOT_FOUND)
   {
      m_Val_ItemBG[index] = m_ItemBG->GetColour().GetAsString(wxC2S_HTML_SYNTAX);
      ChangeStyle(index);
   }
   event.Skip();
}
Beispiel #4
0
void
PreferencesDialog::OnPencilColor(wxColourPickerEvent & evt)
{
    m_frame->m_gridCtrl->SetPencilColor(evt.GetColour());
    evt.Skip();
}
Beispiel #5
0
void
PreferencesDialog::OnSelectedWordColor(wxColourPickerEvent & evt)
{
    m_frame->m_gridCtrl->SetFocusedWordColor(evt.GetColour());
    evt.Skip();
}
Beispiel #6
0
void SyntaxHighlightDlg::OnOutputViewColourChanged(wxColourPickerEvent& event)
{
    CHECK_PTR_RET(m_lexer);
    event.Skip();
    m_isModified = true;
}
/*---------------------------------------------------------------------------*/
void wxPrefDlg::OnLinebackColourChanged(wxColourPickerEvent& event)
{
   m_Val_LineBG = m_LineNumberBG->GetColour().GetAsString(wxC2S_HTML_SYNTAX);
   event.Skip();
}
/*---------------------------------------------------------------------------*/
void wxPrefDlg::OnOddlinecolourColourChanged(wxColourPickerEvent& event)
{
   m_Val_OddColour = m_OddLineColour->GetColour().GetAsString(wxC2S_HTML_SYNTAX);
   event.Skip();
}