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

NListEdit

Methods Index

Heritage
Description
Usage
Environment
Protected Data Members
Public Methods
Constructor, Destructor, and Initializer Methods
Command Settings
Inherited Methods

NListEdit


Heritage

Superclass: CNativeList

Subclasses: None


Description

NListEdit is a class that maps to XVT's list edit. NListEdit provides a text field with a small button beside it. Pressing the button invokes a pop-up list box of text items; selecting one of these items and releasing the mouse button causes the selected item to be inserted into the text field.


Usage

Create an instance of this class and initialize it as you would any other native view.

This class does not use the commands set by SetCommand or SetDoubleCommand.


Environment

There are no environment settings for classes that inherit from CNativeView. The drawing properties of native views are system-defined.


Protected Data Members

long itsKeyFocusCmd; The command generated when the keyboard gains focus on the edit field
long itsKeyLostFocusCmd; The command generated when the keyboard loses focus on the edit field
long itsTextCmd; The command generated when the textual contents of the edit field change


Public Methods

Constructor, Destructor, and Initializer Methods

NListEdit(CSubview* theEnclosure, 
const CRect& theRegion,
const CStringCollection& theItems,
const CStringRW& theTitle = NULLString);
NListEdit(CSubview* theEnclosure, 
long theContainerId, long theId);
NListEdit(const NListEdit& theNativeList);
BOOLEAN IListEdit(
const CStringCollection& theItems,
const CStringRW& theTitle = NULLString);
NListEdit& operator=(const NListEdit& theNativeList);
virtual ~NListEdit();

Command Settings

virtual void SetFocusCommands(
long theKeyFocusCommand,
long theKeyLostFocusCommand);
virtual void SetTextCommand(long theTextCommand);
long GetKeyFocusCommand(void) const;
long GetKeyFocusLostCommand(void) const;
long GetTextCommand(void) const;

Inherited Methods

virtual void DoHit(CONTROL_INFO theControlInfo);
virtual CRect GetVisibleFrame(void) const;
virtual void Activate(void);
virtual void Deactivate(void);
void GetTextSelection(int *theFirstIndex,
int *theLastIndex) const;
void SetTextSelection(int theFirstIndex,
int theLastIndex);


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

support@xvt.com


Visit our online help desk for tech support

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