could someone help me in making a rectangle with a specific brush ( borland bdiagonal) ?
I tried with
it draw the rectangule without the brush

but not run ok
I tried with
hLite := CreatePen( PS_SOLID, 1, ::nClrLite )
hDark := CreatePen( PS_SOLID, 1, ::nClrDark )
hBack := CreatePen( PS_SOLID, 1, ::oWnd:nClrPane )
DEFINE BRUSH hBrush STYLE BDIAGONAL COLOR Rgb(195,195,185)
hOldBru := SelectObject( ::hDC, hBrush )
Rectangle( ::hDC, aRect[ 1 ] + 1 , aRect[ 2 ] + 1, aRect[ 3 ], aRect[ 4 ], hLite )
Rectangle( ::hDC, aRect[ 1 ], aRect[ 2 ], aRect[ 3 ] - 1, aRect[ 4 ] - 1, hDark )
MoveTo( ::hDC, aRect[ 2 ] + 1, aRect[ 3 ] - 3 )
LineTo( ::hDC, aRect[ 2 ] + 1, aRect[ 1 ] + 1, hLite )
LineTo( ::hDC, aRect[ 4 ] - 2, aRect[ 1 ] + 1, hLite )
FillRect( ::hDC, { aRect[ 1 ] + 1 , aRect[ 2 ] + 1, aRect[ 3 ], aRect[ 4 ] }, hBrush )
but not run ok
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


