Hi,
Normally vdr will use that function (cText2SkinDisplayMenu::SetItem) to set lines sequentially from 0 to the last one.
Instead of that I'm doing something like:
displayMenu->Clear(); displayMenu->SetItem(line3,3,false,false); displayMenu->SetItem(line4,4,false,false); displayMenu->SetItem(line5,5,false,false);
(i.e, I want to keep the 3 top lines free to fill later on)
This works fine with vdr standard skins, but with text2skin if I do the above line3 will show on line 0, line4 on line 1 and line5 on line 2. I had to change that to something like:
displayMenu->Clear(); displayMenu->SetItem("",0,false,false); displayMenu->SetItem("",1,false,false); displayMenu->SetItem("",2,false,false); displayMenu->SetItem(line3,3,false,false); displayMenu->SetItem(line4,4,false,false); displayMenu->SetItem(line5,5,false,false);
I think that's because cText2SkinDisplayMenu::SetItem does this when filling the lines:
if (mItems.size() <= (uint)Index { mItems.push_back(item); SetDirty; }
so it disregards completely Index.
Bye