ToolStripButton specialization of a command.
Public Member Functions |
|
CommandToolStripButton () | |
Constructs the button. |
|
void | ExecuteCommand (Object sender, EventArgs e) |
Executes the command. |
|
virtual void | UpdateColors () |
Implements
CuiUpdatable interface - updates colors to those designated by
the application CUI system. |
|
void | UpdateEnabledStatus (object sender, EventArgs e) |
Force an update of the button enabled
status. |
|
Properties |
|
Command |
Command [get, set] |
The wrapped Command object. |
|
override bool |
Enabled [get, set] |
Overridden to call the internal
Command.IsValid method. |
MaxCustomControls::CommandSystem::CommandToolStripButton::CommandToolStripButton | ( | ) | [inline] |
Constructs the button.
void MaxCustomControls::CommandSystem::CommandToolStripButton::ExecuteCommand | ( | Object | sender, |
EventArgs | e | ||
) | [inline] |
Executes the command.
This handler is hooked into the menu item's Click event.
sender | The source of the event - "this" |
e | The arguments passed to handler - not used. |
virtual void MaxCustomControls::CommandSystem::CommandToolStripButton::UpdateColors | ( | ) | [inline, virtual] |
Implements CuiUpdatable interface - updates colors to those designated by the application CUI system.
Implements MaxCustomControls::CuiUpdatable.
void MaxCustomControls::CommandSystem::CommandToolStripButton::UpdateEnabledStatus | ( | object | sender, |
EventArgs | e | ||
) | [inline] |
Force an update of the button enabled status.
sender | Source of the event. |
e | Data about the event. |
Command
MaxCustomControls::CommandSystem::CommandToolStripButton::Command
[get, set] |
The wrapped Command object.
override bool
MaxCustomControls::CommandSystem::CommandToolStripButton::Enabled
[get, set] |
Overridden to call the internal Command.IsValid method.
The Enabled property is used to determine whether the menu item should be greyed out or not.