| Methods Index |
CNativeListSubclasses: None
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.
This class does not use the commands set by
SetCommand or SetDoubleCommand.
CNativeView. The drawing properties of native views are system-defined.
NListEdit(CSubview* theEnclosure,
const CRect& theRegion,
const CStringCollection& theItems,
const CStringRW& theTitle = NULLString);
theEnclosure is a pointer to the subview that will contain the list edit. theRegion is the size of the control when the list is displayed (not the size of the edit portion of the control). theItems is a list of the strings that the list edit will contain. theTitle is the string that will serve as the title of the native list. This title is the actual item in the edit field that has been selected from the pop-up list of items.
NListEdit(CSubview* theEnclosure,
long theContainerId, long theId);
NListEdit(const NListEdit& theNativeList);
BOOLEAN IListEdit(
const CStringCollection& theItems,
const CStringRW& theTitle = NULLString);
theItems, and sets the title.
NListEdit& operator=(const NListEdit& theNativeList);
virtual ~NListEdit();
virtual void SetFocusCommands(
long theKeyFocusCommand,
long theKeyLostFocusCommand);
DoCommand chain of events.
virtual void SetTextCommand(long theTextCommand);
long GetKeyFocusCommand(void) const;
long GetKeyFocusLostCommand(void) const;
long GetTextCommand(void) const;
virtual void DoHit(CONTROL_INFO theControlInfo);
DoCommand chain: theKeyFocusCommand, theKeyLostFocusCommand or theTextCommand.
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);
theFirstIndex and ending with the character specified by theLastIndex.