Command Enum Macro
define_enum_command
Description: |
Macro |
Identifier |
Displayed Name |
Function Identifier |
Group* |
Enum Item Macro |
Enum Value |
Button Text |
|
Example using all options: |
define_enum_command( |
cmdSetLedColor, |
"Set LED Color", |
SetLedColor, |
19, |
define_enum_item( |
0, |
"Green") |
\ |
define_enum_item( |
1, |
"Red") |
\ |
||||||
define_enum_item( |
-25, |
"Blue") |
\ |
||||||
define_enum_item( |
3, |
"Yellow") |
\ |
||||||
define_enum_item( |
23, |
"White") |
) |
*optional argument. If Group is omitted the Group-Number will default to 0.
The unique message id is derived from the row number, in source file where the macro is used.
Copy to your project:
define_enum_command(Identifier, "DisplayedName", CommandFunction, optional_GroupNr,\
define_enum_item(0, "ButtonText_0") \
define_enum_item(1, "ButtonText_1") \
define_enum_item(2, "ButtonText_2") );
define_enum_command_id
Description: |
Macro |
Identifier |
Displayed Name |
Function Identifier |
Id |
Sub Id |
Group* |
Enum Item Macro |
Enum Value |
Button Text |
|
Example using all options: |
define_enum_command_id( |
cmdSetLedColor, |
"Set LED Color", |
SetLedColor, |
34, |
2, |
19, |
define_enum_item( |
0, |
"Green") |
\ |
define_enum_item( |
1, |
"Red") |
\ |
||||||||
define_enum_item( |
-25, |
"Blue") |
\ |
||||||||
define_enum_item( |
3, |
"Yellow") |
\ |
||||||||
define_enum_item( |
23, |
"White") |
) |
*optional argument. If Group is omitted the Group-Number will default to 0.
Copy to your project:
define_enum_command_id(Identifier, "DisplayedName", CommandFunction, Id, SubId, optional_GroupNr,\
define_enum_item(0, "ButtonText_0") \
define_enum_item(1, "ButtonText_1") \
define_enum_item(2, "ButtonText_2") );