Page 1 of 1

Popup menu on buttonbar shifted down [Fixed]

PostPosted: Sun Jun 21, 2015 11:05 am
by Enrico Maria Giordano
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: Select all  Expand view
#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

Re: Popup menu on buttonbar shifted down

PostPosted: Sun Jun 21, 2015 5:53 pm
by Antonio Linares
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 :-)

Re: Popup menu on buttonbar shifted down

PostPosted: Sun Jun 21, 2015 6:19 pm
by cnavarro
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: Select all  Expand view
#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

Re: Popup menu on buttonbar shifted down

PostPosted: Tue Jun 23, 2015 10:31 am
by Enrico Maria Giordano
Any news? :-)

EMG

Re: Popup menu on buttonbar shifted down

PostPosted: Tue Jun 23, 2015 10:53 am
by Antonio Linares
Enrico,

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

Re: Popup menu on buttonbar shifted down

PostPosted: Tue Jun 23, 2015 10:58 am
by Enrico Maria Giordano
Antonio,

thank you! :-)

EMG

Re: Popup menu on buttonbar shifted down

PostPosted: Tue Jun 23, 2015 1:05 pm
by Antonio Linares
Already sent! :-)