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

NLineText

Methods Index

Heritage
Description
Usage
Environment
Private Data Members
Public Methods
Constructor, Destructor, and Initializer Methods
Get Line Text Information
Inherited Utility
Validation Interface
Protected Methods

NLineText


Heritage

Superclass: CNativeTextEdit

Subclasses: None


Description

NLineText provides a single-line text editing box inside of a CView. It is commonly used for one-line text entries, such as a place for users to enter their names or passwords. You must specify the length; the height is calculated from the font of the text.


Usage

Instantiate an NLineText object and initialize its length.


Environment

The text is drawn in the foreground color; the border is drawn with the pen color. The interior of the text box is drawn in the background color.


Private Data Members

RWCRegexp* itsValidation; Regular expression used for field validation


Public Methods

Constructor, Destructor, and Initializer Methods

NLineText(CSubview* theEnclosure, 
const CPoint& theTopLeftPoint,
UNITS theLength,
unsigned theAttributes = TX_BORDER,
UNITS theRightMargin = 1000,
int theCharacterLimit = 1000);
NLineText(const NLineText& theLineText);
NLineText& operator=(const NLineText& theLineText);
virtual ~NLineText();
BOOLEAN ILineText(
unsigned theAttributes = TX_BORDER,
UNITS theRightMargin = 1000,
int theCharactedLimit = 1000,
const CStringRW& theInitialText = NULLString,
BOOLEAN isAutoSelected = FALSE,
BOOLEAN isVisible = TRUE,
GLUETYPE theGlue = SAMESTICKY);

Get Line Text Information

T_CNUM GetInsertPosition(void) const;
void SetInsertPosition(T_CNUM thePos);

Inherited Utility

virtual void SetAttribute(unsigned theAttribute, BOOLEAN isSet = TRUE);
virtual void SetFont(const CFont &theNewFont, 
BOOLEAN isUpdate = FALSE);
virtual void Size(const CRect& theNewSize);
virtual void Key(const CKey& theKey);

Validation Interface

void SetValidation(RWCRegexp theExpression);
RWCRegexp GetValidation(void) const;

Protected Methods

void KeyValidateRegX(const CKey&);
int ResetHeight(const CFont& theFont, 
const CWindow& theWindow) const;
CRect GetInitialFrame(CSubview* theEnclosure, 
const CPoint& theTopLeft, UNITS theLength);


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

support@xvt.com


Visit our online help desk for tech support

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