FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos Bug in TMenu [Fixed]
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TMenu [Fixed]
Posted: Fri Nov 18, 2016 12:01 PM
Occasionally, I get popup menus much higher than normal ones:

http://www.emagsoftware.it/public/menubug.png

EMG
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TMenu
Posted: Sun Nov 20, 2016 08:26 AM

Enrico,

We are checking it, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TMenu
Posted: Tue Nov 22, 2016 10:17 AM

I just also noticed that, in the normal conditions, the menu items are vertically closer than in the previous release. :-(

This is not the first time that menu changes its look. Can we finally have a stable one, please?

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TMenu
Posted: Tue Nov 22, 2016 10:35 AM

Please compare current menu items height with the one of other programs.

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TMenu
Posted: Tue Nov 22, 2016 11:49 AM

Enrico,

It is fixed and it will be included in next FWH version

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TMenu
Posted: Tue Nov 22, 2016 12:20 PM

Great! Can you send me the update libs, please?

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TMenu
Posted: Tue Nov 22, 2016 12:27 PM

already sent

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TMenu
Posted: Mon Nov 28, 2016 06:07 PM
Another TMenu bug. In the following sample, please open Test menu and you will see that the mdichild window title is missing from the last menu item.

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oWnd, oMenu

    MENU oMenu 2007
        MENUITEM "Test"

        MENU
            MENUITEM "Test"
            MENUITEM "Test"
            MENUITEM "Test"
        ENDMENU
    ENDMENU

    DEFINE WINDOW oWnd MDI;
           TITLE "MDI Test";
           MENU oMenu

    ACTIVATE WINDOW oWnd;
             ON INIT CREATECHILD( oWnd )

    RETURN NIL


STATIC FUNCTION CREATECHILD( oMdi )

    LOCAL oWnd, oMenu

    MENU oMenu 2007
        MENUITEM "Test"

        MENU
            MENUITEM "Test"
            MENUITEM "Test"
            MENUITEM "Test"
        ENDMENU
    ENDMENU

    DEFINE WINDOW oWnd MDICHILD OF oMdi;
           TITLE "MDI Child Test";
           MENU oMenu

    ACTIVATE WINDOW oWnd;
             VALID !GETKEYSTATE( VK_ESCAPE )

    RETURN NIL


EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TMenu
Posted: Tue Nov 29, 2016 04:26 PM
Enrico,

We are working to fix it. In the meantime try this:
Code (fw): Select all Collapse
STATIC FUNCTION CREATECHILD( oMdi )

    LOCAL oWnd, oMenu

    MENU oMenu 2007
        MENUITEM "Test"

        MENU
            MENUITEM "Test        "
            MENUITEM "Test"
            MENUITEM "Test"
        ENDMENU
    ENDMENU


Just increase the width of the first menuitem text
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TMenu
Posted: Tue Nov 29, 2016 05:44 PM

Doesn't work for me... :-(

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Bug in TMenu
Posted: Tue Nov 29, 2016 06:50 PM

Use a dot at the end:

MENUITEM "Test ."

or another character

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion