Autor Beitrag
Herr Bananerama
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 130



BeitragVerfasst: Mo 11.02.08 21:58 
Hi,

Mal ganz kurz und knapp:

Wie könnte man es erreichen, dass ein TImage den ganzen Bildschirm ausfüllt?

DAnke schonmal im voraus


Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mo 11.02.2008 um 22:45
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Mo 11.02.08 22:13 
Meinst Du sowas ?
ausblenden Delphi-Quelltext
1:
2:
3:
 image1.Align := alClient;
 form1.BorderStyle := bsNone;
 form1.WindowState := wsMaximized;


cu
Marc
Herr Bananerama Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 130



BeitragVerfasst: Di 12.02.08 22:02 
Nein aber so in der Art. Wenn ich das so mache wird nur die TForm größer. Ich möchte aber haben, dass das Timage den ganzen BildSchirm bedeckt.
nagel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 708

Win7, Ubuntu 10.10

BeitragVerfasst: Di 12.02.08 22:12 
user profile iconHerr Bananerama hat folgendes geschrieben:
Ich möchte aber haben, dass das Timage den ganzen BildSchirm bedeckt.


Dafür sorgt das Image1.Align := alClient; in user profile iconMarc.s Code. Probier's halt mal aus.
Herr Bananerama Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 130



BeitragVerfasst: Di 12.02.08 23:00 
Ja stimmt ihr habt recht Danke!!! Ich hatte das nur falsch interpretiert weil das Bild im Image so klein war. Bleibt nur noch ein Problem ... alle visuellen Komponenten, wie zum Beispiel bei mir ein Button und noch unzählige weitere sind dann immernoch über dem Image Zu sehen. Mit BringToFront hab ichs schon versucht aber klappt nicht. :(
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 12.02.08 23:10 
Entweder kannst du das TImage auf ein TPanel packen, oder du machst die anderen Controls einfach unsichtbar. Wenn du die betreffenden Komponenten über die Tag-Eigenschaft markierst, dann kannst du das auch automatisch in einer Schleife mit Form1.ComponentCount und Form1.Components[i] machen.