copy and paste a control

copy and paste a control

Postby MdaSolution » 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
User avatar
MdaSolution
 
Posts: 215
Joined: Tue Jan 05, 2010 2:33 pm

Re: copy and paste a control

Postby sambomb » Thu Jul 29, 2010 4:57 pm

Maybe you need this:
Code: Select all  Expand view

   oClip := TClipBoard():New()
   oClip:SetText("It will be paste when you use CTRL+V")
 
Email: SamirSSabreu@gmail.com
MSN: SamirAbreu@hotmail.com
Skype: SamirAbreu
xHarbour 1.1.0 + FwXh 8.02
xHarbour 1.2.1 + Fwhh 10.6
User avatar
sambomb
 
Posts: 155
Joined: Mon Oct 13, 2008 11:26 am
Location: Itaocara - RJ - Brasil

Re: copy and paste a control

Postby MdaSolution » Fri Jul 30, 2010 5:27 pm

NO
I not want copy a text but a control ( button , say, object ...)
User avatar
MdaSolution
 
Posts: 215
Joined: Tue Jan 05, 2010 2:33 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 1 guest