FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Another bug in menu
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Another bug in menu
Posted: Sat Dec 19, 2015 09:37 AM

I'm preparing a sample. Please delay the release of the new FWH build...

EMG

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Another bug in menu
Posted: Sat Dec 19, 2015 09:44 AM
Here it is:

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


FUNCTION MAIN()

    LOCAL oWnd, oMenu

    MENU oMenu 2007
        MENUITEM "Test&1" ACTION MSGINFO( "1" )
        MENUITEM "Test&2" ACTION MSGINFO( "2" )
        MENUITEM "Test&3" ACTION MSGINFO( "3" )
    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 "Changed&1" ACTION MSGINFO( "1" )
        MENUITEM "Changed&2" ACTION MSGINFO( "2" )
        MENUITEM "Changed&3" ACTION MSGINFO( "3" )
    ENDMENU

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

    ACTIVATE WINDOW oWnd;
             VALID !GETKEYSTATE( VK_ESCAPE );
             MAXIMIZED

    RETURN NIL


EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Another bug in menu
Posted: Sat Dec 19, 2015 09:46 AM

The bugs:

  1. the area to the right of the menu is not properly painted

  2. Pressing ALT-2 you will get 1 instead of 2

  3. Pressing ALT-1 and then ESC and ESC again the menu icon to the left vanishes

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Another bug in menu
Posted: Sat Dec 19, 2015 11:07 AM

Enrico, I'm watching your example
This bug also it appears with previous versions FWH 15.04
I tried it with version 13.12
You can check this?
Except that is to correctly paint the menubar

Anyway, obviously I will look how to fix it

Regards

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Another bug in menu
Posted: Sat Dec 19, 2015 11:22 AM
cnavarro wrote:Enrico, I'm watching your example
This bug also it appears with previous versions FWH 15.04
I tried it with version 13.12
You can check this?
Except that is to correctly paint the menubar

Anyway, obviously I will look how to fix it

Regards


Yes, bugs 2 and 3 are very old ones. Thank you for looking at them!

EMG
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Another bug in menu
Posted: Sat Dec 19, 2015 11:27 AM

Enrico, thanks for you feedback

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Another bug in menu
Posted: Sat Dec 19, 2015 11:50 AM
Enrico, bug 1 fixed

Menubar is painted correctly

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Another bug in menu
Posted: Sat Dec 19, 2015 11:53 AM

Cristobal,

great! :-)

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Another bug in menu
Posted: Fri Jan 01, 2016 11:58 AM
Enrico Maria Giordano wrote:Cristobal,

great! :-)

EMG


Enrico

I'm working in it
In the next version it is already included some improved in old BUGs ( before FWH 14.12 ) in menus with MDI windows, and also


viewtopic.php?f=6&t=31535&p=185453#p185453
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noci贸n del tiempo

El secreto de la felicidad no est谩 en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Another bug in menu
Posted: Fri Jan 01, 2016 12:09 PM

Thank you, Cristobal!

EMG

Continue the discussion