FLTK logo

[fltk.general] How do I do this properly

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 ]

How do I do this properly roger tunnicliffe Oct 05, 2022  
  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/cd820422-ff4c-43d4-9caf-e7fc06e60daan%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'.