CopyToClipboard

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

CopyToClipboard

Post by luisvasquezcl »

Hi friends,
Exist the function CopyToClipboard() ???
Regards,
Luis Vasquez
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: CopyToClipboard

Post by Rathinagiri »

I don't think so.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Alex Gustow
Posts: 290
Joined: Thu Dec 04, 2008 1:05 pm
Location: Yekaterinburg, Russia
Contact:

Re: CopyToClipboard

Post 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
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: CopyToClipboard

Post by esgici »

luisvasquezcl wrote:Hi friends,
Exist the function CopyToClipboard() ???
Regards,
Luis Vasquez
Hi Luis

What is importance / needs for using clipboard ?

Regards

--

esgici
Viva INTERNATIONAL HMG :D
User avatar
gfilatov
Posts: 1060
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: CopyToClipboard

Post 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 :!:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: CopyToClipboard

Post 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
User avatar
luisvasquezcl
Posts: 1258
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Contact:

Re: CopyToClipboard

Post by luisvasquezcl »

Grigory
thank you very much for your solution, it worked perfectly.
Sincerely,
Luis Vasquez
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: CopyToClipboard

Post 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
User avatar
Rathinagiri
Posts: 5471
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: CopyToClipboard

Post by Rathinagiri »

Oh! It is nice. Thank you mol.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
Post Reply