Autor Beitrag
SMARTY1
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mi 05.12.07 20:54 
Hallo
Ich möchte, wenn ich auf einen Button klicke, dass dann ein Hintergrundbild in meiner Form erscheint! Geht das?
mfG
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mi 05.12.07 21:00 
Ja

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
SMARTY1 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mi 05.12.07 21:15 
Und wie? wäre nett wenn ihr mir helfen könntet!
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Mi 05.12.07 21:24 
Mit ner Imagekomponente oder selbst zeichnen.

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Popov
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1655
Erhaltene Danke: 13

WinXP Prof.
Bei Kleinigkeiten D3Pro, bei größeren Sachen D6Pro oder D7
BeitragVerfasst: Mi 05.12.07 21:26 
Ich frage mich wieso alle immer wollen, daß wenn sie ein Button klicken etwas passiert. Wenn man das Forum durchsucht mach Textstellen "wenn ich auf einen Button klicke", dann müßten tausende Einträge kommen ;)

Wie wäre es mit OnPaint? Dann würde das automatisch gezeichnet?

Weißt du wie man auf Canvas zeichnet? Ok, den muß du das Bild in OnPaint Prozedur des Formular zeichnen

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.FormPaint(Sender: TObject);
begin
  Canvas.Draw(00, Image1.Picture.Bitmap);
end;


Ich hab hier das Bild aus Image1 benutzt, du kannst es anders machen.

_________________
Popov
.#R4id
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 90

Windows XP Prof.
CodeGear Delphi 2007
BeitragVerfasst: Mi 05.12.07 22:32 
Oder Komponente von JEDI "JvBackground", die ist zimlich gut :!:

_________________
ausblenden Delphi-Quelltext
1:
if CopyAndPaste not avaible then Developer := Helpless;