Inheritance diagram for wxSliderComboPopup:
Public Member Functions | |
virtual void | Init () |
virtual bool | Create (wxWindow *parent) |
virtual void | OnShow () |
virtual wxSize | GetAdjustedSize (int minWidth, int WXUNUSED(prefHeight), int maxHeight) |
virtual wxWindow * | GetControl () |
virtual void | SetStringValue (const wxString &s) |
virtual wxString | GetStringValue () const |
Protected Member Functions | |
void | OnSliderScrollEvent (wxScrollEvent &event) |
Definition at line 38 of file slidercombo.cpp.
|
Implements wxComboPopup. Definition at line 46 of file slidercombo.cpp. 00047 { 00048 long style = m_combo->GetWindowStyleFlag(); 00049 style &= wxSL_HORIZONTAL | wxSL_VERTICAL | wxSL_LABELS | wxSL_INVERSE; 00050 00051 // Add raised border for other ports (gtk2 draws its native one with the expose callback) 00052 #ifndef __WXGTK20__ 00053 style |= wxRAISED_BORDER; 00054 #endif 00055 00056 if (wxSlider::Create(parent, wxID_ANY, 00057 50, 0, 100, 00058 wxDefaultPosition, wxDefaultSize, 00059 style)) 00060 { 00061 #ifdef __WXGTK20__ 00062 g_signal_connect (m_widget, "expose_event", 00063 G_CALLBACK (xara_slidercombo_expose_callback), NULL); 00064 #endif 00065 return true; 00066 } 00067 return false; 00068 }
|
|
Definition at line 74 of file slidercombo.cpp. 00077 { 00078 wxSize sz = GetBestSize(); 00079 return wxSize(wxMax(120, minWidth), wxMin(sz.GetHeight(), maxHeight)); 00080 }
|
|
Implements wxComboPopup. Definition at line 82 of file slidercombo.cpp.
|
|
Implements wxComboPopup. Definition at line 88 of file slidercombo.cpp. 00089 { 00090 // FIXME: Does this get called in wxGTK? On wxMSW this gets called on popup close 00091 return m_combo->GetValue(); 00092 }
|
|
Reimplemented from wxComboPopup. Definition at line 42 of file slidercombo.cpp.
|
|
Definition at line 70 of file slidercombo.cpp.
|
|
Definition at line 95 of file slidercombo.cpp. 00096 { 00097 wxScrollEvent ev( event.GetEventType(), 00098 m_combo->GetId(), 00099 event.GetPosition(), 00100 event.GetOrientation() ); 00101 ev.SetEventObject( m_combo ); 00102 m_combo->GetEventHandler()->ProcessEvent( ev ); 00103 if (event.GetEventType() == wxEVT_SCROLL_THUMBRELEASE) 00104 m_combo->HidePopup(); 00105 }
|
|
Reimplemented from wxComboPopup. Definition at line 84 of file slidercombo.cpp.
|