


Yes, using a brush
Thank you.
Excuse my ignorance. But if I tried with brush I always have full color.
This seems to be gradient.
Best regards,
Otto
You have to create a brush from a bitmap, and the bitmap has the painted gradient ![]()
DEFINE BRUSH oBrush RESOURCE <cBmpResName>
or
DEFINE BRUSH oBrush FILENAME <cBmpFileName>
Is this the right way to make such a outlook:
Paint a rectangle with
FillRect(oWnd:hDc,aRect1,oBrush:hBrush)
And then paint the text with oWnd:Say
oWnd:say( nRow, nCol, text ,"W",::nClrBack,oFont,.T.,.t.)
Thanks in advance
Otto
Otto,
There are two ways to paint a text:
Use the oWnd:Say(), as you have done
Use a SAY control: @ ..., ... SAY ...
The advantage of using the 2) is that you don't have to repaint it. The control automatically paints itself. With 1) you have to paint the text everytime the window is repainted
My advice is to use a SAY control that uses a brush with a gradient
>My advice is to use a SAY control that uses a brush with a gradient
I don't know how to do this?
Would you be so kind to show some code.
Thanks in advance
Otto
