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

CNativeList

Methods Index

Heritage
Description
Usage
Environment
Public Methods
Methods for Inserting and Removing Strings and Clearing the List
Methods for Getting Items
TDI Enabling Methods
Keyboard Navigation
Formatting and Validation
Protected Methods
Constructor, Destructor, and Initializer Methods

CNativeList


Heritage

Superclass: CNativeView

Subclasses: CNativeSelectList, NListEdit


Description

CNativeList is an abstract class from which several native list control classes are derived. Native list controls are objects such as list buttons, list boxes, and list edits that have the look-and-feel of the native window manager.


Usage

Override this base class with classes that are specific to each XVT Portability Toolkit list control.


Environment

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


Public Methods

Methods for Inserting and Removing Strings and Clearing the List

virtual BOOLEAN Insert(
const CStringCollection& theStringList,
int thePosition = -1);
virtual BOOLEAN Insert(const CStringRW& theString, 
int thePosition=-1);
virtual BOOLEAN Remove(int thePosition);
virtual BOOLEAN Clear(void);
void Suspend(void);
void Resume(void);

Methods for Getting Items

virtual CStringCollection GetAllItems(void);
virtual CStringRW GetItem(int thePosition, 
int theNumberOfCharacters=ITEMLENGTH) const;
virtual int GetNumItems(void);

TDI Enabling Methods

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

Keyboard Navigation

virtual BOOLEAN ClassCanGetKeyFocus(void) const;

Formatting and Validation

virtual void SetValidator(CValidator theValidator);

Protected Methods

Constructor, Destructor, and Initializer Methods

CNativeList(CSubview* theEnclosure, 
const CRect& theRegion, WIN_TYPE theControlType,
const CStringCollection& theItems,
const CStringRW& theTitle,
long theControlAttributes);
CNativeList(CSubview* theEnclosure);
CNativeList(const CNativeList& theNativeList);
CNativeList& operator=(
const CNativeList& theNativeList);
virtual ~CNativeList();
void TdiNotifyItems(long theCommand, const   CStringCollection& theValue);


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

support@xvt.com


Visit our online help desk for tech support

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