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

NEditControl

Methods Index

Heritage
Description
Usage
Environment
Protected Data Members
Public Methods
Constructor and Destructor Methods
Other Methods

NEditControl


Heritage

Superclass: CNativeView

Subclasses: None


Description

NEditControl objects are edit controls that have the look-and-feel of the native window manager's edit controls.


Usage

Create and initialize an NEditControl object with an enclosing Subview when the user clicks on an edit control. It generates the DoCommand (itsCommand) event. However, this class does not use the commands set by SetCommand or SetDoubleCommand.


Environment

Notifier object.


Protected Data Members

long itsKeyFocusCmd Message sent when edit control gets keyboard focus
long itsKeyFocusLostCmd Message sent when edit control loses keyboard focus
long itsTextCmd Message sent when edit control receives keyboard entries (after focus is gained)


Public Methods

Constructor and Destructor Methods

NEditControl(CSubview* theEnclosure,
const CRect& theRegion,
const CStringRW& theTitle = NULLString,
long theAttributes = 0L);
NEditControl(CSubview* theEnclosure, 
long theContainerId, long theId);
NEditControl(const NEditControl& theEditControl);
NEditControl& operator= (
const NEditControl& theEditControl);
virtual ~NEditControl();

Other Methods

virtual void Deactivate(void);
virtual void Activate(void);
void DoHit(CONTROL_INFO theInfo);
virtual void SetFocusCommands(long theKeyFocusCommand, long theKeyFocusLostCommand);
virtual void SetTextCommand(long theTextCommand);
long GetKeyFocusCommand(void) const;
long GetKeyFocusLostCommand(void) const;
long GetTextCommand(void) const;
virtual void SetTitle(const CStringRW& theNewTitle);
void GetTextSelection(int *theFirstIndex,
int *theLastIndex) const;
void SetTextSelection(int theFirstIndex, int theLastIndex);
virtual BOOLEAN ClassCanGetKeyFocus(void) const;
virtual void SetValidator(CValidator theValidator ;



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

support@xvt.com


Visit our online help desk for tech support

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