use it this way:

    MENUCOLOR = [134,179,212]
    menu = in_ctxt.Source
    oItem = menu.AddItem( "XXXXXX", c.siMenuItemSection )
    oItem.SetBackgroundColor( *MENUCOLOR)
    oItem = menu.AddItem( "YYYYY", c.siMenuItemSection )
    oItem.SetBackgroundColor(*MENUCOLOR)
    zMenu = menu.AddSubMenu( "ZZZZZZ" )
    aMenu = zMenu.AddSubMenu( "AAAAAAA" )
    oItem = aMenu.AddItem( " AAAAAAA ", c.siMenuItemSection )
    oItem.SetBackgroundColor(*MENUCOLOR)

On Thu, Sep 27, 2012 at 4:56 PM, Alan Fregtman <[email protected]>wrote:

> Hey guys,
>
> We're trying to set some background colors for (custom) menu items over
> here, and it's not working. The menuitem gets declared fine and no errors
> appear, but the color won't change.
>
> Is it broken or is there a trick to it I'm not seeing? Just curious.
> Cheers,
>
>    -- Alan
>
>


-- 
---------------------------------------
Vladimir Jankijevic
Technical Direction

Elefant Studios AG
Lessingstrasse 15
CH-8002 Zürich

+41 44 500 48 20

www.elefantstudios.ch
---------------------------------------

Reply via email to