Mailing List archive

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

[vdr] Re: ProcessKey help



Well, the better way to explain it is by the exemple...
So I join a tiny vdr-test-plugin plugin which implement a Test menu in the
main menu
In this menu, you can find a cMenuEditChrItem,a cMenuEditStrItem, and a
SetHelp("Yep",NULL,NULL,NULL)
When you are on the first line(cMenuEditChrItem), Red/Green/Yellow/Blue
buttons does nothing (as nothing is coded for those keys)
When you are on the second line(cMenuEditStrItem), Red/Yellow/Blue buttons
does nothing, but green button do something like
"SetHelp(NULL,NULL,NULL,NULL)" that I've not coded anywhere!!!
So I'd just like to know if it is a "normal" issue that I have to deal with,
or did a put the finger on something??

Thanks for all


-----Message d'origine-----
De : vdr-bounce@linuxtv.org [mailto:vdr-bounce@linuxtv.org]De la part de
Klaus Schmidinger
Envoye : samedi 12 juin 2004 12:45
A : vdr@linuxtv.org
Objet : [vdr] Re: ProcessKey help


Maynard Cedric wrote:
>
> Thanks, i've already see this, but i'm still having a problem...
> When I'm on a cMenuEditStrItem line, and not editing it the green button
> clear the "SetHelp(A,B,C,D)"
> Is this normal issue???

Well, when you are "not on a cMenuEditStrItem line", what kind of line are
you on then? Does that item react on color keys in any specific way?
Maybe you should insert soem debug outputs to see when SetHelp() is called.

Klaus

> I use exactly the ProcessKey exemple code you give me (thanks again) and
let
> the "My Stuff" empty!!
>
> -----Message d'origine-----
> De : vdr-bounce@linuxtv.org [mailto:vdr-bounce@linuxtv.org]De la part de
> Klaus Schmidinger
> Envoye : jeudi 10 juin 2004 20:13
> A : vdr@linuxtv.org
> Objet : [vdr] Re: ProcessKey help
>
> Maynard Cedric wrote:
> >
> > Hi all,
> >
> > I'm still trying to make a plugin and I've now problem with the
ProcessKey
> > I've declare a cMenuEditStrItem and, as usual, the Red button is assign
to
> > "ABC/abc"
> > I've assign another function for the Red Button within my cOsdMenu page
> > (with the ProcessKey function) but, when I press the Red Button while
> > editing my cMenuEditStrItem to get caps, my plugin also launch the Red
> > button function that I've assigned with the ProcessKey of the
cOsdMenu...
> > I'm sure there is a way to prevent this (maybe an eOSState or something
> > else) but I was unable to find it...
>
> Only process the keypress if cOsdMenu::ProcessKey() returns osUnknown, as
in
>
> eOSState cMyMenu::ProcessKey(eKeys Key)
> {
>   eOSState state = cOsdMenu::ProcessKey(Key);
>
>   if (state == osUnknown) {
>      // my stuff
>      }
> }
>
> Klaus

Attachment: vdr-test-plugin.tar.gz
Description: Binary data


Home | Main Index | Thread Index