turn off

turn off

Postby Natter » Sun Mar 16, 2008 11:32 am

Hi, all !

How to turn off the F1...F12 keys for dialogboxes ?
Natter
 
Posts: 1216
Joined: Mon May 14, 2007 9:49 am

Postby Antonio Linares » Sun Mar 16, 2008 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42094
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Natter » Sun Mar 16, 2008 9: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.
Natter
 
Posts: 1216
Joined: Mon May 14, 2007 9:49 am

Postby Antonio Linares » Sun Mar 16, 2008 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42094
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Natter » Sun Mar 16, 2008 10:40 pm

Well, I deleted string SetHelpFile()

Then I press F1 and get message "No Help file aviable"
Natter
 
Posts: 1216
Joined: Mon May 14, 2007 9:49 am

Postby Natter » Mon Mar 17, 2008 9:13 pm

How I can solution this problem ?
Natter
 
Posts: 1216
Joined: Mon May 14, 2007 9:49 am

Postby James Bott » Mon Mar 17, 2008 9:40 pm

User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Re: turn off

Postby cuatecatl82 » Sun Sep 08, 2013 3: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: Select all  Expand view
FUNCTION HelpIndex()
RETURN Nil


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

Code: Select all  Expand view
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
User avatar
cuatecatl82
 
Posts: 625
Joined: Wed Mar 14, 2007 6:49 pm
Location: San Cristobal de las Casas, Chiapas México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 80 guests