void wxStatusBarGeneric::OnSysColourChanged(wxSysColourChangedEvent& event) { InitColours(); // Propagate the event to the non-top-level children wxWindow::OnSysColourChanged(event); }
bool wxStatusBarGeneric::Create(wxWindow *parent, wxWindowID id, long style, const wxString& name) { if ( !wxWindow::Create(parent, id, wxDefaultPosition, wxDefaultSize, style | wxTAB_TRAVERSAL, name) ) return false; // The status bar should have a themed background SetThemeEnabled( true ); InitColours(); #ifdef __WXPM__ SetFont(*wxSMALL_FONT); #endif // Set the height according to the font and the border size wxClientDC dc(this); dc.SetFont(GetFont()); wxCoord y; dc.GetTextExtent(_T("X"), NULL, &y ); int height = (int)( (11*y)/10 + 2*GetBorderY()); SetSize(wxDefaultCoord, wxDefaultCoord, wxDefaultCoord, height); SetFieldsCount(1); return true; }
LabelTrack::LabelTrack(DirManager * projDirManager): VTrack(projDirManager) { InitColours(); SetName(_("Label Track")); SetExpandedHeight(30); // Label tracks are narrow mSelIndex = -1; }
LabelTrack::LabelTrack(DirManager * projDirManager): Track(projDirManager) { InitColours(); SetName(_("Label Track")); mHeight = 30; // Label tracks are narrow mSelIndex = -1; }
bool wxStatusBarMac::Create(wxWindow *parent, wxWindowID id, long style , const wxString& name) { SetBackgroundStyle( wxBG_STYLE_TRANSPARENT ); if ( !wxStatusBarGeneric::Create( parent, id, style, name ) ) return false; // normal system font is too tall for fitting into the standard height SetWindowVariant( wxWINDOW_VARIANT_SMALL ); InitColours(); return true; }
LabelTrack::LabelTrack(const LabelTrack &orig) : VTrack(orig) { InitColours(); int len = orig.mLabels.Count(); for (int i = 0; i < len; i++) { LabelStruct *l = new LabelStruct(); l->t = orig.mLabels[i]->t; l->title = orig.mLabels[i]->title; mLabels.Add(l); } mSelIndex = orig.mSelIndex; }
bool wxStatusBarGeneric::Create(wxWindow *parent, wxWindowID id, long style, const wxString& name) { style |= wxTAB_TRAVERSAL | wxFULL_REPAINT_ON_RESIZE; if ( !wxWindow::Create(parent, id, wxDefaultPosition, wxDefaultSize, style, name) ) return false; // The status bar should have a themed background SetThemeEnabled( true ); InitColours(); #ifdef __WXPM__ SetFont(*wxSMALL_FONT); #endif int height = (int)((11*GetCharHeight())/10 + 2*GetBorderY()); SetSize(wxDefaultCoord, wxDefaultCoord, wxDefaultCoord, height); SetFieldsCount(1); #if defined( __WXGTK20__ ) #if GTK_CHECK_VERSION(2,12,0) if (HasFlag(wxSTB_SHOW_TIPS) #ifndef __WXGTK3__ && gtk_check_version(2,12,0) == NULL #endif ) { g_object_set(m_widget, "has-tooltip", TRUE, NULL); g_signal_connect(m_widget, "query-tooltip", G_CALLBACK(statusbar_query_tooltip), this); } #endif #endif return true; }
void wxSashWindow::Init() { m_draggingEdge = wxSASH_NONE; m_dragMode = wxSASH_DRAG_NONE; m_oldX = 0; m_oldY = 0; m_firstX = 0; m_firstY = 0; m_borderSize = 3; m_extraBorderSize = 0; m_minimumPaneSizeX = 0; m_minimumPaneSizeY = 0; m_maximumPaneSizeX = 10000; m_maximumPaneSizeY = 10000; m_sashCursorWE = new wxCursor(wxCURSOR_SIZEWE); m_sashCursorNS = new wxCursor(wxCURSOR_SIZENS); m_mouseCaptured = false; m_currentCursor = NULL; // Eventually, we'll respond to colour change messages InitColours(); }