set key not run on win 10 ?

set key not run on win 10 ?

Postby Silvio.Falconi » Thu Jul 08, 2021 8:38 pm

I have
SetKey( VK_F8, {||oApp():HidePanelLeft(oApp():oSplit)} )

and not run on win 10 why ?
on w7 run ok

do you Know alternative ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7033
Joined: Thu Oct 18, 2012 7:17 pm

Re: set key not run on win 10 ?

Postby James Bott » Fri Jul 09, 2021 12:21 am

This works fine for me under Win10:

Code: Select all  Expand view
#include "fivewin.ch"

Function Main()
   Local oWnd

   SETKEY( VK_F2, { ||  MsgInfo("Hello!" )}  )

   define window oWnd
   activate window oWnd

Return nil


Maybe you are doing your SET KEY before oApp is defined?

The other issue might be function keys with dual options. On my laptop you have to press the [fn][F2] to get the assignment above because there are other default actions for the button keys. Probably since it is a laptop.
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

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