To update a transparent label correctly, PicoGUI has to redraw the container behind it. The label widget sets a flag in the conainer indicating that it must be redrawn, but if you run pgSubUpdate on the label it never sees this flag in the container. Running pgSubUpdate on the container will solve this problem. If you'd rather not redraw the container, you can turn the label's PG_WP_TRANSPARENT flag off.
Quoting Marcus Smith <[EMAIL PROTECTED]>: > Hi, > > Does pgSubUpdate() require the parents pghandle or the actual widget you > > want to update? > Is a pgSubUpdate on a label attached to the toolbar the same as > pgUpdate() on the toolbar? > > I found a problem when modifying lcdclock.c. In sysIdle(), if > pgFlushRequests() and pgUpdate are taken out, > and replaced by pgSubUpdate(wBigClock) and pgSubUpdate(wSmallClock), the > > clock does not get updated properly > (looks like the old label text is not cleared before the new text is > rendered). If you place the wBigClock and wSmallClock > in a PG_WIDGET_BOX, then do a pgSubUpdate on the box, the clock widgets > > repaint correctly. > > Any ideas? > > Marcus Smith > > > > _______________________________________________ > Pgui-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/pgui-devel > -- Only you can prevent creeping featurism! _______________________________________________ Pgui-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/pgui-devel
