win2_accountNo_callback sets a new value for FL_Output,
however unless I put in the "timer" to "slow something down ??"
it will not display correctly. I thought that's what
win2->redraw was supposed to do ?
Hmm, you shouldn't have to slow anything down to get a widget to
update.
redraw() schedules that widget (and its children) to redraw when
you return
to the application loop, and redrawing is handled by that, to
ensure the
widgets are drawn in order (parents first, then children).
It looks like you're even telling the parent window to redraw,
which should
redraw everything in that window.
If it's not redrawing properly, possible causes are:
* Child widgets are created outside their parent's xywh
boundaries
* Child widgets are not parented properly, which can happen
if the groups aren't end()ed.
It would in this case help to see more of your code, esp. the
part where you
construct the widgets (win2, win2_tabs, win2_chart, etc), or if
you can replicate by
creating a small, self contained single file that is an easily
buildable application
so we can see what's going on.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.