> (This didn't get answered on  fltk-dev, perhaps this is a better place
> to ask.)

Yes, a better place to ask this sort of question, for sure.

> I'd like  to know  if it's a  bug that  the attached program  needs to
> explicitly  call  redraw() in  the  callback.   It's  just a  scrolled
> vertical list of buttons that  delete themselves when clicked.  If the
> button callback  does not  call redraw() on  the ScrollGroup  then the
> image  of the bottom  button remains  even though  there is  no widget
> there any more.  Bug or feature?

Hmm. Not sure. I guess I'd hazard "feature" rather than bug, but I guess
it is a close call.

This looks like the sort of thing (deleting a widget in its own
callback) that requires the use of ::delete_widget(...) in fltk-1.x, but
that should not be necessary in fltk-2.

I guess an STR would not go amiss for this. In the meantime, the redraw
seems to have the desired effect, so at least the workaround is easy!





SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to