Updating menu items from separate thread

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

 



Hi!

I have a simple menu derived from cOsdMenu which displays selectable
cOsdItem's.

Now I want to update the text of the cOsdItem's from a separate thread,
which I do basically this way:

cOsdItem* item = Get(index);
if (item)
{
    item->SetText(text);
    Display();
}

But this doesn't seem to work very well. Sometimes only some of the
cOsdItems are correctly shown with the new text, sometimes parts of the
menu are completly invisible until I move the selection cursor over this
area.

Any suggestions? Maybe this isn't possible at all?

Regards,

Tobias


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux