FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour turn off
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
turn off
Posted: Sun Mar 16, 2008 11:32 AM

Hi, all !

How to turn off the F1...F12 keys for dialogboxes ?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
turn off
Posted: Sun Mar 16, 2008 05:44 PM

keystrokes are routed to the controls not to the dialog.

So you may need to modify Class TWindow method KeyDown() not to process those keystrokes

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
turn off
Posted: Sun Mar 16, 2008 09:02 PM

I use My.CHM for help.

SetHelpFile('MY.chm')
SetKey( VK_F1, { | nKey | My_Hlp() } )

When I press F1 at the same time appear the window of MY.CHM and message "The file My.CHM is not a file of information Windows or it is damaged". What it ?

Excuse for my English.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
turn off
Posted: Sun Mar 16, 2008 09:35 PM

SetHelpFile() does not support CHM files yet.

So just use SetKey( VK_F1, { | nKey | My_Hlp() } )

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
turn off
Posted: Sun Mar 16, 2008 10:40 PM

Well, I deleted string SetHelpFile()

Then I press F1 and get message "No Help file aviable"

Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
turn off
Posted: Mon Mar 17, 2008 09:13 PM

How I can solution this problem ?

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
turn off
Posted: Mon Mar 17, 2008 09:40 PM
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 625
Joined: Wed Mar 14, 2007 06:49 PM
Re: turn off
Posted: Sun Sep 08, 2013 03:57 AM
Another option easier and without adding or modifying the file Help32.prg of Fivewin:

Add within our project the HelpIndex function that is called in the __HelpTopic() method of the TWindow class, since pressing the F1 key is invoked from here by calling this function:

Code (fw): Select all Collapse
FUNCTION HelpIndex()
RETURN Nil


Thus, we can call in an independent way to an action or function with the F1 key:

Code (fw): Select all Collapse
SETKEY( VK_F1, { || MSGInfo("Llamando a Ayuda","Mi Función") } )


He clarified that this only to call the help in a general way, because it does not detect that control or number of helpid invokes it ...

I hope will help them greetings..
Soluciones y Diseño de Software
Damos Soluciones...

I.S.C. Victor Daniel Cuatecatl Leon
Director y Diseñador de Proyectos

http://www.soldisoft.unlugar.com
http://www.sisa.unlugar.com
danyleon82@hotmail.com
www.facebook.com/victordaniel.cuatecatlleon

Continue the discussion