FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour copy and paste a control
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
copy and paste a control
Posted: Wed Jul 28, 2010 11:07 PM

can I copy and paste a control, and How ?
I saw there is on Windows class Paste() and Copy() methods but I not Lnow How use them

One sample please thanks

@ 10,10 button obtn of oDlg

obtn:bRClicked:= {|| MenuButton(nRow,nCol,oGrp,obtn) } )
...

Function MenuButton(nRow,nCol,oGrp,obtn)
local oMenu
MENU oMenu POPUP 2007
MENUITEM "Copy"
MENUITEM "Paste"
ENDMENU
ACTIVATE MENU oMenu AT nRow, nCol OF obtn
RETURN NIL

FWH .. BC582.. xharbour
Posts: 389
Joined: Mon Oct 13, 2008 11:26 AM
Re: copy and paste a control
Posted: Thu Jul 29, 2010 04:57 PM
Maybe you need this:
Code (fw): Select all Collapse
   oClip := TClipBoard():New()
   oClip:SetText("It will be paste when you use CTRL+V")
Email: SamirSSabreu@gmail.com
xHarbour 1.2.3 + Fwhh 20.2
Posts: 401
Joined: Tue Jan 05, 2010 02:33 PM
Re: copy and paste a control
Posted: Fri Jul 30, 2010 05:27 PM

NO
I not want copy a text but a control ( button , say, object ...)

FWH .. BC582.. xharbour

Continue the discussion