FLTK logo

[fltk.general] Problem with redraw() / draw()

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Problem with redraw() / draw() geert karman Aug 12, 2022  
  Hello,

I'm experiencing a problem when trying to redraw a widget. In the attached code I have tried to simplify the issue as much as I could.

When I push the red button, both scroll widgets move to the correct position and are redrawn accordingly. However, when I try to move the left scroll by using the right scroll it doesn't work. In fact, as the printed output indicates, the left scroll is moved, but not redrawn (i.e. Scroll_C::draw() is not called). 

How can I make the scroll method work? The only difference I see between  the two methods seems to be the calling stack when the Scroll::move() functions are called. Maybe it's some C++ issue?

Many thanks for any help.


--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/4b3b9484-8414-43ec-a8e7-e5347b04dbddn%40googlegroups.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.