Error on Bpainted of BTNBMP

Error on Bpainted of BTNBMP

Postby Silvio.Falconi » Wed Aug 01, 2018 5: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: Select all  Expand view
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
Image

With small resize
Image

with big resize
Image
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: Error on Bpainted of BTNBMP

Postby Silvio.Falconi » Sun Aug 05, 2018 2:50 pm

Any solution ?
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm

Re: Error on Bpainted of BTNBMP

Postby Antonio Linares » Mon Aug 06, 2018 10:39 am

Silvio,

You have to paint the numbers again
regards, saludos

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

Re: Error on Bpainted of BTNBMP

Postby Silvio.Falconi » 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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 6849
Joined: Thu Oct 18, 2012 7:17 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 29 guests