A tool window is a special kind of frame that paints its own title, and can be used to implement small floating windows.
Derived from
wxFrame (REF NOT FOUND)
Include files
<wx/fl/toolwnd.h>
Data structures
Members
wxToolWindow::wxToolWindow
wxToolWindow::~wxToolWindow
wxToolWindow::AddMiniButton
wxToolWindow::AdjustRectPos
wxToolWindow::CalcResizedRect
wxToolWindow::DrawHintRect
wxToolWindow::GetClient
wxToolWindow::GetMinimalWndDim
wxToolWindow::GetPreferredSize
wxToolWindow::GetScrMousePos
wxToolWindow::GetScrWindowRect
wxToolWindow::HandleTitleClick
wxToolWindow::HitTestWindow
wxToolWindow::LayoutMiniButtons
wxToolWindow::OnEraseBackground
wxToolWindow::OnLeftDown
wxToolWindow::OnLeftUp
wxToolWindow::OnMiniButtonClicked
wxToolWindow::OnMotion
wxToolWindow::OnPaint
wxToolWindow::OnSize
wxToolWindow::SetClient
wxToolWindow::SetHintCursor
wxToolWindow::SetTitleFont
wxToolWindow()
Default constructor.
~wxToolWindow()
Destructor.
void AddMiniButton(cbMiniButton* pBtn)
Adds a button. Buttons are added in right-to-left order.
void AdjustRectPos(const wxRect& original, const wxSize& newDim, wxRect& newRect)
Helper function.
void CalcResizedRect(wxRect& rect, wxPoint& delta, const wxSize& minDim)
Calculate resized rectangle.
void DrawHintRect(const wxRect& r)
Draws the hint rectangle.
wxWindow* GetClient()
Returns the client window.
wxSize GetMinimalWndDim()
Helper function.
wxSize GetPreferredSize(const wxSize& given)
Returns the preferred size for the window.
void GetScrMousePos(wxMouseEvent& event, wxPoint& pos)
Gets the mouse position in screen coordinates.
void GetScrWindowRect(wxRect& r)
Maps client coordinates to screen coordinates.
bool HandleTitleClick(wxMouseEvent& event)
Handles clicking on the title. By default, does nothing.
int HitTestWindow(wxMouseEvent& event)
Tests if the mouse position is in this window.
void LayoutMiniButtons()
Lays out the buttons.
void OnEraseBackground(wxEraseEvent& event)
Responds to an erase background event.
void OnLeftDown(wxMouseEvent& event)
Responds to a mouse left down event.
void OnLeftUp(wxMouseEvent& event)
Responds to a mouse left up event.
void OnMiniButtonClicked(int btnIdx)
Called when a mini button is clicked. By default, does nothing.
void OnMotion(wxMouseEvent& event)
Responds to a mouse move event.
void OnPaint(wxPaintEvent& event)
Responds to a paint event.
void OnSize(wxSizeEvent& event)
Responds to a size event.
void SetClient(wxWindow* pWnd)
Sets the client for this tool window.
void SetHintCursor(int type)
Sets the hint cursor.
void SetTitleFont(wxFont& font)
Sets the title font.