nitin wrote in fltk.development:
>  i want to print report using flrk there is any way print fltk wigets value  
> to printer.

First: Please post such questions to fltk.general. fltk.development is
reserved for development of FLTK itself.

Second: To answer your question, you should be more precise about what
you want to print. If it's e.g. the value of an Fl_Input widget, then
this is not a FLTK question, but simply done as every other printing
you'd do.

But if you mean to print an image of FLTK widgets, well, then it's
kind of difficult. There is no direct support for printing of widgets
in the FLTK library, but there is code that you can look at in fluid.
Look at fluid/fluid.cxx, in print_menu_cb() for Windows and in
print_cb for everything else. The Windows version uses standard
Windows printing ABI functions, whereas the other version uses a
postscript output (file or pipe to lp).

Look at Fl_Window_Type::read_image(int &ww, int &hh) in
fluid/Fl_Window_Type.cxx to see how to retrieve the image.

If you have further questions, please follow up in fltk.general.

Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to