1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %% Name: bitmaptglbtn.tex
3 %% Purpose: wxBitmapToggleButton documentation
4 %% Author: Robert Roebling
5 %% License: wxWindows license
6 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
8 \section{\class{wxBitmapToggleButton
}}\label{wxbitmaptogglebutton
}
10 wxBitmapToggleButton is a
\helpref{wxToggleButton
}{wxtogglebutton
}
11 that contains a bitmap instead of text.
13 This control emits an update UI event.
15 \wxheading{Derived from
}
17 \helpref{wxControl
}{wxcontrol
}\\
18 \helpref{wxWindow
}{wxwindow
}\\
19 \helpref{wxEvtHandler
}{wxevthandler
}\\
20 \helpref{wxObject
}{wxobject
}
22 \wxheading{Include files
}
28 \helpref{wxCore
}{librarieslist
}
30 \wxheading{Window styles
}
32 There are no special styles for wxBitmapToggleButton.
34 \wxheading{Event handling
}
37 \begin{twocollist
}\itemsep=
0pt
38 \twocolitem{{\bf EVT
\_TOGGLEBUTTON(id, func)
}}{Handles a toggle button click event.
}
41 \latexignore{\rtfignore{\wxheading{Members
}}}
43 \membersection{wxBitmapToggleButton::wxBitmapToggleButton
}\label{wxbitmaptogglebuttonconstr
}
45 \func{}{wxBitmapToggleButton
}{\void}
49 \func{}{wxBitmapToggleButton
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\rtfsp
50 \param{const wxBitmap\&
}{label
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\rtfsp
51 \param{const wxSize\&
}{size = wxDefaultSize
},
\param{long
}{ style =
0},
\rtfsp
52 \param{const wxValidator\&
}{val
},
\param{const wxString\&
}{name = ``checkBox"
}}
54 Constructor, creating and showing a toggle button with the bitmap
{\it label
}.
55 Internally calls Create().
57 \membersection{wxBitmapToggleButton::Create
}\label{wxbitmaptogglebuttoncreate
}
59 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{ id
},
\rtfsp
60 \param{const wxBitmap\&
}{label
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\rtfsp
61 \param{const wxSize\&
}{size = wxDefaultSize
},
\param{long
}{ style =
0},
\rtfsp
62 \param{const wxValidator\&
}{val
},
\param{const wxString\&
}{name = ``checkBox"
}}
64 Create method for two-step construction.
66 \membersection{wxBitmapToggleButton::GetValue
}\label{wxbitmaptogglebuttongetvalue
}
68 \constfunc{bool
}{GetValue
}{\void}
70 Gets the state of the toggle button.
72 \wxheading{Return value
}
74 Returns
{\tt true
} if it is pressed,
{\tt false
} otherwise.
76 \membersection{wxBitmapToggleButton::SetValue
}\label{wxbitmaptogglebuttonsetvalue
}
78 \func{void
}{SetValue
}{\param{bool
}{ state
}}
80 Sets the toggle button to the given state. This does not cause a
81 {\tt EVT
\_TOGGLEBUTTON} event to be emitted.
83 \wxheading{Parameters
}
85 \docparam{state
}{If
{\tt true
}, the button is pressed.
}