hi i'm trying redraw o refresh (Fl_Multiline_Output) widget values, but doesnt
work, when i press Enter to call the callback "txt_code_cb" to display the
messages on (Fl_Multiline_Output) "out_logs" only show the last message, i try
with out_logs->redraw() but doesn't work.
help please...!
thanks.
--------------------------------------------------------------
Fl_Window *my_window = (Fl_Window *)0;
Fl_Input *txt_code = (Fl_Input *)0;
Fl_Multiline_Output *out_logs =(Fl_Multiline_Output *)0;
void txt_code_cb(Fl_Widget* o, void*);
int CWinCode :: showWindowCode(const char *oldcode)
{
my_window = new Fl_Window(1024, 768, "Code Client");
my_window->fullscreen();
my_window->modal();
my_window->begin();
{
out_logs = new Fl_Multiline_Output(330, 300, 500, 100);
out_logs->textsize(30);
out_logs->box(FL_NO_BOX);
txt_code = new Fl_Input(700, 160, 300, 80, "");
txt_code->textsize(76);
txt_code->callback(txt_code_cb);
txt_code->when(FL_WHEN_ENTER_KEY);
}
my_window->end();
my_window->show();
return Fl::run();
}
void txt_code_cb( Fl_Widget *o, void* )
{
out_logs->value("Msn One .....");
//out_logs->redraw();
sleep(1);
out_logs->value("Msn Two .....");
sleep(1);
out_logs->value("Msn Three .....");
}
----------------------------------------------------------------
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk