> The resize method seems not work, both for changing the position or the size
> of the widget (I have tried with buttons, inputs, and some else). Getting
> the position of the widget before and after calling the resize method, the
> value changed, but in the next loop the value is the original again, and the
> widget don't change in the window at all.
>
> Could be any atributte that cause this, or is a bug of the 2.0 version? With
> 1.1.7 works fine.
>
> Thanks.
>
Perhaps you can show a small program to demonstrate the behaviour you describe?
That way someone can see if your program can be fixed to achieve your goal, or
if Fltk 2.0 needs to be fixed. Here is a demo which demonstrates use of the
resize method. It works fine for me using fltk-2.0.x-r5764.
#include <fltk/run.h>
#include <fltk/Window.h>
#include <fltk/Button.h>
using namespace fltk;
void cb(Widget *w,void *){
w->resize(100,10,190,35);
}
int main(void){
Window *window = new Window(320,65);
Button b1(0,0,320,65,"Resize me");
b1.callback(cb);
window->add(b1);
window->end();
window->show();
return run();
}
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk