FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Menu accelerators - changed behavior
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Menu accelerators - changed behavior
Posted: Thu Oct 25, 2007 06:33 PM
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?

#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
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Menu accelerators - changed behavior
Posted: Thu Oct 25, 2007 08:01 PM

Enrico,

We have not modified anything there.

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Menu accelerators - changed behavior
Posted: Thu Oct 25, 2007 08:15 PM

Enrico,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Menu accelerators - changed behavior
Posted: Thu Oct 25, 2007 08:33 PM

But in some earlier FWH version it worked differently... :?:

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Menu accelerators - changed behavior
Posted: Thu Oct 25, 2007 09:56 PM

Enrico,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Menu accelerators - changed behavior
Posted: Thu Oct 25, 2007 11:02 PM

Enrico,

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

But XP and Vista execute the action

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Menu accelerators - changed behavior
Posted: Fri Oct 26, 2007 10:07 AM

But I had W98 behavior under XP using some earlier FWH version.

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

EMG

Continue the discussion