> > > void resume_resizing() { size_range(0, 0, 100000, 100000); }
> >
> > That works as you'd expect on OSX too - don't have an winXP box here
> > now for testing, but I guess it would be OK?
>
> It's not working on windows. Still the same problem
Really? That is a surprise...
I was just testing this version of Stan's example (attached below) on my
WinXP box, and it appears to be working perfectly well.
I wonder why your's doesn't work?
--------------------------------------------
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
#include <FL/Fl.H>
class Window : public Fl_Double_Window {
public:
Window(int w, int h, char const* label = 0)
: Fl_Double_Window(w, h, label)
{ resizable(this);}
void stop_resizing()
{ size_range(w(), h(), w(), h());}
void resume_resizing()
{
// size_range(0, 0, -1, -1);
// size_range(0, 0);
size_range(0, 0, 10000, 10000);
}
};
void resume(Fl_Widget*, void* v)
{ static_cast<Window*>(v)->resume_resizing(); }
void stop(Fl_Widget*, void* v)
{ static_cast<Window*>(v)->stop_resizing(); }
int main()
{
Window win(300, 300, "Testing");
Fl_Button* stop_btn = new Fl_Button(50, 50, 100, 20, "Stop");
Fl_Button* resume_btn = new Fl_Button(50, 120, 100, 20, "Resume");
win.end();
stop_btn->callback(stop, &win);
resume_btn->callback(resume, &win);
win.show();
return Fl::run();
}
/* end of file */
SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk