Version: 2.9.4
Public Member Functions
wxTipWindow Class Reference

#include </home/zeitlin/src/wx/github/interface/wx/tipwin.h>

Inheritance diagram for wxTipWindow:

Detailed Description

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.

Library:  wxCore
Category:  Managed Windows

Public Member Functions

 wxTipWindow (wxWindow *parent, const wxString &text, wxCoord maxLength=100, wxTipWindow **windowPtr=NULL, wxRect *rectBounds=NULL)
 Constructor.
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.
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 windowPtr.

List of all members.


Constructor & Destructor Documentation

wxTipWindow::wxTipWindow ( wxWindow parent,
const wxString text,
wxCoord  maxLength = 100,
wxTipWindow **  windowPtr = NULL,
wxRect rectBounds = NULL 
)

Constructor.

The tip is shown immediately after the window is constructed.

Parameters:
parentThe parent window, must be non-NULL
textThe text to show, may contain the new line characters
maxLengthThe length of each line, in pixels. Set to a very large value to avoid wrapping lines
windowPtrSimply passed to SetTipWindowPtr() below, please see its documentation for the description of this parameter
rectBoundsIf non-NULL, passed to SetBoundingRect() below, please see its documentation for the description of this parameter

Member Function Documentation

void wxTipWindow::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:
rectBoundThe bounding rectangle for the mouse in the screen coordinates
void wxTipWindow::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 windowPtr.

This is helpful to avoid dereferencing the tip window which had been already closed and deleted.

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines