Contents Up Previous Next

cbMiniButton

cbMiniButton is the base class for a small button that can be placed in a wxToolWindow titlebar.

Derived from

wxObject

Include files

<wx/fl/toolwnd.h>

Data structures

Members

cbMiniButton::cbMiniButton
cbMiniButton::Draw
cbMiniButton::Enable
cbMiniButton::HitTest
cbMiniButton::IsPressed
cbMiniButton::OnLeftDown
cbMiniButton::OnLeftUp
cbMiniButton::OnMotion
cbMiniButton::Refresh
cbMiniButton::Reset
cbMiniButton::SetPos
cbMiniButton::WasClicked


cbMiniButton::cbMiniButton

cbMiniButton()

Default constructor.


cbMiniButton::Draw

void Draw(wxDC& dc)

Draws the button. Override this to implement the desired appearance.


cbMiniButton::Enable

void Enable(bool enable)

Enable or disable the button.


cbMiniButton::HitTest

bool HitTest(const wxPoint& pos)

Returns TRUE if the given position was over the button.


cbMiniButton::IsPressed

bool IsPressed()

Returns TRUE if this button is pressed.


cbMiniButton::OnLeftDown

void OnLeftDown(const wxPoint& pos)

Responds to a left down event.


cbMiniButton::OnLeftUp

void OnLeftUp(const wxPoint& pos)

Responds to a left up event.


cbMiniButton::OnMotion

void OnMotion(const wxPoint& pos)

Responds to a mouse move event.


cbMiniButton::Refresh

void Refresh()

Refreshes the button.


cbMiniButton::Reset

void Reset()

Reset the button.


cbMiniButton::SetPos

void SetPos(const wxPoint& pos)

Set the position of the button.


cbMiniButton::WasClicked

bool WasClicked()

Returns TRUE if the button was clicked.