using Cmd-C and Cmd-V in get

Post Reply
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

using Cmd-C and Cmd-V in get

Post by plantenkennis »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: using Cmd-C and Cmd-V in get

Post by Antonio Linares »

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
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: using Cmd-C and Cmd-V in get

Post by plantenkennis »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: using Cmd-C and Cmd-V in get

Post by Antonio Linares »

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
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: using Cmd-C and Cmd-V in get

Post by plantenkennis »

Hello Antonio,

Thanks!

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

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: using Cmd-C and Cmd-V in get

Post by Antonio Linares »

René,

Hotkeys must be defined in the menu.

Please add this code to your menu:

Code: Select all

      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
User avatar
mastintin
Posts: 1502
Joined: Thu May 27, 2010 2:06 pm

Re: using Cmd-C and Cmd-V in get

Post by mastintin »

Antonio, por favor , revisa el repositorio .
Un Saludo.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: using Cmd-C and Cmd-V in get

Post by Antonio Linares »

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
User avatar
plantenkennis
Posts: 151
Joined: Wed Nov 25, 2015 7:13 pm
Location: the Netherlands
Contact:

Re: using Cmd-C and Cmd-V in get

Post by plantenkennis »

Hello Antonio and Manuel,

Thank you for this. IT works perfect.
Kind regards,

René Koot
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: using Cmd-C and Cmd-V in get

Post by Antonio Linares »

very good :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply