3D PLM Enterprise Architecture

User Interface - Dialogs

CATDlgSelectorList

Selects one or several items in a list
Quick Reference

CATDialog
  |
  +---CATDlgControl
        |
        +---CATDlgSelectorList

The Selector List
ListSelectorlist.jpg (1496 bytes) The selector list allows the end user to select one or several values among a discrete list of predefined values. The values are generally character strings. Scrollbars are added if the list is longer or wider than the list display area. The selected value (s) is (are) highlighted. The end user cannot enter values and can only select among those proposed.

Use selector list whenever you propose to the end user to select values from a predefined list.


Styles
Name Description
default A single value can be selected.
CATDlgLstMultisel Several values can be selected using the Shift and Ctrl keys.

[Top]


Events
Notification Method Sent when
CATDlgListSelectNotification GetListSelectNotification Whenever a line is selected.
CATDlgListActivateNotification GetListActivateNotification Whenever a line is double clicked.

[Top]


Programmer's Guide

The selector list is dedicated to selection.

[Top]

Constructing a Selector List

These following kinds of selector list can be constructed.

default
_pSelectList  = new CATDlgSelectorList (iParent, iName);
Multiselection
_pMSelectList = new CATDlgSelectorList (iParent, iName,
                                    CATDlgListMultisel);

[Top]

Managing the Line Content

You can do the following to manage the content of the lines in a selector list:

[Top]

Managing the Line Display

You can manage the line display with the following methods:

[Top]

Managing the Selection in the List

To help manage the selection in the list displayed in the selector, you can use the following methods::

[Top]

Setting a Callback on a Selector List

Set a callback on a selector list to be informed whenever the end user selects a line as follows:

AddAnalyseNotificationCB(
  _pSelectList,                                   // selector list 
  _pSelectList->GetListSelectNotification(),      // notification
  (CATCommand)&SelectorList::MethodToExecute,     // method to execute 
  CATCommandClientData iUsefulData);              // useful data for this method 

[Top]

Setting a Title to a Selector List

The selector list title should be set by the resource file using a key built with the identifier you declare as the second parameter of the selector list constructor. This title is never displayed. If you want to comment the choices available from the selector list in your dialog, use a label.

[Top]


History

Version: 1 [Jan 2000] Document created
[Top]

Copyright © 2000, Dassault Systèmes. All rights reserved.