File: wx191.htm

package info (click to toggle)
wxwin2-doc 2.01-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 6,540 kB
  • ctags: 5,968
  • sloc: cpp: 15,157; makefile: 434; sh: 6
file content (132 lines) | stat: -rw-r--r-- 4,792 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<HTML>
<head><title>wxRadioButton</title></head>

<BODY BGCOLOR=#FFFFFF>
<A NAME="wxradiobutton"></A><CENTER>
<A HREF="wx.htm"><img align=center src="contents.gif" BORDER=0 ALT="Contents"></A> <A HREF="wx22.htm#classref"><img align=center src="up.gif" BORDER=0 ALT="Up"></A> <A HREF="wx190.htm#wxradiobox"><img align=center src="back.gif" BORDER=0 ALT="Previous"></A> <A HREF="wx192.htm#wxrealpoint"><img align=center src="forward.gif" BORDER=0 ALT="Next"></A> </CENTER><HR>

<H2>wxRadioButton</H2>
<P>
A radio button item is a button which usually denotes one of several mutually
exclusive options. It has a text label next to a (usually) round button.<P>
<B><FONT COLOR="#FF0000">Derived from</FONT></B><P>
<A HREF="wx56.htm#wxcontrol">wxControl</A><BR>

<A HREF="wx260.htm#wxwindow">wxWindow</A><BR>

<A HREF="wx85.htm#wxevthandler">wxEvtHandler</A><BR>

<A HREF="wx158.htm#wxobject">wxObject</A><P>
<B><FONT COLOR="#FF0000">Include files</FONT></B><P>
&lt;wx/radiobut.h&gt;<P>
<B><FONT COLOR="#FF0000">Window styles</FONT></B><P>
There are no specific styles for this class.<P>
See also <A HREF="wx305.htm#windowstyles">window styles overview</A>.<P>
<B><FONT COLOR="#FF0000">Event handling</FONT></B><P>


<TABLE>


<TR><TD VALIGN=TOP>
<B>EVT_RADIOBUTTON(id, func)</B>
</TD>

<TD VALIGN=TOP>
Process a wxEVT_COMMAND_RADIOBUTTON_SELECTED event,
when the radiobutton is clicked.
</TD></TR>


</TABLE>
<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx299.htm#eventhandlingoverview">Event handling overview</A>, <A HREF="wx190.htm#wxradiobox">wxRadioBox</A>,
<A HREF="wx39.htm#wxcheckbox">wxCheckBox</A><P>
<B><FONT COLOR="#FF0000">Members</FONT></B><P>
<A HREF="#wxradiobuttonconstr">wxRadioButton::wxRadioButton</A><BR>
<A HREF="#topic718">wxRadioButton::~wxRadioButton</A><BR>
<A HREF="#wxradiobuttoncreate">wxRadioButton::Create</A><BR>
<A HREF="#wxradiobuttongetvalue">wxRadioButton::GetValue</A><BR>
<A HREF="#wxradiobuttonsetvalue">wxRadioButton::SetValue</A><BR>
<P>

<HR>
<A NAME="wxradiobuttonconstr"></A>
<H3>wxRadioButton::wxRadioButton</H3>
<P>
<B></B> <B>wxRadioButton</B>()<P>
Default constructor.<P>
<B></B> <B>wxRadioButton</B>(<B>wxWindow*</B><I> parent</I>, <B>wxWindowID</B><I> id</I>, <B>const wxString&amp; </B><I>label</I>,
<B>const wxPoint&amp; </B><I>pos = wxDefaultPosition</I>, <B>const wxSize&amp;</B><I> size = wxDefaultSize</I>,
<B>long</B><I> style = 0</I>,
<B>const wxValidator&amp; </B><I>validator = wxDefaultValidator</I>,
<B>const wxString&amp; </B><I>name = "radioButton"</I>)<P>
Constructor, creating and showing a radio button.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>parent</I><UL><UL>
Parent window. Must not be NULL.</UL></UL>
<P>
<I>id</I><UL><UL>
Window identifier. A value of -1 indicates a default value.</UL></UL>
<P>
<I>label</I><UL><UL>
Label for the radio button.</UL></UL>
<P>
<I>pos</I><UL><UL>
Window position. If the position (-1, -1) is specified then a default position is chosen.</UL></UL>
<P>
<I>size</I><UL><UL>
Window size. If the default size (-1, -1) is specified then a default size is chosen.</UL></UL>
<P>
<I>style</I><UL><UL>
Window style. See <A HREF="wx191.htm#wxradiobutton">wxRadioButton</A>.</UL></UL>
<P>
<I>validator</I><UL><UL>
Window validator.</UL></UL>
<P>
<I>name</I><UL><UL>
Window name.</UL></UL>
<P>
<B><FONT COLOR="#FF0000">See also</FONT></B><P>
<A HREF="wx191.htm#wxradiobuttoncreate">wxRadioButton::Create</A>, <A HREF="wx255.htm#wxvalidator">wxValidator</A><P>

<HR>
<A NAME="topic718"></A>
<H3>wxRadioButton::~wxRadioButton</H3>
<P>
<B>void</B> <B>~wxRadioButton</B>()<P>
Destructor, destroying the radio button item.<P>

<HR>
<A NAME="wxradiobuttoncreate"></A>
<H3>wxRadioButton::Create</H3>
<P>
<B>bool</B> <B>Create</B>(<B>wxWindow*</B><I> parent</I>, <B>wxWindowID</B><I> id</I>, <B>const wxString&amp; </B><I>label</I>,
<B>const wxPoint&amp; </B><I>pos = wxDefaultPosition</I>, <B>const wxSize&amp;</B><I> size = wxDefaultSize</I>,
<B>long</B><I> style = 0</I>,
<B>const wxValidator&amp; </B><I>validator = wxDefaultValidator</I>,
<B>const wxString&amp; </B><I>name = "radioButton"</I>)<P>
Creates the choice for two-step construction. See <A HREF="wx191.htm#wxradiobuttonconstr">wxRadioButton::wxRadioButton</A> for
further details.<P>

<HR>
<A NAME="wxradiobuttongetvalue"></A>
<H3>wxRadioButton::GetValue</H3>
<P>
<B>bool</B> <B>GetValue</B>() <B>const</B><P>
Returns TRUE if the radio button is depressed, FALSE otherwise.<P>

<HR>
<A NAME="wxradiobuttonsetvalue"></A>
<H3>wxRadioButton::SetValue</H3>
<P>
<B>void</B> <B>SetValue</B>(<B>const bool</B><I> value</I>)<P>
Sets the radio button to selected or deselected status.<P>
<B><FONT COLOR="#FF0000">Parameters</FONT></B><P>
<I>value</I><UL><UL>
TRUE to select, FALSE to deselect.</UL></UL>
<P>


</BODY></HTML>