I try a simple fltk example program on HP Unix(HP-UX B.11.00):
///////////////////////////////////////////////////////////////
#include <stdlib.h>
#include <stdio.h>
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Button.H>
Fl_Window *window;
void showcb(Fl_Widget *, void *) {
window->resize(50,50,320,100);
}
void exitcb(Fl_Widget *, void *) {
exit(0);
}
int main(int argc, char ** argv) {
window = new Fl_Window(50,50,320,165);
Fl_Button *b1 = new Fl_Button(20, 20, 80, 25, "&Resize");
b1->callback(showcb,0);
Fl_Button *b3 = new Fl_Button(220,20, 80, 25, "E&xit");
b3->callback(exitcb,0);
window->end();
window->show(argc,argv);
return Fl::run();
}
//////////////////////////////////////////////////////////////
and I compile this code no problem, but when I run it, I click the button
"Resize", the problem no respond.
I can run the same program on Windows XP very well,just on HP Unix has this
problem.
I found that: if you resize the window's height bigger, no problem,if you
resize the window's height smaller, the window will no respond.
Why?
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk