Popup menu on buttonbar shifted down [Fixed]

Popup menu on buttonbar shifted down [Fixed]

Postby Enrico Maria Giordano » 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: Select all  Expand view  RUN
#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
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Popup menu on buttonbar shifted down

Postby Antonio Linares » Sun Jun 21, 2015 5: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Popup menu on buttonbar shifted down

Postby cnavarro » Sun Jun 21, 2015 6: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: Select all  Expand view  RUN
#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
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Re: Popup menu on buttonbar shifted down

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


Re: Popup menu on buttonbar shifted down

Postby Antonio Linares » Tue Jun 23, 2015 1:05 pm

Already sent! :-)
regards, saludos

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


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 14 guests