implement tooltips for wxStatusBar panes whose contents were ellipsized; introduce wxST_SHOW_TIPS and wxST_DEFAULT_STYLE styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -30,7 +30,7 @@ public:
|
||||
wxStatusBarGeneric() { Init(); }
|
||||
wxStatusBarGeneric(wxWindow *parent,
|
||||
wxWindowID winid = wxID_ANY,
|
||||
long style = wxST_SIZEGRIP,
|
||||
long style = wxST_DEFAULT_STYLE,
|
||||
const wxString& name = wxStatusBarNameStr)
|
||||
{
|
||||
Init();
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
virtual ~wxStatusBarGeneric();
|
||||
|
||||
bool Create(wxWindow *parent, wxWindowID winid = wxID_ANY,
|
||||
long style = wxST_SIZEGRIP,
|
||||
long style = wxST_DEFAULT_STYLE,
|
||||
const wxString& name = wxStatusBarNameStr);
|
||||
|
||||
// Create status line
|
||||
@@ -64,6 +64,10 @@ public:
|
||||
virtual int GetBorderY() const { return m_borderY; }
|
||||
|
||||
|
||||
// implementation only (not part of wxStatusBar public API):
|
||||
|
||||
int GetFieldFromPoint(const wxPoint& point) const;
|
||||
|
||||
protected: // event handlers
|
||||
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
@@ -104,6 +108,7 @@ protected:
|
||||
|
||||
int m_borderX;
|
||||
int m_borderY;
|
||||
|
||||
wxPen m_mediumShadowPen;
|
||||
wxPen m_hilightPen;
|
||||
|
||||
|
Reference in New Issue
Block a user