contents up previous next

wxtipwindow

shows simple text in a popup tip window on creation. this is used by wxsimplehelpprovider to show popup help. the window automatically destroys itself when the user clicks on it or it loses the focus.

you may also use this class to emulate the tooltips when you need finer control over them than what the standard tooltips provide.

derived from

wxpopuptransientwindow
wxpopupwindow
wxwindow
wxevthandler
wxobject

include files

<wx/tipwin.h>

members

wxtipwindow::wxtipwindow
wxtipwindow::settipwindowptr
wxtipwindow::setboundingrect


wxtipwindow::wxtipwindow

wxtipwindow(wxwindow* parent, const wxstring& text, wxcoord maxlength = 100, wxtipwindow** windowptr, wxrect *rectbounds = null)

constructor. the tip is shown immediately after the window is constructed.

parameters

parent

text

maxlength

windowptr

rectbounds


wxtipwindow::settipwindowptr

void settipwindowptr(wxtipwindow** windowptr)

when the tip window closes itself (which may happen at any moment and unexpectedly to the caller) it may null out the pointer pointed to by it windowptr. this is helpful to avoid dereferencing the tip window which had been already closed and deleted.


wxtipwindow::setboundingrect

void setboundingrect(const wxrect& rectbound)

by default, the tip window disappears when the user clicks the mouse or presses a keyboard key or if it loses focus in any other way - for example because the user switched to another application window.

additionally, if a non-empty rectbound is provided, the tip window will also automatically close if the mouse leaves this area. this is useful to dismiss the tip mouse when the mouse leaves the object it is associated with.

parameters

rectbound