Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: OSD plugin
On Friday 30 August 2002 12:36, Maxime GUILBOT wrote:
> Andreas Schultz wrote:
> >Hi Maxime,
> >On Thursday 29 August 2002 22:17, Maxime GUILBOT wrote:
> >>Source available at http://m.guilbot.online.fr/osdemo ( osdemo is the
> >>name of the plugin for the moment)
> >I had a quick look at your code and it would appear as if you are using
> > the wrong approach.
> >In MainMenuAction() you return a object derived from cOsdMenu. Such an
> > object can (and has to) use the normal menu osd functions and should not
> > try to open it's own osd. Also it should IMHO not be derived from
> > cThread.
> First, thank you to have a look.
> I agree with you, but I return a object derived from cOsdMenu because I
> want to react with Process keys...
> First, I decided to derive the cPlayer class, I could access to the OSD,
> Process key, but the screen is black..
> Then, I try to return a cOsdMenu to MainMenuAction, I can process key,
> but I don't have access to the OSD, as there is the menu...
> How I can solve my problem ?
Can't you just use the normal Menu functions? You will have to derive your own
entry's from the cMenuItem object. By overloading the Display() method and
using Interface->SetBitmap() you can basicly display whatever you want.
> Another question, I would like my menu to be started by a color button,
> or back button in normal viewing mode, how to do that without modifying
> vdr source ?
You don't. That functionality is not present at the moment, but Klaus talked
about buidling some kind macro function for keys. I guess that will include
what you need. So, for the moment you have to go through the main menu or
Main Index |