Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Re: Small OSD menu example?
On 04 Jun 2003 Klaus Schmidinger <Klaus.Schmidinger@cadsoft.de> wrote:
> Jan Ekholm wrote:
>> class MenuItem : public cOsdItem {...}
>>
>> MenuItem::MenuItem () {
>> if ( item_is_directory )
>> SetColor ( clrCyan, clrBackground );
>> else
>> SetColor ( clrWhite, clrBackground );
>>
>> SetText ( item_text );
>> }
>>
>> That however never really worked out, the first menu item was always
>> missing (blank) and the selection bar never was shown. All example of
>> SetColor() in the VDR sources seem to do the same, as does the MP3 plugin,
>> so I'm a bit confused. But I can live without colors, just have to postfix
>> each "dir" with a "/" and the "files" with something else to make it
>> visible to the user what is what.
>
> The central area of the OSD has only 2bpp, resulting in a maximum of 4 colors.
> Maybe you tried to use more than 4 colors...
AFAIK SetColor() also makes the menu item "special" and special
menu items cannot be selected (like channel group lines in the
channels list).
--
Stefan Huelswitt
huels@iname.com | http://home.pages.de/~nathan
--
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.
Home |
Main Index |
Thread Index