On Thu, Oct 30, 2008 at 05:32:58PM -0300, Jorge Arellano Cid wrote:
On Thu, Oct 30, 2008 at 07:17:27PM +0000, Jeremy Henty wrote:
... if I write a FLTK2 app with a scrolled list of buttons that delete themselves when pressed then I *do* get redisplay problems: the deleted buttons don't disappear. And the fix is to tell the scroll to redraw itself.
Committed.
Good! I'm glad something useful came out of this.
Yes, the example program showed exactly what I was getting here. This looks like a bug in FLTK2 (AFAIU, the scroll group should take care of its background when an item is removed).
IIRC I've sometimes had to manually tell a widget to update/redraw itself and I thought this was a deliberate policy from the FLTK devs. I'll send them my example and ask. Regards, Jeremy Henty