| Methods Index |
CNativeViewSubclasses: None
NEditControl objects are edit controls that have the look-and-feel of the native window manager's edit controls.
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.
NEditControl(CSubview* theEnclosure,
const CRect& theRegion,
const CStringRW& theTitle = NULLString,
long theAttributes = 0L);
theEnclosure is a pointer to the subview that will contain the edit control. theRegion is a coordinate location, local to the enclosure, that is used to place the edit control. theTitle is a character string that is displayed inside the edit control. theAttributes takes a value from a set of XVT Portability Toolkit-provided attributes that you can give to native views. You can OR together the appropriate control flag constants into an attribute value. For a listing of the possible control flags for theAttributes, refer to the table in the description of CNativeView's protected constructor.
NEditControl(CSubview* theEnclosure,
long theContainerId, long theId);
NEditControl(const NEditControl& theEditControl);
NEditControl& operator= (
const NEditControl& theEditControl);
virtual ~NEditControl();
virtual void Deactivate(void);
virtual void Activate(void);
void DoHit(CONTROL_INFO theInfo);
CONTROL_INFO, which is defined by the XVT Portability Toolkit (see the XVT Portability Toolkit Guide).
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);
theNewTitle.
void GetTextSelection(int *theFirstIndex,
int *theLastIndex) const;
void SetTextSelection(int theFirstIndex, int theLastIndex);
theFirstIndex and ending with the character specified by theLastIndex.
virtual BOOLEAN ClassCanGetKeyFocus(void) const;
CView::ClassCanGetKeyFocus to return TRUE.
virtual void SetValidator(CValidator theValidator ;
CValidator for more information.