Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi DelphiX - TextOut (https://www.delphipraxis.net/36400-delphix-textout.html)

patti 19. Dez 2004 15:12


DelphiX - TextOut
 
Moin!
Ich habe ein Problem. Und zwar arbeite ich erst seit kurzem mit DelphiX. Jetzt habe ich einen kleinen Shooter wie Moorhuhn entwickelt (Vollbild). Ich will, dass die Punkteanzahl auf meinem DxDraw1 ausgegeben wird. Meine Anfänge:
Delphi-Quellcode:
DXDraw1.Surface.Canvas.Font.Size := 50;
DXDraw1.Surface.Canvas.Font.Name := 'Times New Roman';
DxDraw1.Surface.Canvas.TextOut(Screen.Width - 150, 50, Inttostr(punktzahl));
DXDraw1.Surface.Canvas.Release;
DXDraw1.Flip;
So weit so gut! Jetzt habe ich aber auf meinem DxDraw auch noch ein Hintergrundbild und wenn ich das Programm jetzt laufen lasse, dann erscheint um den Text ein weißer Kasten. Eigentlich logisch. Aber wie bekomme ich den weg? :gruebel:
Der stört richtig! Ich bin ganz traurig! :cry: Wäre cool wenn mir jemand helfen würde!

Gruß Patti

Neutral General 19. Dez 2004 15:22

Re: DelphiX - TextOut
 
Delphi-Quellcode:
DXDraw1.Surface.Canvas.Brush.Style := bsClear;
:-D

patti 19. Dez 2004 15:29

Re: DelphiX - TextOut
 
Danke für die schnelle Antwort Neutral General!
Hab ich gleich getestet! Echt geil! :-D :-D :-D Funzt alles wie ich mir das
gedacht habe! Und eigentlich voll logisch! Danke noch mal!

Gruß Patti


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:06 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz