Hotkey under FiveWin ?

Hotkey under FiveWin ?

Postby Jimmy » Thu Aug 04, 2022 4:04 am

hi,

under HMG i can use this Syntax
Code: Select all  Expand view

   ON KEY CONTROL + N OF IPTVMAIN ACTION DoAppendNew()


under FiveWin i can use

Code: Select all  Expand view
  SETKEY( ASC( "N" ), { ||  DoAppendNew()  } )


but it is not limited to WINDOW

---

i saw Codeblock Slot "bKeyDown" but most contain VK_RETURN
i need to use CTRL too else Increment Search of XBROWSE will be activate

so how to use CTRL + "N" under FiveWin to call Function :?:
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Hotkey under FiveWin ?

Postby nageswaragunupudi » Thu Aug 04, 2022 3:45 pm

Code: Select all  Expand view
o:bKeyDown := { |k| If( k == ASC("N") .and. GetKeyState( VK_CONTROL ),  ;
                        ( youraction(), 0 ), nil ) }

//OR

o:bKeyChar := { |k| If( k == ASC("N") - 64, ( youraction(), 0 ), nil ) }
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10619
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Hotkey under FiveWin ?

Postby Jimmy » Thu Aug 04, 2022 11:44 pm

Aha
Thx for Answer
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1725
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 50 guests

cron