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..