MenuItem.SetBackgroundColor() not working?

2012-09-27 Thread Alan Fregtman
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

Re: MenuItem.SetBackgroundColor() not working?

2012-09-27 Thread Eric Turman
Are you using constants or a number value? On Thu, Sep 27, 2012 at 3:56 PM, Alan Fregtman alan.fregt...@gmail.comwrote: 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

Re: MenuItem.SetBackgroundColor() not working?

2012-09-27 Thread Alan Fregtman
Number. On Thu, Sep 27, 2012 at 5:00 PM, Eric Turman i.anima...@gmail.com wrote: Are you using constants or a number value? On Thu, Sep 27, 2012 at 3:56 PM, Alan Fregtman alan.fregt...@gmail.comwrote: Hey guys, We're trying to set some background colors for (custom) menu items over

Re: MenuItem.SetBackgroundColor() not working?

2012-09-27 Thread Alan Fregtman
Cool! Thanks. :) On Thu, Sep 27, 2012 at 5:04 PM, Vladimir Jankijevic vladi...@elefantstudios.ch wrote: use it this way: MENUCOLOR = [134,179,212] menu = in_ctxt.Source oItem = menu.AddItem( XX, c.siMenuItemSection ) oItem.SetBackgroundColor( *MENUCOLOR) oItem =

Re: MenuItem.SetBackgroundColor() not working?

2012-09-27 Thread Miquel Campos
Thanks Vladimir! and thanks Alan to ask my question ;)! Finally I found that .AddCommandItem and .AddItem is the same Class but only AddItem can add colors. I was trying to color the command menu but he just didnt work. but not errors. After found that, I tried without list unpack and it is

Re: MenuItem.SetBackgroundColor() not working?

2012-09-27 Thread Eric Turman
We have to use 4 ...since the siMenuItemSection constant started to error out on us. oItem = oMenu.AddItem( F I L E, 4 ) oItem.SetBackgroundColor(128,192,255) On Thu, Sep 27, 2012 at 4:37 PM, Miquel Campos miquel.cam...@gmail.comwrote: Thanks Vladimir! and thanks Alan to ask my