Page 1 of 1

Menu accelerators - changed behavior

Posted: Thu Oct 25, 2007 6:33 pm
by Enrico Maria Giordano
In the following sample try to press ALT-T and then T. Previously it just moved the hilite bar cyclically through the two menuitem. Now it just activates the first one. Is it possible to go back to the previous behavior?

Code: Select all

#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oWnd, oMenu

    MENU oMenu
        MENUITEM "&Test"

        MENU
            MENUITEM "&Test1";
                     ACTION MSGINFO( "Test1" )
            MENUITEM "&Test2";
                     ACTION MSGINFO( "Test2" )
        ENDMENU
    ENDMENU

    DEFINE WINDOW oWnd;
           MENU oMenu

    ACTIVATE WINDOW oWnd

    RETURN NIL
EMG

Posted: Thu Oct 25, 2007 8:01 pm
by Antonio Linares
Enrico,

We have not modified anything there.

In fact those are default Windows behaviors, unless there is some kind of conflict.

Posted: Thu Oct 25, 2007 8:15 pm
by Antonio Linares
Enrico,

In Vista the first Alt+T opens the pulldown menu, then pressing T again fires the first menuitem action

Posted: Thu Oct 25, 2007 8:33 pm
by Enrico Maria Giordano
But in some earlier FWH version it worked differently... :?:

EMG

Posted: Thu Oct 25, 2007 9:56 pm
by Antonio Linares
Enrico,

With XP I get the same behavior. Going to try with Win98...

Posted: Thu Oct 25, 2007 11:02 pm
by Antonio Linares
Enrico,

Win98 behaves exactly as you describes, moving from one menuitem to another without firing the action

But XP and Vista execute the action

Posted: Fri Oct 26, 2007 10:07 am
by Enrico Maria Giordano
But I had W98 behavior under XP using some earlier FWH version.

But it's not so important, don't worry.

EMG