Page 1 of 1
CopyToClipboard
Posted: Tue Dec 09, 2008 10:43 pm
by luisvasquezcl
Hi friends,
Exist the function CopyToClipboard() ???
Regards,
Luis Vasquez
Re: CopyToClipboard
Posted: Wed Dec 10, 2008 3:00 am
by Rathinagiri
I don't think so.
Re: CopyToClipboard
Posted: Wed Dec 10, 2008 4:28 am
by Alex Gustow
Hi, luisvasquezcl
I use HMG Extended - it has 3 functions for Windows Clipboard support:
CopyToClipboard(cText) - store cText in Windows clipboard
RetriveTextFromClipboard()->cText - retrieve text from Windows clipboard
CopyRtfToClipboard(cRtfText) - store cRTFText in Windows clipboard
Re: CopyToClipboard
Posted: Wed Dec 10, 2008 4:45 am
by esgici
luisvasquezcl wrote:Hi friends,
Exist the function CopyToClipboard() ???
Regards,
Luis Vasquez
Hi Luis
What is importance / needs for using clipboard ?
Regards
--
esgici
Re: CopyToClipboard
Posted: Wed Dec 10, 2008 8:42 am
by gfilatov
luisvasquezcl wrote:Hi friends,
Exist the function CopyToClipboard() ???
Hi Luis Vasquez,
Take a look for the Harbour compiler changelog below:
2007-11-21 19:59 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/hbgtcore.c
+ added emulation for clipboard in core GT code.
Now:
hb_gtInfo( GTI_CLIPBOARDDATA ) -> <cClipData>
and:
hb_gtInfo( GTI_CLIPBOARDDATA, <cNewClipData> )
is working in all GTs even if such functionality is not supported
by OS.
I hope that give you an idea

Re: CopyToClipboard
Posted: Wed Dec 10, 2008 11:58 am
by luisvasquezcl
Grigory:
Thanks, I'm going to try.
Esgici:
I'm doing a program that fills an excel spreadsheet but takes a long, so I want to try the example of Alex Gustow and see if it works faster than the way I am doing. Unfortunately the function is only CopyToClipboard Minigui extend, but I want to try the example with HMG official.
Regards
Luis Vasquez
Re: CopyToClipboard
Posted: Wed Dec 10, 2008 12:30 pm
by luisvasquezcl
Grigory
thank you very much for your solution, it worked perfectly.
Sincerely,
Luis Vasquez
Re: CopyToClipboard
Posted: Mon Jan 26, 2009 12:15 pm
by mol
I've searched, how to implement function CopyToClipboard, and I found this post.... but without complete implementation.
For all, I write my CopyToClipboard function
function CopyToClipboard
param cTekst
#define HB_GTI_CLIPBOARDDATA 15
hb_gtInfo( HB_GTI_CLIPBOARDDATA, cTekst )
return
Re: CopyToClipboard
Posted: Tue Jan 27, 2009 3:42 am
by Rathinagiri
Oh! It is nice. Thank you mol.