FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour clipboard
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
clipboard
Posted: Tue Apr 12, 2011 02:20 PM

How copy a field of a record on clipboard and show which string I have on clipboard ?

Best Regards, Saludos



Falconi Silvio
Posts: 422
Joined: Mon Aug 17, 2009 12:18 PM
Re: clipboard
Posted: Tue Apr 12, 2011 02:23 PM

See samples\testclip.prg

Saludos,



Eduardo
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: clipboard
Posted: Tue Apr 12, 2011 02:39 PM

THANKS

Best Regards, Saludos



Falconi Silvio
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: clipboard
Posted: Wed Apr 13, 2011 03:42 AM

How do you get a ctrl c and ctrl v copy?

Thank you

Harvey
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: clipboard
Posted: Wed Apr 13, 2011 02:34 PM

>How do you get a ctrl c and ctrl v copy?

They work for me.

Can you provide an small sample showing the problem?

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: clipboard
Posted: Wed Apr 13, 2011 03:33 PM

mine drops the right number. 123456 pastes as 12345.

Thank you

Harvey
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: clipboard
Posted: Wed Apr 13, 2011 03:35 PM

if you are using resources , add this to your resource

ES_AUTOHSCROLL

Hth

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 598
Joined: Tue Apr 15, 2008 04:51 PM
Re: clipboard
Posted: Thu Apr 14, 2011 02:28 AM

Thanks I'll give it a try.

Thank you

Harvey
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
Re: clipboard
Posted: Thu Apr 14, 2011 07:46 AM

it is simply

DEFINE CLIPBOARD oClp OF oApp():oDlg

MENU oMenu POPUP 2007
....

MENUITEM "Copia il codice utente in memoria";
RESOURCE "SM_CLIP1";
ACTION oClp:SetText( (cDBF)->CLUSUARIO )

  MENUITEM "Copia la password in memoria"  ;
   RESOURCE "SM_CLIP2";
  ACTION oClp:SetText( (cDBF)->CLCLAVE )

  MENUITEM "Vedere la stringa in memoria"  ;
   RESOURCE "SM_CLIP3";
  ACTION  GetSomeText(oClp)

  SEPARATOR

ENDMENU
ACTIVATE POPUP oMenu

Best Regards, Saludos



Falconi Silvio
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: clipboard
Posted: Thu Apr 14, 2011 11:33 AM

Harvey,

>mine drops the right number. 123456 pastes as 12345.

If your field length is 6 (for the above example) the problem may be an artifact caused by the way Clipper handles the cursor (which was carried over to (x)Harbour). The cursor will be after the 5 when the entire field is full, rather than after the 6 as one might expect.

Richard's suggestion may solve it.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion