Hi,
I have a problem with the new Fl_Scroll. It works very strange.. When you try
to go up the cursor jump to the middle of the bar!! strange behavior... FYI.
old Scroll bar didn't have that problem ..
try this code please :
#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Scroll.H>
#include <FL/Fl_Input.H>
int main(int argc, char** argv) {
int l;
Fl_Window window(200 + 5*75,400);
l = 0;
Fl_Scroll scroll(200,0,5 * 75,400);
scroll.begin();
int off = 2;
argc = 1;
for (long y=off; y< 0x10000 / 16; y++) {
int o = 0;
char bu[25];
char buf[16*6];
int i = 16 * y;
for (int x=0; x<16; x++) {
int l;
l = 1;
if (l < 1) l = 1;
o += l;
i++;
}
Fl_Input* b = new Fl_Input(200,(y-off)*25,60,25);
b = new Fl_Input(260,(y-off)*25,400,25);
b->textfont((Fl_Font)(FL_FREE_FONT));
scroll.end();
window.resizable(scroll);
window.end();
window.show(argc,argv);
return Fl::run();
}
Note: WINDOWS XP/ VC2005
Mariwan
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk