%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Name:        bitmaptglbtn.tex
%% Purpose:     wxBitmapToggleButton documentation
%% Author:      Robert Roebling
%% License:     wxWindows license
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{\class{wxBitmapToggleButton}}\label{wxbitmaptogglebutton}

wxBitmapToggleButton is a a \helpref{wxToggleButton}{wxtogglebutton}
that contains a bitmap instead of text.

This control emits a update UI event.

\wxheading{Derived from}

\helpref{wxControl}{wxcontrol}\\
\helpref{wxWindow}{wxwindow}\\
\helpref{wxEvtHandler}{wxevthandler}\\
\helpref{wxObject}{wxobject}

\wxheading{Include files}

<wx/tglbtn.h>

\wxheading{Library}

\helpref{wxCore}{librarieslist}

\wxheading{Window styles}

There are no special styles for wxBitmapToggleButton.

\wxheading{Event handling}

\twocolwidtha{7cm}
\begin{twocollist}\itemsep=0pt
\twocolitem{{\bf EVT\_TOGGLEBUTTON(id, func)}}{Handles a toggle button click event.}
\end{twocollist}

\latexignore{\rtfignore{\wxheading{Members}}}

\membersection{wxBitmapToggleButton::wxBitmapToggleButton}\label{wxbitmaptogglebuttonconstr}

\func{}{wxBitmapToggleButton}{\void}

Default constructor.

\func{}{wxBitmapToggleButton}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
\param{const wxSize\& }{size = wxDefaultSize}, \param{long}{ style = 0},\rtfsp
\param{const wxValidator\& }{val}, \param{const wxString\& }{name = ``checkBox"}}

Constructor, creating and showing a toggle button with the bitmap {\it label}.
Internally calls Create().

\membersection{wxBitmapToggleButton::Create}\label{wxbitmaptogglebuttoncreate}

\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID}{ id},\rtfsp
\param{const wxBitmap\& }{label}, \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp
\param{const wxSize\& }{size = wxDefaultSize}, \param{long}{ style = 0},\rtfsp
\param{const wxValidator\& }{val}, \param{const wxString\& }{name = ``checkBox"}}

Create method for two-step construction.

\membersection{wxBitmapToggleButton::GetValue}\label{wxbitmaptogglebuttongetvalue}

\constfunc{bool}{GetValue}{\void}

Gets the state of the toggle button.

\wxheading{Return value}

Returns {\tt true} if it is pressed, {\tt false} otherwise.

\membersection{wxBitmapToggleButton::SetValue}\label{wxbitmaptogglebuttonsetvalue}

\func{void}{SetValue}{\param{bool}{ state}}

Sets the toggle button to the given state. This does not cause a
{\tt EVT\_TOGGLEBUTTON} event to be emitted.

\wxheading{Parameters}

\docparam{state}{If {\tt true}, the button is pressed.}

