FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem in menu : height menuitem
Posts: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Problem in menu : height menuitem
Posted: Sat Nov 21, 2015 11:05 AM

Hello,

Since FWH 15.09 the height of a menuitem has increased. My customers are complaining about it because in menues with lots of menuitems, they need to scroll. If the height would be lower, more items can be shown with the customer having to scroll.

How can I change the height of a menuitem?

Thanks.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem in menu : height menuitem
Posted: Sat Nov 21, 2015 12:12 PM

Michel

Try this
In Menu.prg in function:
Function MenuMeasureItem (pStru, nLen, lSep, oItem, oMnu, nHt)

in return command:
Return ChgMenuMea (pStru, nWidth * NFW, nHeight * 2)

Modifies the value 2, as a percentage, for example 1.98

Please tell me the value that you get properly adjust the height of the items.

Thank you

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: 1467
Joined: Mon Oct 10, 2005 11:26 AM
Re: Problem in menu : height menuitem
Posted: Sat Nov 21, 2015 02:17 PM

Cristobal,

Thanks a lot for your quick respons.

I tried several values and 1.6 is just like it was in previous FWH versions.

Have a nice weekend.

Regards,

Michel D.
Genk (Belgium)


_____________________________________________________________________________________________

I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem in menu : height menuitem
Posted: Sat Nov 21, 2015 02:58 PM

Michel

I will study the reason for so much difference

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: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Problem in menu : height menuitem
Posted: Sun Nov 22, 2015 11:54 AM
Michel

I think the correct factor is

Code (fw): Select all Collapse
Round ( nHeight * 1.66, 0)


You can check it?
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: 858
Joined: Fri Oct 07, 2005 12:00 PM
Re: Problem in menu : height menuitem
Posted: Sun Nov 22, 2015 06:00 PM

Hi Navarro,
is there any possibility to have the new menu class Virtual Machine compatible ?
The menu title display problem still exist also with rev.5.

Thank you.

Best Regards,



Marco Turco

SOFTWARE XP LLP

Continue the discussion