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

NCheckBox

Methods Index

Heritage
Description
Usage
Protected Data Members
Public Methods
Check Box Utilities
Response Methods
TDI Enabling Methods

NCheckBox


Heritage

Superclass: CNativeView

Subclasses: None


Description

NCheckBox provides check box objects that have the look-and-feel of check boxes in the native window manager. A check box is a box with a title beside it. When the user clicks on the box, it becomes checked (selected); upon another click, it becomes deselected, and the check mark (or other indicator of a "checked" status) disappears.


Usage

Instantiate an NCheckBox object and initialize it. Upon being selected or deselected, the object generates a DoCommand event. However, this class does not use the commands set by SetCommand or SetDoubleCommand.


Protected Data Members

BOOLEAN itIsSelected; Selection state
long itsSelectCommand; Command produced at select time
long itsDeselectCommand; Command produced at deselect time


Public Methods

NCheckBox(CSubview* theEnclosure, 
const CRect& theRegion,
const CStringRW theTitle = NULLString,
long theAttributes = 0L);
NCheckBox(CSubview* theEnclosure, long theContainerId, long theId);
NCheckBox(const NCheckBox& theCheckBox);
NCheckBox& operator=(const NCheckBox& theCheckBox);
virtual ~NCheckBox();
BOOLEAN ICheckBox(
const CStringRW& theTitle = NULLString,
BOOLEAN isEnabled = TRUE,
long theDeselectCommand = NULLcmd,
long theSelectCommand = NULLcmd,
BOOLEAN isVisible = TRUE,
long theGlue = NULLSTICKY);

Check Box Utilities

virtual BOOLEAN IsSelected(void) const;
virtual void Select(void);
virtual void Deselect(void);
virtual long GetSelectCommand(void) const;
virtual void SetSelectCommand(long theNewSelectCommand);
virtual long GetDeselectCommand(void) const;
virtual void SetDeselectCommand(
long theNewSelectCommand);

Response Methods

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

TDI Enabling Methods

virtual void DoUpdateModel(long theControllerId, 
long theCommand, const CModel* theModel);
virtual void DoCommand(long theCommand, 
void* theData = NULL);


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

support@xvt.com


Visit our online help desk for tech support

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