OK - I think there is something wrong with fltk-1.3, and by extension
fltk3, in terms of handling windows placed at an (x,y) of (0,0).
This also affects windows that would have been created slightly
off-screen, which then get clipped to the screen boundary edges.
This, I think, is what is messing up fluid under win32, for both
fltk-1.3 and fltk3, though the bug is not in fluid, but in the fltk
core.
Consider the code sample below:
- Compiled with fltk-1.1 it shows a window such that the title bar is
placed at the top left edge of the screen; but the title bar is visible
and accessible.
- Compiled with fltk-1.3 it shows the window such that the window
*content* is placed at the top left of the screen; the title bar is
inaccessible.
I believe the fltk-1.3 behaviour is a regression and should be fixed.
I'm not sure where the change is coming from. This looks like something
we've changed in the handling of screen limits or something though, at a
guess. Anybody know?
A bit disappointing we never caught this before 1.3.0 though... I guess
we catch this in fltk-1.3.1 or so...
/* Where is a window positioned at (0,0) placed?
* fltk-1.1 and fltk-1.3 handle this differently...
* fltk-1.3 is probably wrong? */
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
static Fl_Double_Window *main_win=(Fl_Double_Window *)0;
static void cb_Quit(Fl_Button*, void*) {
main_win->hide();
}
int main(int argc, char **argv) {
main_win = new Fl_Double_Window(0, 0, 332, 331, "Test Window");
main_win->begin();
Fl_Button* o = new Fl_Button(220, 255, 80, 45, "Quit");
o->callback((Fl_Callback*)cb_Quit);
main_win->end();
main_win->show(argc, argv);
return Fl::run();
}
/* end of file */
SELEX Galileo Ltd
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-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev