Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2009-01-12 Thread Fabien Costantini
[STR Closed w/Resolution] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current Fix Version: 1.3-current (r6624) Fixed in Subversion repository. Applied patch from sadysta, modified it to harmonize with existing win32 code, like global alloc code, wchar_t type use. Added a wchar.h inclu

Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2009-01-11 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current I've attached Sadysta's changes as a patch. (Sadysta.patch) I did not try it, I removed the commented out code, and fixed indenting. Link: htt

Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2009-01-11 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current--- Fl_win32.cxx.orig 2009-01-11 16:24:42.336344000 -0800 +++ Fl_win32.cxx

Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2009-01-11 Thread SA
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current This is what seems to work for me: // call this when you create a selection: void Fl::copy(const char *stuff, int len, int clipboard) { if (!s

Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2008-12-18 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current (I should preface the following with the disclaimer I'm not at all familiar with the WIN32 clipboard functions, or how it's all supposed to work.

Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2008-12-18 Thread Fabien Costantini
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current I'm not opposed to a temporary fix if it is commented as so in the code and if it explains its limits. But still, I would really appreciate first

Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2008-12-18 Thread Albrecht Schlosser
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current Yes, I can confirm this (having to type ctrl/v twice with another windows app.). Maybe we should really fix this _temporary_ with Greg's fix, un

Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2008-12-17 Thread Andreas Ekstrand
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current One odd thing about this is that when copying text from FLTK to e.g. Notepad, the paste doesn't work the first time, I have to press ctrl+v twice

Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2008-12-13 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current I looked to the older FLTK code, and the one thing that seemed different is that fl_i_own_selection[clipboard] was being set to 1, whether OpenCl

Re: [fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2008-12-13 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current I poked at this a bit. Seems the crux of it is Fl::paste()'s call to GetClipboardData() is returning NULL. Should be a simple matter of looking

[fltk.bugs] [HIGH] STR #2104: copy/paste not working under windows

2008-12-13 Thread Greg Ercolano
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW. [STR New] Link: http://www.fltk.org/str.php?L2104 Version: 1.3-current Can't copy/paste between fltk widgets under windows with 1.3.x-svn current. Works OK to copy text from other programs to FLTK and vice versa, bu