FLTK logo

[fltk.general] Re: 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 ]

Re: Problem with redraw() / draw() "lifeatt... Aug 13, 2022  
  Trying your program on Linux / gcc / FLTK 1.4, I get the same behavior you describe.

As far as I can tell, the issue is tied to calling move_to() from inside the Scroll_B::draw() function. I don't understand _why_ it's a problem.  Every change
I tried to force Scroll_C to be redrawn failed.

I attach my modified version of ScrollB which provides the behavior I think you want.  I moved the invocation of move_to() outside the Scroll_B::draw()
method, into a callback function for ScrollB's vertical scrollbar.
 
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.

--
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/63af4ed9-8149-4ca2-a68f-0a1b6308db80n%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'.