|
|
@ -1781,8 +1781,10 @@ void Fl_Window::show() { |
|
|
|
if (!fl_capture) BringWindowToTop(i->xid); |
|
|
|
if (!fl_capture) BringWindowToTop(i->xid); |
|
|
|
//ShowWindow(i->xid,fl_capture?SW_SHOWNOACTIVATE:SW_RESTORE);
|
|
|
|
//ShowWindow(i->xid,fl_capture?SW_SHOWNOACTIVATE:SW_RESTORE);
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#ifdef USE_PRINT_BUTTON |
|
|
|
void preparePrintFront(void); |
|
|
|
void preparePrintFront(void); |
|
|
|
preparePrintFront(); |
|
|
|
preparePrintFront(); |
|
|
|
|
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Fl_Window *Fl_Window::current_; |
|
|
|
Fl_Window *Fl_Window::current_; |
|
|
@ -1930,7 +1932,8 @@ Fl_Region XRectangleRegion(int x, int y, int w, int h) { |
|
|
|
return CreatePolygonRgn(pt, 4, ALTERNATE); |
|
|
|
return CreatePolygonRgn(pt, 4, ALTERNATE); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// temporary for testing purposes of the Fl_Printer class
|
|
|
|
#ifdef USE_PRINT_BUTTON |
|
|
|
|
|
|
|
// to test the Fl_Printer class creating a "Print front window" button in a separate window
|
|
|
|
// contains also preparePrintFront call above
|
|
|
|
// contains also preparePrintFront call above
|
|
|
|
#include <FL/Fl_Printer.H> |
|
|
|
#include <FL/Fl_Printer.H> |
|
|
|
#include <FL/Fl_Button.H> |
|
|
|
#include <FL/Fl_Button.H> |
|
|
@ -1958,10 +1961,11 @@ void printFront(Fl_Widget *o, void *data) |
|
|
|
printer.origin(w/2, h/2 ); |
|
|
|
printer.origin(w/2, h/2 ); |
|
|
|
printer.rotate(ROTATE); |
|
|
|
printer.rotate(ROTATE); |
|
|
|
printer.print_widget( win, - win->w()/2, - win->h()/2 ); |
|
|
|
printer.print_widget( win, - win->w()/2, - win->h()/2 ); |
|
|
|
|
|
|
|
//printer.print_window_part( win, 0,0, win->w(), win->h(), - win->w()/2, - win->h()/2 );
|
|
|
|
#else |
|
|
|
#else |
|
|
|
printer.print_widget( win ); |
|
|
|
printer.print_widget( win ); |
|
|
|
|
|
|
|
//printer.print_window_part( win, 0,0, win->w(), win->h() );
|
|
|
|
#endif |
|
|
|
#endif |
|
|
|
//printer.print_window_part( win, 0,0, win->w(), win->h(), - win->w()/2, - win->h()/2 );
|
|
|
|
|
|
|
|
printer.end_page(); |
|
|
|
printer.end_page(); |
|
|
|
printer.end_job(); |
|
|
|
printer.end_job(); |
|
|
|
o->window()->show(); |
|
|
|
o->window()->show(); |
|
|
@ -1978,6 +1982,8 @@ void preparePrintFront(void) |
|
|
|
w.end(); |
|
|
|
w.end(); |
|
|
|
w.show(); |
|
|
|
w.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif // USE_PRINT_BUTTON
|
|
|
|
|
|
|
|
|
|
|
|
#endif // FL_DOXYGEN
|
|
|
|
#endif // FL_DOXYGEN
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|