Enrico,
yes, I saw it too, but that couldn't be a recent change.
Anyhow, its solved
many thanks for your feedback
Bug in Menu [Solved]
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Bug in Menu
Antonio,
EMG
That's why I said "in the far past".Antonio Linares wrote:Enrico,
yes, I saw it too, but that couldn't be a recent change.
You're welcome, my friend!Antonio Linares wrote:Anyhow, its solved
many thanks for your feedback
EMG
Re: Bug in Menu
I did report this behavior in May 2008 http://forums.fivetechsupport.com/viewt ... menu+ancho and, as suggested per Antonio I did some testing, working better changing the value from 100 to 55.
Regards,
George
Code: Select all
f oItem != nil
MenuMeasureItem( pMitStruct,;
0.9 * GetTextWidth( 0, If( ! Empty( oItem:cPrompt ),;
StrTran( oItem:cPrompt, "&", "" ), "" ) ) + ;
If( oItem:oMenu:hMenu != If( ::oMenu != nil, ::oMenu:hMenu, 0 ), ;
if( ValType( oItem:cPrompt ) == "C", if( chr( 9 )$oItem:cPrompt, 55, 55 ), 0 ), 0 ) ,; // Changed to 55 from 100
Empty( oItem:cPrompt ) )
else // + 20 introduced due Error on NT on width calculation 1999/05/19
if IsMenuItem( pMitStruct )
MenuMeasureItem( pMitStruct,, IsMISeparator( pMitStruct ) )
endif
endif
return .f. // default behavior
endif
George
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Bug in Menu
Time flies
I really forgot about that one
I really forgot about that one