Mailing List archive

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

[vdr] Plugin color problem



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?

Greetz,
Reinhard

(sorry for the wrong line breaks, but my mailer doesn't
 like long lines ;o))




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



Home | Main Index | Thread Index