Page 1 of 1

using Cmd-C and Cmd-V in get

Posted: Tue Nov 29, 2016 10:15 pm
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.

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

Posted: Wed Nov 30, 2016 9:49 am
by Antonio Linares
René,

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

To paste, press Cmd+V

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

Posted: Wed Nov 30, 2016 12:11 pm
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.

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

Posted: Wed Nov 30, 2016 1:36 pm
by Antonio Linares
René,

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

I am going to review it

thanks

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

Posted: Wed Nov 30, 2016 2:44 pm
by plantenkennis
Hello Antonio,

Thanks!

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

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

Posted: Thu Dec 01, 2016 1:04 pm
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

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

Posted: Fri Dec 02, 2016 5:37 pm
by mastintin
Antonio, por favor , revisa el repositorio .
Un Saludo.

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

Posted: Sat Dec 03, 2016 9:17 am
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.

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

Posted: Sun Dec 04, 2016 12:51 pm
by plantenkennis
Hello Antonio and Manuel,

Thank you for this. IT works perfect.

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

Posted: Sun Dec 04, 2016 7:36 pm
by Antonio Linares
very good :-)