Autor Beitrag
dude
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Mi 21.05.03 14:48 
Hi,

wie kann ich ein canva vom Bildschirm löschen. so dass wieder nichts auf dem bildschirm ist ?

Mfg
Pascal
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 155

Win 98, Win XP
Delphi 2005, Delphi 5
BeitragVerfasst: Mi 21.05.03 15:59 
Wenn du mit Bildschirm Die Form meins dann mit (Form1.)refresh;
dude Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48



BeitragVerfasst: Fr 23.05.03 13:08 
nee, folgendes:

Ich habe ein canva auf dem bildschirm gemalt , damit meine ich (wie in delphi) screen . ! Und da bleibt die Schrift solange haften, bis man ein fenster darüberzieht und es verdeckt !!
fmartiins
Hält's aus hier
Beiträge: 2

w95
d4 pers
BeitragVerfasst: Di 23.09.03 13:41 
Titel: canvas leeren/loeschen
Hi!
Die Hilfe kennt kein canvas.clear.

Allenfalls hilft tricken: fillchar(canvas,sizeof(canvas),0);
(Habs nicht ausprobiert)
LH_Freak
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Do 05.05.05 20:03 
Hab das selbe Problem. Geht leider nicht.
charlie-kls
Hält's aus hier
Beiträge: 11



BeitragVerfasst: Do 29.06.06 17:59 
Ich habe auch das selbe Problem. Bitte findet eine einfache Lösung!
chaoslion
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 45


Delphi 2k6 Prof,C,C#,Delphi
BeitragVerfasst: Do 29.06.06 23:57 
ausblenden Delphi-Quelltext
1:
canvas.rectangle(0,0,canvas.width,canvas.height);					
hibbert
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1007

WinServer2003, Win XP, Linux
D6 Pers, D05
BeitragVerfasst: Fr 30.06.06 00:14 
oder noch einfacher um das Bild zu löschen...image1.Picture:=nil;

hibbert

_________________
I kunnen väl svara endast ja eller nej
Om i viljen eller nej
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Fr 30.06.06 07:33 
Titel: Re: canvas leeren/loeschen
user profile iconfmartiins hat folgendes geschrieben:
Hi!
Allenfalls hilft tricken: fillchar(canvas,sizeof(canvas),0);
(Habs nicht ausprobiert)


Bevor ich so einen Müll poste, würde ich es einmal ausprobieren, um zu sehen was dabei rauskommt.

user profile iconhibbert hat folgendes geschrieben:
oder noch einfacher um das Bild zu löschen...image1.Picture:=nil;

Wo steht in diesem Posting etwas von einem Image?


Um den Canvas zu löschen gibt es die Procedure FillRect.
In diesem Fall Canvas.FillRect(Canvas.ClipRect); Näheres dazu in der Delphi-Hilfe.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)