Attempted to improve tip window behaviour, but kill focus still not working in wxGTK.
wxTipWindow now has wxTipWindowView child. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -25,24 +25,27 @@
|
||||
|
||||
class WXDLLEXPORT wxTipWindow : public wxFrame
|
||||
{
|
||||
friend class wxTipWindowView;
|
||||
public:
|
||||
// Supply windowPtr for it to null the given address
|
||||
// when the window has closed.
|
||||
wxTipWindow(wxWindow *parent,
|
||||
const wxString& text,
|
||||
wxCoord maxLength = 100);
|
||||
wxCoord maxLength = 100, wxTipWindow** windowPtr = NULL);
|
||||
~wxTipWindow();
|
||||
|
||||
void SetTipWindowPtr(wxTipWindow** windowPtr) { m_windowPtr = windowPtr; }
|
||||
|
||||
protected:
|
||||
// event handlers
|
||||
void OnPaint(wxPaintEvent& event);
|
||||
void OnMouseClick(wxMouseEvent& event);
|
||||
void OnActivate(wxActivateEvent& event);
|
||||
void OnKillFocus(wxFocusEvent& event);
|
||||
|
||||
// calculate the client rect we need to display the text
|
||||
void Adjust(const wxString& text, wxCoord maxLength);
|
||||
|
||||
private:
|
||||
wxArrayString m_textLines;
|
||||
wxCoord m_heightLine;
|
||||
wxTipWindow** m_windowPtr;
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
};
|
||||
|
Reference in New Issue
Block a user