> Its windows operating system, same thing happens on versions 7, 2000
> and xp
>
> The shrink effect i described is as follows >
>
> window pops up as required, w295, h174
>
> if i try to drag the window, on release the bottom right x & y
> coordinates shrink upwards so that the window has size 180 * 111 or
> thereabouts, the window has also shrank to cover part of the
> widgets it contains, ie and output box and a button, (which are non
> resizable so maybe thats why they are covered..)
>
> minimize the window and restore has same effect
I tried this (on Vista) and can not reproduce the bug you are describing. Can
you try the attached sample file, and let us know if it works correctly.
The resizing behaviour you describe should not be happening.
------------------------------
// simple pop-up window test
// fltk-config --compile pop-tst.cxx
//
#include <stdlib.h>
#include <stdio.h>
/* Fltk headers */
#include <FL/Fl.H>
#include <FL/Fl_Double_Window.H>
#include <FL/Fl_Button.H>
Fl_Double_Window *main_win = NULL;
Fl_Double_Window *pop_win = NULL;
/*****************************************************************************/
static void show_bt_cb(Fl_Widget *, void *) {
pop_win->show();
}
/*****************************************************************************/
static void quit_bt_cb(Fl_Widget *, void *) {
pop_win->hide();
main_win->hide();
}
/*****************************************************************************/
static void diss_bt_cb(Fl_Widget *, void *) {
pop_win->hide();
}
/*****************************************************************************/
int main(int argc, char **argv)
{
main_win = new Fl_Double_Window(400, 400, "Main Window");
main_win->begin();
Fl_Button *show_bt = new Fl_Button(10, 10, 60, 30, "Popup");
show_bt->callback(show_bt_cb);
Fl_Button *quit_bt = new Fl_Button(330, 360, 60, 30, "Quit");
quit_bt->callback(quit_bt_cb);
main_win->end();
pop_win = new Fl_Double_Window(400, 400, "Pop Up Window");
pop_win->begin();
Fl_Button *dismiss_bt = new Fl_Button(10, 10, 60, 30, "Dismiss");
dismiss_bt->callback(diss_bt_cb);
pop_win->end();
main_win->show(argc, argv);
/* Now run the main event loop */
return Fl::run();
}
/* end of file */
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk