[Classes] [Prev] [Next] [Methods]

NRadioButton

Methods Index

Heritage
Description
Usage
Protected Data Members
Friends
Public Methods
Constructor, Destructor, and Initializer Methods
Overridden Methods

NRadioButton


Heritage

Superclass: CNativeView

Subclasses: None


Description

NRadioButton provides radio button objects (belonging to a group) that have the look-and-feel of radio buttons in the native window manager. By definition, radio buttons must be grouped together. Unlike check boxes, which can be multiply selected, radio buttons can only be selected one at a time. Selecting one radio button means to deselect another. The helper class CRadioGroup serves as a grouper.


Usage

Although NRadioButton is a public class that you can instantiate directly, it is more desirable to create a radio button grouper (CRadioGroup) and use either the AddButton or the AddButtons method to create new buttons in the group.

If you call FindResourceView in a CWindow and pass in the resource ID of the first radio button, you will get a handle to the CRadioGroup, not the first radio button in the group.Then, to get a handle to the first radio button in the group, you can call the CRadioGroup's FindResourceView method, using the resource ID of the first radio button.


Protected Data Members

CRadioGroup* itsRadioGroup A pointer to the group containing the radio button

Friends

friend class CRadioGroup;


Public Methods

Constructor, Destructor, and Initializer Methods

NRadioButton(CSubview *theEnclosure,
const CRect& theRegion,
CRadioGroup* theRadioGroup,
long theAttributes = 0L,
const CStringRW& theTitle = NULLString);
NRadioButton(RadioGroup *theEnclosure, 
long theContainerId, long theId);
NRadioButton(const NRadioButton& theButton);
NRadioButton& operator= (
const NRadioButton& theButton);
virtual ~NRadioButton(void);
BOOLEAN IRadioButton(
const CStringRW& theTitle = NULLString,
BOOLEAN isEnabled = TRUE,
long theCommand = NULLcmd,
BOOLEAN isVisible = TRUE,
long theGlue = NULLSTICKY);

Overridden Methods

virtual void DoHit(CONTROL_INFO controlInfo);	
virtual BOOLEAN ClassCanGetKeyFocus(void) const;


[Classes] [Prev] [Next] [Methods]

support@xvt.com


Visit our online help desk for tech support

Copyright © 2009, Providence Software Solutions Inc. All rights reserved.