Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: Plugin color problem



Reinhard Walter Buchner wrote:
> 
> Hi All,
> 
> I'm afraid I'm stuck on a problem and need some help.
> As you know I am writing a plugin for motor diseqc
> control. Here is part of the code:
> 
> class ColoredOsdItem:public cOsdItem
> {
> public:
> ColoredOsdItem(const char *title,eDvbColor Color,eDvbColor
> ColorBack):cOsdItem(title){SetColor(Color,ColorBack);}
> };
> class SubMenuStarter:public cOsdItem
> {
> 
> removed code for clarity
> 
> public:
> int submenuindex;
> SubMenuStarter(const char *title,int _submenuindex,eDvbColor Color,eDvbColor
> ColorBack):cOsdItem(title),submenuindex(_submenuindex){SetColor(Color,ColorB
> ack);}
> Add(new SubMenuStarter(tr("Selected Motor Drive & Store
> Menu"),0,clrWhite,clrRed));
> Add(new SubMenuStarter(tr("Enable / Disable Software
> Limits"),1,clrWhite,clrGreen));
> Add(new SubMenuStarter(tr("Continious Movement
> Menu"),2,clrWhite,clrYellow));
> Add(new SubMenuStarter(tr("Move Motor In Small
> Incredements"),3,clrWhite,clrBlue));
> 
> I want the menuitems to have certain colors (corresponding to
> the colored buttons The first 2 lines (drive & limits) appear
> correctly. The rest appears in white writing and a transparent
> backround. Why?
> 
> The second problem is that I have no selection bar and obviously
> can`t navigate in the menu with the cursor buttons (colored buttons
> work) As soon as I comment out the calls for eDvbColor (& Color
> Back), and remove the colors in newSubMenuStarter, it works again,
> except that I don't have colored menus, obviously. The same goes
> for if a make a call to ColoredOsdItem. What am I doing wrong?

Please check your log file. I would assume that you are getting
"ERROR: too many different colors used in palette". The OSD can only
use 4 colors in the central text area.

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________


-- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index