3D PLM Enterprise Architecture |
User Interface - Dialogs |
CATDlgIconBoxGroups icons |
Quick Reference |
CATDialog | +---CATDlgBox | +---CATDlgIconBox
![]() ![]() |
The icon box is used to build a pull-down menu composed of icons, each
of which can be selected to trigger an action. The icon box features a
vertical arrow at its bottom left corner. When the mouse is located above
this arrow, the cursor becomes ![]() |
Use icon box whenever you propose a single access to related command in a toolbar.
Name | Description |
---|---|
default | The icon box is vertical |
CATDlgCtrHorizontal | The icon box is horizontal |
[Top]
Notification | Method | Sent when |
---|---|---|
CATDlgIconBoxSelectNotification | GetIBoxSelectNotification |
Whenever an icon is selected in the icon box. |
CATDlgIconBoxModifyNotification | GetIBoxModifyNotification |
Whenever the icon displayed as the icon box is selected. |
[Top]
The icon box gathers push buttons and displays their icon representation.
[Top]
The different kinds of icon boxes can be constructed:
pIconBox = new CATDlgIconBox (this, "IconBoxId"); |
pIconBox = new CATDlgIconBox (this, "IconBoxId", CATDlgCtrHorizontal); |
[Top]
To manage the selected icon, you can:
int SelectedIcon; SelectedIcon = pIconBox->GetSelect(); |
The index of the selected icon in the icon box is returned. This index begins with 0.
int SelectedIcon; int IconToSelect = 2; int Notify = 1; SelectedIcon = pIconBox->SetSelect(IconToSelect, Notify); ... CATString NameOfIconToSelect = "IconName"; SelectedIcon = pIconBox->SetSelect(NameOfIconToSelect , Notify); |
Set the first parameter to the index of the icon to select, or to its name, and the parameter Notify to a non null value if you want the corresponding notification to be sent. Otherwise set to 0, no notification is sent. The selected icon index is returned.
[Top]
To manage the icon number, you can:
int NumIcon; NumIcon = pIconBox->GetNumIconPerRow(); |
int NumIcon = 5; pIconBox->SetNumIconPerRow(NumIcon); |
[Top]
Version: 1 [Jan 2000] | Document created |
[Top] |
Copyright © 2000, Dassault Systèmes. All rights reserved.