FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bug in the new 2007 clause
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in the new 2007 clause
Posted: Wed Oct 10, 2007 10:01 AM
Enrico,

This is the right code to center the bitmaps. Thanks! :-)
         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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in the new 2007 clause
Posted: Wed Oct 10, 2007 10:40 AM

Great! Is it already in the new FWH build?

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in the new 2007 clause
Posted: Wed Oct 10, 2007 10:43 AM

Ops! What is hBmp?

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in the new 2007 clause
Posted: Wed Oct 10, 2007 11:16 AM

Enrico,

Please download FWH 7.10 again, thanks :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Bug in the new 2007 clause
Posted: Wed Oct 10, 2007 11:25 AM

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

Continue the discussion