## class XGButton

> Declared in <XButtons.h>
> Declared from XGControl

> The command button base object. This knows how to handle the three standard buttons.

Public methods

> XGButton::DoActivate
> XGButton::DoDrawView
> XGButton::DoEnable
> XGButton::DoMouseDown
> XGButton::DoMouseMove
> XGButton::DoMouseUp
> XGButton::DoMoveView
> XGButton::DoShowHide
> XGButton::DoSizeView
> XGButton::GetTitle
> XGButton::GetValue
> XGButton::PushButton
> XGButton::SetFocus
> XGButton::SetTitle
> XGButton::SetValue
> XGButton::XGButton
> XGButton::~XGButton

Public methods

XGButton::DoActivate

> Usage: void XGButton::DoActivate(bool)

> Activate/deactivate.

XGButton::DoDrawView

> Usage: void XGButton::DoDrawView(Rect)

> Handle the drawing

XGButton::DoEnable

> Usage: void XGButton::DoEnable()

> Handle enable/disable events. Passes the enable/disable event to the control

XGButton::DoMouseDown

> Usage: bool XGButton::DoMouseDown(Point pt,short a)

> Handle the mouse down event. Only used for the Macintosh

XGButton::DoMouseMove

> Usage: void XGButton::DoMouseMove(Point pt,short a)

> handle mouse move events

XGButton::DoMouseUp

> Usage: void XGButton::DoMouseUp(Point pt,short a)

> handle mouse up

XGButton::DoMoveView

> Usage: void XGButton::DoMoveView()

> Move the view.

XGButton::DoShowHide

> Usage: void XGButton::DoShowHide()

> This is called when the control is to be hidden or shown. This only needs to hide the control; the call to DoDrawView() will show the control if needed.

XGButton::DoSizeView

> Usage: void XGButton::DoSizeView()

> Handle resize event

XGButton::GetTitle

> Usage: void XGButton::GetTitle(char*name)const

> Get the name

XGButton::GetValue

> Usage: long XGButton::GetValue(void)

> Get the value of this thing

XGButton::PushButton

> Usage: void XGButton::PushButton()

> Temporary push button act, and return message. This does the appropriate thing on the target platform

XGButton::SetFocus

> Usage: bool XGButton::SetFocus(void)

> Set the focus. This overrides stuff on Windows by setting the MS Window focus as well.

XGButton::SetTitle

> Usage: void XGButton::SetTitle(const char*name)

> Set the name

XGButton::SetValue

> Usage: void XGButton::SetValue(long value)

> Set the value of this thing

XGButton::XGButton

> Usage: void XGBroadcast::SendPostBroadcast()

> Construct me.

XGButton::~XGButton

> Usage: XGButton::~XGButton()

> Destruct me