Bug in Menu [Solved]

User avatar
Antonio Linares
Site Admin
Posts: 42537
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 77 times
Contact:

Re: Bug in Menu

Post by Antonio Linares »

Enrico,

yes, I saw it too, but that couldn't be a recent change.

Anyhow, its solved :-)

many thanks for your feedback
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 8756
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Has thanked: 1 time
Been thanked: 4 times
Contact:

Re: Bug in Menu

Post by Enrico Maria Giordano »

Antonio,

Antonio Linares wrote:Enrico,

yes, I saw it too, but that couldn't be a recent change.


That's why I said "in the far past". :-)

Antonio Linares wrote:Anyhow, its solved :-)

many thanks for your feedback


You're welcome, my friend! :-)

EMG
George
Posts: 726
Joined: Tue Oct 18, 2005 6:49 pm

Re: Bug in Menu

Post by George »

I did report this behavior in May 2008 http://forums.fivetechsupport.com/viewtopic.php?f=6&t=11165&hilit=menu+ancho and, as suggested per Antonio I did some testing, working better changing the value from 100 to 55.

Code: Select all | Expand


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
 

Regards,

George
User avatar
Antonio Linares
Site Admin
Posts: 42537
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 77 times
Contact:

Re: Bug in Menu

Post by Antonio Linares »

Time flies :-)

I really forgot about that one :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply