Autor Beitrag
rami
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

Win XP, Linux (K)ubuntu
Delphi 2005 Personal (, PHP, HTML, MySQL, ...)
BeitragVerfasst: Mi 02.04.08 16:32 
(KA wo das reingehört)

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure TForm2.FormShow(Sender: TObject);
begin   
  form2.Formstyle:=FSStayOnTop;
  form2.borderstyle:=bsNone;
  form2.left := 0;
  form2.top := 0;
  form2.width := screen.width;
  form2.height := screen.height;
end;

Form2 wird per Button aus TForm1 gestartet.
Warum geht das nicht?


Moderiert von user profile iconChristian S.: Topic aus Sonstiges (Delphi) verschoben am Mi 02.04.2008 um 17:36
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Mi 02.04.08 16:40 
Definiere "geht nicht".
rami Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

Win XP, Linux (K)ubuntu
Delphi 2005 Personal (, PHP, HTML, MySQL, ...)
BeitragVerfasst: Mi 02.04.08 16:41 
Keiner der Befehle zeigt Wirkung.
Calculon
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 676

Win XP Professional
Delphi 7 PE, Delphi 3 PRO
BeitragVerfasst: Mi 02.04.08 16:42 
Probier mal WindowState := wsMaximized;

_________________
Hallo Mutti
rami Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

Win XP, Linux (K)ubuntu
Delphi 2005 Personal (, PHP, HTML, MySQL, ...)
BeitragVerfasst: Mi 02.04.08 16:45 
Geht, aber:
Einloggen, um Attachments anzusehen!
Agawain
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 460

win xp
D5, MySQL, devxpress
BeitragVerfasst: Mi 02.04.08 16:56 
Hallo

die Delphi Hilfe sagt, dass formstyle nicht zur Laufzeit gesetzt werden sollte.

_________________
Gruß Aga
rami Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

Win XP, Linux (K)ubuntu
Delphi 2005 Personal (, PHP, HTML, MySQL, ...)
BeitragVerfasst: Mi 02.04.08 16:57 
Ja, lag an was anderem, sry
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Mi 02.04.08 17:33 
Solche Änderungen der Form solltest du in OnCreate ausführen, nicht in OnShow. Das Create-Ereignis wird nur einmal aufgerufen, OnShow jedes Mal, wenn du das Fenster anzeigst. Und die Größenänderung etc. brauchst du nur einmal zu machen.