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
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

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
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
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