MaxCustomControls::CommandSystem::CommandToolStripButton Class Reference


Detailed Description

ToolStripButton specialization of a command.

Inheritance diagram for MaxCustomControls::CommandSystem::CommandToolStripButton:
Inheritance graph
[legend]

List of all members.

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.

Constructor & Destructor Documentation

MaxCustomControls::CommandSystem::CommandToolStripButton::CommandToolStripButton ( ) [inline]

Constructs the button.


Member Function Documentation

void MaxCustomControls::CommandSystem::CommandToolStripButton::ExecuteCommand ( Object  sender,
EventArgs  e 
) [inline]

Executes the command.

This handler is hooked into the menu item's Click event.

Parameters:
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.

Parameters:
sender Source of the event.
e Data about the event.

Property Documentation

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.


MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton
MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton MaxCustomControls::CommandSystem::CommandToolStripButton