TWindow help bug

Post Reply
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

TWindow help bug

Post by Enrico Maria Giordano »

In the following sample the F1 key is now disabled:

Code: Select all | Expand

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oWnd

    DEFINE WINDOW oWnd

    ACTIVATE WINDOW oWnd

    RETURN NIL


This is the reason:

Code: Select all | Expand

      // ::HelpTopic()  // as WM_HELP is now supported by controls


EMG
User avatar
Antonio Linares
Site Admin
Posts: 42516
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 42516
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Post 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.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 8753
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Post by Enrico Maria Giordano »

Ok, take all the time you need. No problem for me.

EMG
Post Reply