Class IMenuColors

3DS Max Plug-In SDK

Class IMenuColors

See Also: Class Color

class IMenuColors

Description:

This class is available in release 4.0 and later only.

This class represents the container for a menu’s color settings and is used internally. Methods that are marked as internal should not be used.

 

Data Members:

public:

Color mTitleBarBackgroundColor;

The title bar background color.

Color mTitleBarTextColor;

The title bar text color.

Color mItemBackgroundColor;

The item background color.

Color mItemTextColor;

The item text color

Color mLastExecutedItemTextColor;

The last executed item text color.

Color mHighlightedItemBackgroundColor;

The highlighted item background color.

Color mHighlightedItemTextColor;

The highlighted item text color.

Color mBorderColor;

The border color.

Color mDisabledShadowColor;

The disabled shadow color.

Color mDisabledHighlightColor;

The disabled highlight color.

Methods:

public:

Prototype:

MenuColors();

Remarks:

This method is used internally.

Constructor.

Default Implementation:

{ ResetDefaults(); }

Prototype:

void ResetDefaults();

Remarks:

This method is used internally.

This method resets the menu colors to their defaults.

Default Implementation:

{

 mTitleBarBackgroundColor = Color(.0f, .0f, .0f);

mTitleBarTextColor = Color(.75f, .75f, .75f);

mItemBackgroundColor = Color(.75f, .75f, .75f);

mItemTextColor = Color(.0f, .0f, .0f);

mLastExecutedItemTextColor = Color(.95f, .85f, .0f);

mHighlightedItemBackgroundColor = Color(.95f, .85f, .0f);

mHighlightedItemTextColor = Color(.0f, .0f, .0f);

mBorderColor = Color(.0f, .0f, .0f);

mDisabledShadowColor = Color(.5f, .5f, .5f);

mDisabledHighlightColor = Color(1.0f, 1.0f, 1.0f);

}