Thema: Delphi Imgbtn with caption?

Einzelnen Beitrag anzeigen

invalid_operation
(Gast)

n/a Beiträge
 
#5

Re: Imgbtn with caption?

  Alt 25. Jan 2009, 12:08
Zitat von DeddyH:
As I said in the other thread, you have to override the paint-method. Just try it like this:
Delphi-Quellcode:
procedure TImgBtn.Paint;
begin
  inherited;
  Canvas.Brush.Style := bsClear;
  Canvas.TextOut(0,0,'Hello World');
end;
Und nur weil der Fragende "english" ist, sollte man ihm nicht alles durchgehen lassen.
  Mit Zitat antworten Zitat