Page 1 of 1

TWindow help bug

PostPosted: Fri Mar 03, 2006 1:10 pm
by Enrico Maria Giordano
In the following sample the F1 key is now disabled:

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


FUNCTION MAIN()

    LOCAL oWnd

    DEFINE WINDOW oWnd

    ACTIVATE WINDOW oWnd

    RETURN NIL


This is the reason:

Code: Select all  Expand view
      // ::HelpTopic()  // as WM_HELP is now supported by controls


EMG

PostPosted: Fri Mar 03, 2006 2:15 pm
by Antonio Linares
Enrico,

That only happens if the window has no controls at all. Please test samples\tutor02.prg and you will see that ::HelpTopic() is properly called.

PostPosted: Fri Mar 03, 2006 2:27 pm
by Enrico Maria Giordano
Antonio Linares wrote:Enrico,

That only happens if the window has no controls at all. Please test samples\tutor02.prg and you will see that ::HelpTopic() is properly called.


Yes, I know. But previously it was possible to hit F1 for help even in an empty main window. Can't you reactivate it?

EMG

PostPosted: Fri Mar 03, 2006 2:31 pm
by Antonio Linares
Enrico,

This is a side effect caused by implementing "?" support on dialogboxes. We may fix it but we need to do some more research on it.

PostPosted: Fri Mar 03, 2006 2:38 pm
by Enrico Maria Giordano
Ok, take all the time you need. No problem for me.

EMG