FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error on Bpainted of BTNBMP
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Error on Bpainted of BTNBMP

Posted: Wed Aug 01, 2018 05:33 PM
I try yo resize a dialog
on this dialog I have btnbmp where I call a Myfunction on bPainted
it write the number at the left bottom of btnbmp

I have also an oldest fwh
to write the numbers I use this function

Code (fw): Select all Collapse
FUNCTION DrawText2( hDC, hFont, nBkMode, cText, nTop, nLeft, nWidth, nHeight,color,color2 )
LOCAL hFontOld:= SelectObject( hDC, hFont )
LOCAL nBkOld := SetBkMode( hDC, nBkMode )
SetTextColor( hDC, color )
setBkColor( hDC, color2 )
DrawText( hDC, cText, { nTop, nLeft, nTop+nWidth, nLeft+nHeight } )
SelectObject( hDC, hFontOld )
SetBkMode( hDC, nBkOld )
RETURN( NIL )


When Iresize the dialog all buttons are resized but the numbers change the position and then go away

I try also to recall bpainted function on odlg:resize with no success

Before without resize


With small resize


with big resize
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Error on Bpainted of BTNBMP

Posted: Sun Aug 05, 2018 02:50 PM

Any solution ?

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Error on Bpainted of BTNBMP

Posted: Mon Aug 06, 2018 10:39 AM

Silvio,

You have to paint the numbers again

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Error on Bpainted of BTNBMP

Posted: Mon Aug 06, 2018 11:21 AM

Antonio,
When i resize i recall the function write the numbers
perhaps the number is wrote on x,y,k,z coordinates and then resize is changed the size of button

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion