Popup menu on buttonbar shifted down [Fixed]

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Popup menu on buttonbar shifted down [Fixed]

Post 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

#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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Popup menu on buttonbar shifted down

Post 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 :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Popup menu on buttonbar shifted down

Post 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

#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
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Popup menu on buttonbar shifted down

Post by Antonio Linares »

Enrico,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Popup menu on buttonbar shifted down

Post by Antonio Linares »

Already sent! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply