void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent &) { wxASSERT(m_text); // don't leave the textctrl empty if (m_text->GetValue().empty()) UpdateTextCtrlFromPicker(); }
void wxPickerBase::OnTextCtrlKillFocus(wxFocusEvent& event) { event.Skip(); // don't leave the textctrl empty if (m_text && m_text->GetValue().empty()) UpdateTextCtrlFromPicker(); }
void wxFontPickerCtrl::OnFontChange(wxFontPickerEvent &ev) { UpdateTextCtrlFromPicker(); // the wxFontPickerWidget sent us a colour-change notification. // forward this event to our parent wxFontPickerEvent event(this, GetId(), ev.GetFont()); GetEventHandler()->ProcessEvent(event); }
void wxFileDirPickerCtrlBase::OnFileDirChange(wxFileDirPickerEvent &ev) { UpdateTextCtrlFromPicker(); // the wxFilePickerWidget sent us a colour-change notification. // forward this event to our parent wxFileDirPickerEvent event(GetEventType(), this, GetId(), ev.GetPath()); GetEventHandler()->ProcessEvent(event); }
bool wxColourPickerCtrl::SetColour(const wxString &text) { wxColour col(text); // smart wxString->wxColour conversion if ( !col.IsOk() ) return false; M_PICKER->SetColour(col); UpdateTextCtrlFromPicker(); return true; }
void wxFontPickerCtrl::SetSelectedFont(const wxFont &f) { M_PICKER->SetSelectedFont(f); UpdateTextCtrlFromPicker(); }
void wxFileDirPickerCtrlBase::SetPath(const wxString &path) { m_pickerIface->SetPath(path); UpdateTextCtrlFromPicker(); }
void wxColourPickerCtrl::SetColour(const wxColour &col) { M_PICKER->SetColour(col); UpdateTextCtrlFromPicker(); }
void wxFontPickerCtrl::SetSelectedFont(const wxFont &f) { GetPickerWidget()->SetSelectedFont(f); UpdateTextCtrlFromPicker(); }