> Ian: I have added the new class Fl_Clipboard_Writer for Mac & MSWin to
> branch-1.3-Fl_Printer (after having updated it to the current 1.3).
> Thus, you may add your stuff therein as well.

OK - my progress has been slow, I got distracted playing about with
making the clipboard work in my test app, rather than modifying the XDND
logic in fltk itself.

I wanted to make a demo app that would work with a stock fltk build (and
I still think I can do that) but it turned out to be a more
"interesting" problem than I had initially expected, so I've still got a
long way to go...

> The API is very simple:
> Fl_Clipboard_Writer mywriter;
> mywriter.start(200, 100) // give the bounds of the clipboard surface
> .. any graphics request will go now to the clipboard ...
> and/or
> mywrite.copy_widget(mywidget); // copies the widget (OpenGL included)
> mywriter.stop(); // graphics requests stop going to the clipboard
> 
> Under Mac OS, a "Copy front window" item was added to the application
> menu. You may paste what you copied to Preview.
> Under MSWindow, a "Copy front window" button appears in a 
> small window.
> You may paste what you copied to Paint.


OK - I'll see if I can fit that into my demo... Assuming I get it
working at all!

Cheers,
-- 
Ian



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

Reply via email to