CopyToClipboard

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
User avatar
luisvasquezcl
Posts: 1184
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 16 times
Been thanked: 18 times
Contact:

CopyToClipboard

Post by luisvasquezcl »

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

User avatar
Rathinagiri
Posts: 5324
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 200 times
Been thanked: 210 times
Contact:

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:

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: 4538
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 410 times
Been thanked: 118 times
Contact:

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: 765
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Has thanked: 31 times
Been thanked: 405 times
Contact:

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: 1184
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 16 times
Been thanked: 18 times
Contact:

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: 1184
Joined: Thu Jul 31, 2008 3:23 am
Location: Chile
Has thanked: 16 times
Been thanked: 18 times
Contact:

Post by luisvasquezcl »

Grigory
thank you very much for your solution, it worked perfectly.
Sincerely,
Luis Vasquez

User avatar
mol
Posts: 3409
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 268 times
Been thanked: 173 times
Contact:

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: 5324
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 200 times
Been thanked: 210 times
Contact:

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