TMenuItem height [Fixed]

Re: TMenuItem height

Postby Enrico Maria Giordano » Sun May 07, 2017 10:22 am

If we cannot have intermediate values, 4 is better.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 6655
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: TMenuItem height

Postby cnavarro » Sun May 07, 2017 5:50 pm

Please, if you changed Int with round, leave INT, and try
Thanks for your test
I'm outside these days
Muchas gracias. Many thanks.
Saludos,Regards

Cristobal Navarro - Harbour (r1601050904) - xHarbour (Build 20150603) - VS 2015/17 - FWH 17.12

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
User avatar
cnavarro
 
Posts: 3883
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Re: TMenuItem height

Postby cnavarro » Mon May 08, 2017 10:03 pm

Enrico
I can not find the difference of 5 between the versions
I use GetSysMetrics as a reference
I'm still looking for
Muchas gracias. Many thanks.
Saludos,Regards

Cristobal Navarro - Harbour (r1601050904) - xHarbour (Build 20150603) - VS 2015/17 - FWH 17.12

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
User avatar
cnavarro
 
Posts: 3883
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Re: TMenuItem height

Postby Enrico Maria Giordano » Sat May 20, 2017 6:05 pm

The problem has not been fixed in FWH 17.05. :-(

EMG
User avatar
Enrico Maria Giordano
 
Posts: 6655
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: TMenuItem height

Postby cnavarro » Sat May 20, 2017 6:47 pm

Enrico
Attach or send me an image with the previous height and the current height. I do not see the difference well
Thank you
Muchas gracias. Many thanks.
Saludos,Regards

Cristobal Navarro - Harbour (r1601050904) - xHarbour (Build 20150603) - VS 2015/17 - FWH 17.12

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
User avatar
cnavarro
 
Posts: 3883
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: TMenuItem height

Postby Enrico Maria Giordano » Sat May 20, 2017 7:47 pm

The fix is

Code: Select all  Expand view
        ChgMenuMea( pMitStruct, Round( nWText * nFw, 0 ), ;
               if( oItem:lSeparator, Int( nHItem * GetnHeightItem() ),;
                Max( Int( nHItem * GetnHeightItem() * if( !lHFont, 1.5, 1 ) ) + 5, GetSysMetrics( 15 ) ) ) )


Please note + 5.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 6655
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: TMenuItem height

Postby cnavarro » Sat May 20, 2017 8:26 pm

Enrico, yes, I know it
But I have not found why it has changed by 5 pixels the height
Muchas gracias. Many thanks.
Saludos,Regards

Cristobal Navarro - Harbour (r1601050904) - xHarbour (Build 20150603) - VS 2015/17 - FWH 17.12

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
User avatar
cnavarro
 
Posts: 3883
Joined: Wed Feb 15, 2012 8:25 pm
Location: España


Re: TMenuItem height

Postby cnavarro » Mon Jun 05, 2017 11:01 am

Try

MENU oMenu HEIGHT 2.075 and comment
Muchas gracias. Many thanks.
Saludos,Regards

Cristobal Navarro - Harbour (r1601050904) - xHarbour (Build 20150603) - VS 2015/17 - FWH 17.12

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
User avatar
cnavarro
 
Posts: 3883
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: TMenuItem height

Postby Enrico Maria Giordano » Mon Jun 05, 2017 11:19 am

Height 2 seems to be fine:

Code: Select all  Expand view
MENU oMenu HEIGHT 2


EMG
User avatar
Enrico Maria Giordano
 
Posts: 6655
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: TMenuItem height

Postby cnavarro » Mon Jun 05, 2017 11:24 am

Not with 2.075 ?
Muchas gracias. Many thanks.
Saludos,Regards

Cristobal Navarro - Harbour (r1601050904) - xHarbour (Build 20150603) - VS 2015/17 - FWH 17.12

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
User avatar
cnavarro
 
Posts: 3883
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: TMenuItem height

Postby Enrico Maria Giordano » Mon Jun 05, 2017 11:31 am

Yes, you are right, 2 or 2.075 it's the same, the height doesn't change.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 6655
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: TMenuItem height

Postby Enrico Maria Giordano » Tue Jun 27, 2017 9:59 am

In the new FWH release this bug is still there.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 6655
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

PreviousNext

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

Who is online

Users browsing this forum: No registered users and 1 guest