FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos Popup menu on buttonbar shifted down [Fixed]
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Popup menu on buttonbar shifted down [Fixed]
Posted: Sun Jun 21, 2015 11:05 AM
Here it is a sample. The items of the popup menu on the buttonbar are shifted down if compared with the same menu on menubar or on click on the window.

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


FUNCTION MAIN()

    LOCAL oWnd, oMen

    MENU oMen 2007
        MENUITEM "Test"

        MENU
            MENUITEM "Test 1"
            MENUITEM "Test 2"
            MENUITEM "Test 3"
        ENDMENU
    ENDMENU

    DEFINE WINDOW oWnd;
           MENU oMen;
           VSCROLL

    DEFINE BUTTONBAR OF oWnd 2007

    DEFINE BUTTON;
           OF oWnd:oBar;
           MENU POPUPMENU2()

    ACTIVATE WINDOW oWnd;
             ON CLICK POPUPMENU( oWnd, nRow, nCol )

    RETURN NIL


STATIC FUNCTION POPUPMENU( oWnd, nRow, nCol )

    LOCAL oMen

    MENU oMen 2007 POPUP
        MENUITEM "Test 1"
        MENUITEM "Test 2"
        MENUITEM "Test 3"
    ENDMENU

    ACTIVATE MENU oMen AT nRow, nCol OF oWnd

    RETURN NIL


STATIC FUNCTION POPUPMENU2()

    LOCAL oMen

    MENU oMen 2007 POPUP
        MENUITEM "Test 1"
        MENUITEM "Test 2"
        MENUITEM "Test 3"
    ENDMENU

    RETURN oMen


EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Popup menu on buttonbar shifted down
Posted: Sun Jun 21, 2015 05:53 PM

Enrico,

Confirmed. These are side effects of the recent changes on the menus.

We are working to solve it asap

many thanks for your feedback :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Popup menu on buttonbar shifted down
Posted: Sun Jun 21, 2015 06:19 PM
Enrico Maria Giordano wrote:Here it is a sample. The items of the popup menu on the buttonbar are shifted down if compared with the same menu on menubar or on click on the window.

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


FUNCTION MAIN()

    LOCAL oWnd, oMen

    MENU oMen 2007
        MENUITEM "Test"

        MENU
            MENUITEM "Test 1"
            MENUITEM "Test 2"
            MENUITEM "Test 3"
        ENDMENU
    ENDMENU

    DEFINE WINDOW oWnd;
           MENU oMen;
           VSCROLL

    DEFINE BUTTONBAR OF oWnd 2007

    DEFINE BUTTON;
           OF oWnd:oBar;
           MENU POPUPMENU2()

    ACTIVATE WINDOW oWnd;
             ON CLICK POPUPMENU( oWnd, nRow, nCol )

    RETURN NIL


STATIC FUNCTION POPUPMENU( oWnd, nRow, nCol )

    LOCAL oMen

    MENU oMen 2007 POPUP
        MENUITEM "Test 1"
        MENUITEM "Test 2"
        MENUITEM "Test 3"
    ENDMENU

    ACTIVATE MENU oMen AT nRow, nCol OF oWnd

    RETURN NIL


STATIC FUNCTION POPUPMENU2()

    LOCAL oMen

    MENU oMen 2007 POPUP
        MENUITEM "Test 1"
        MENUITEM "Test 2"
        MENUITEM "Test 3"
    ENDMENU

    RETURN oMen


EMG


Solved
Thanks
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: Popup menu on buttonbar shifted down
Posted: Tue Jun 23, 2015 10:31 AM

Any news? :-)

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Popup menu on buttonbar shifted down
Posted: Tue Jun 23, 2015 10:53 AM

Enrico,

I can email you the most recent libs so you can test it now :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Popup menu on buttonbar shifted down
Posted: Tue Jun 23, 2015 10:58 AM

Antonio,

thank you! :-)

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Popup menu on buttonbar shifted down
Posted: Tue Jun 23, 2015 01:05 PM

Already sent! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion