| |
| Making text background transparent |
 |
How do I make the text background transparent?
procedure TForm .Button Click(Sender: TObject);
var
OldBkMode : integer;
begin
with Form .Canvas do begin
Brush.Color := clRed;
FillRect(Rect(0, 0, 00, 00));
Brush.Color := clBlue;
TextOut( 0, 20, 'Not Transparent!');
OldBkMode := SetBkMode(Handle, TRANSPARENT);
TextOut( 0, 50, 'Transparent!');
SetBkMode(Handle, OldBkMode);
end;
end;
|
|
| Hits/month |
2,500,000+ |
Downloads (Since May 2000) |
7,393,709 |
| Total Files |
6,023 |
| Forum msgs |
7,670 |
| Articles/FAQs |
70+/900+ |
Top Selling Software at Amazon
|