Option Button Control

See Also0OPT2             PropertiesGCYCJ0            Events0OC0AS           Methods0OJTAH

Description

An option button displays an option that can be turned on or off.

Remarks

Usually, option buttons are used as part of an option group to display multiple choices from which the user can select only one.  You can group option buttons by drawing them inside a frame1L3O6RK, a picture box3W9LV25, or directly on a form5272EF.  To group option buttons in a frame or picture box, draw the frame or picture box first, and then draw the option buttons inside.  All option buttons within a frame or picture box are treated as a group.  Option buttons on a form are also treated as a separate group from any option buttons in a frame or picture box.

While option buttons and check boxes14D3ST3 may appear to function similarly, there is an important difference:  when a user selects an option button, the other option buttons in the same group are automatically cancelled.  In contrast, any number of check boxes can be selected.


Properties

AlignmentFQ8OZH               FontStrikethru5NZYQSD         Parent17GLLBF

BackColor1W9T6JQ              FontUnderline5NZYQSD         TabIndexH38QPT

CaptionF6ZZXB                   ForeColor1W9T6JQ               TabStop81MAWZ

DragIcon3G3M07O                HeightL14VJZ                    Tag6GI6KP

DragModeS9LGP1              HelpContextID764PDR        Top1CIZPD6

Enabled3XD4FN                  hWnd1CIW7KQ                     Value5OIC88B

FontBold5NZYQSD                 Index3MKW18P                      Visible32KNZA4

FontItalic5NZYQSD                Left1CIZPD6                        WidthL14VJZ

FontNameB3RMO3               MousePointer1VSV6UM

FontSizeB3WV13                 Name2016V9P

 

 


Events

Click68UQAKP                    GotFocus32EWUCC                    LostFocus2ZXQDAR

DblClick2UG5QK1               KeyDownRI06O6                     MouseDownD0VNMJ

DragDrop1EBOJGL             KeyPressPFFDUA                    MouseMove1D70SW5

DragOver2TUGMAC             KeyUpRI06O6                         MouseUpD0VNMJ

 

 

 


Methods

Drag2IEV8PA                      SetFocus4AVBOY

Move103G76J                      ZOrder1YQ29TM

Refresh3SMNZGP                 


See Also

Help:

Check Box Control9P3BU5

Drawing a Control2JRMWVS

 

Programmer's Guide:

Chapter 3, "Creating and Using Controls"