FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveMac / FivePhone (iPhone, iPad) using Cmd-C and Cmd-V in get
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
using Cmd-C and Cmd-V in get
Posted: Tue Nov 29, 2016 10:15 PM

Hello,

How can I use Cmd-C and Cmd-V in a oget. I can rightclick on a get and select copy/past, but I would like to use the keys for this.

Kind regards,



René Koot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: using Cmd-C and Cmd-V in get
Posted: Wed Nov 30, 2016 09:49 AM

René,

First select the text to copy with the mouse, then press Cmd+C to copy.

To paste, press Cmd+V

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
Re: using Cmd-C and Cmd-V in get
Posted: Wed Nov 30, 2016 12:11 PM

Hello Antonio,

At my system this does not seem to work. Check with the registration app I posted last week. I only get a beep when i select the value of the get.

Kind regards,



René Koot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: using Cmd-C and Cmd-V in get
Posted: Wed Nov 30, 2016 01:36 PM

René,

You are right. I did not tested it as I was in Windows

I am going to review it

thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
Re: using Cmd-C and Cmd-V in get
Posted: Wed Nov 30, 2016 02:44 PM

Hello Antonio,

Thanks!

Is there alo a possibilty to use other hotkey functions, like Cmd-P for a printing function.

Kind regards,



René Koot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: using Cmd-C and Cmd-V in get
Posted: Thu Dec 01, 2016 01:04 PM
René,

Hotkeys must be defined in the menu.

Please add this code to your menu:
Code (fw): Select all Collapse
      MENUITEM "Edit"
      MENU
         MENUITEM "Copy"  ACCELERATOR "c" ACTION AEval( oDlg:aControls, { | oCtrl | If( oCtrl:lFocused, oCtrl:Copy(),) } )
         MENUITEM "Paste" ACCELERATOR "v" ACTION AEval( oDlg:aControls, { | oCtrl | If( oCtrl:lFocused, oCtrl:Paste(),) } )
      ENDMENU

where oDlg is your currently used dialog. We are trying to find a way to automatically detect oDlg, so there is no need to keep
a reference to it

You could add another menuitem for Cmd+P
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1516
Joined: Thu May 27, 2010 02:06 PM
Re: using Cmd-C and Cmd-V in get
Posted: Fri Dec 02, 2016 05:37 PM

Antonio, por favor , revisa el repositorio .
Un Saludo.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: using Cmd-C and Cmd-V in get
Posted: Sat Dec 03, 2016 09:17 AM

Manuel,

Revisado y funcionando bien. Muchas gracias :-)

René, Mastintin (Manuel) has solved it in a simpler way. I have emailed you the modified libs.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 166
Joined: Wed Nov 25, 2015 07:13 PM
Re: using Cmd-C and Cmd-V in get
Posted: Sun Dec 04, 2016 12:51 PM

Hello Antonio and Manuel,

Thank you for this. IT works perfect.

Kind regards,



René Koot
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: using Cmd-C and Cmd-V in get
Posted: Sun Dec 04, 2016 07:36 PM

very good :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion