Bug in the new 2007 clause

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

This is the right code to center the bitmaps. Thanks! :-)

Code: Select all

         TransBmp( hBmp, nBmpWidth( hBmp ), nBmpHeight( hBmp ), nZeroZeroClr, ::hDC,;
                   ( ::nWidth / 2 ) - ( nBmpWidth( hBmp ) / 2 ) + If( ::lPressed, 2, 1 ),;
                   Max( 0, ( ::nHeight / ( 2 + If( ! Empty( ::cCaption ), 1, 0 ) ) ) - ;
                   ( nBmpHeight( hBmp ) / 2 ) ) + If( ::lPressed, 2, 1 ),;
                   nBmpWidth( hBmp ), nBmpHeight( hBmp ) )
regards, saludos

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

Post by Antonio Linares »

Enrico,

Please download FWH 7.10 again, thanks :-)
regards, saludos

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

Post by Antonio Linares »

Enrico,

>
With the following change we get the same position for message of 2007 and not 2007 style msgbar:
>

Thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply