COptionMenuScheme
#include <vstcontrols.h>
class COptionMenuScheme;
Used to define the appearance (font color, background color...) of a popup-menu.
To define the scheme of a menu, use the appropriate setScheme
method
(see COptionMenu).
COptionMenuScheme ();
Creates an option popup-menu scheme.
~COptionMenuScheme ();
Destroys an option menu scheme object.
Returns the size of an item. Items can be :
-
kMenuTitle, pre-defined as "-T"
-
kMenuSeparator, pre-defined as "-"
-
kMenuDisable, pre-defined as "-G"
-
kMenuSubMenu "-M"
virtual void drawItem (const char* text, long itemId, long state,
CDrawContext* pContext, const
CRect& rect);
virtual void forget ();
Used to tell the scheme that one of the menu which uses it don't use it
anymore. When no menu use the scheme, it is deleted.
virtual void remember ();
Used to tell the scheme that it is used by a menu.
virtual long getNbReference ();
Returns the number of menus using this scheme.