|
|
What's the definition of win2_accountNo_callback, does it somehow involve spawning a thread or a networked call?
It's also better to use something like an FLTK timeout, since that for-loop might be optimized out of your binary when building with optimizations.
On Thursday, October 6, 2022 at 7:15:08 AM UTC+3 rogertunnicl...@gmail.com wrote:
I have some code as follows:-
void win2_showChart(Fl_Widget *w, void *data) { win2_accountNo_callback(win2,&xNull); for (int k;k<1000000;k++){;}
win2_tabs->hide(); win2_chart->show(); win2->redraw(); }
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 ?
Cheers Roger
--
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/0df4ae03-da0d-4762-9434-a3cfbab9d431n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |