class MenuSetting
Defined in:
The C4Configuration.h
MenuSetting
class is used for a multi-valued setting represented by a popup menu.
Definition
class MenuSetting : public Setting
Member Functions
MenuSetting::SetMenuItemString |
Sets the name of a single menu item. |
MenuSetting::GetMenuSelection |
Returns the menu selection for the setting. |
Constructor
MenuSetting(Type identifier, const char *title, int32 selection, int32 itemCount);
Parameters
identifier |
The setting's unique identifier. |
title |
The title of the setting. |
selection |
The initial selection for the setting. |
itemCount |
The number of items that will appear in the menu. |
Description
The MenuSetting
class represents a setting that displays a popup menu and has an integer value in the range [0, n − 1], where n is the number of menu items specified by the itemCount
parameter.After a
MenuSetting
is created, the MenuSetting::SetMenuItemString
function should be called for each menu item to specify its text.
Base Classes
Setting |
A MenuSetting is a specific type of setting.
|