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

CNativeSelectList

Methods Index

Heritage
Description
Usage
Environment
Public Methods
Methods for Getting the Selection
Methods for Setting the Selection
TDI Enabling Methods
Protected Methods
Constructor, Destructor, and Initializer Methods
TDI Method

CNativeSelectList


Heritage

Superclass: CNativeList

Subclasses: NListButton, NListBox


Description

CNativeSelectList is an abstract class that adds the functionality for selecting or deselecting one or more items in a native list. It includes functions for finding out whether a given item is selected or (conversely) finding the positions of selected items.


Usage

Override this base class with classes that are specific to each XVT Portability Toolkit native 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 Getting the Selection

virtual int GetNumSelectedItems(void);
virtual CStringCollection GetSelectedItems(void);
virtual CStringRW GetFirstSelectedItem(int theNumberOfCharacters = ITEMLENGTH) const;
virtual int GetSelectPosition(void);
virtual BOOLEAN IsItSelected(int thePosition);

Methods for Setting the Selection

virtual BOOLEAN SelectItem(int thePositionOfItem);
virtual BOOLEAN SelectItem(const CStringRW& theTitle);
virtual BOOLEAN DeselectItem(int thePositionOfItem);
virtual BOOLEAN DeselectItem(const CStringRW& theTitle);
virtual BOOLEAN SelectAll(void);
virtual BOOLEAN DeselectAll(void);

TDI Enabling Methods

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

Protected Methods

Constructor, Destructor, and Initializer Methods

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

TDI Method

void TdiNotifySelections(void);


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

support@xvt.com


Visit our online help desk for tech support

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