Autor Beitrag
V!P3R
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 151



BeitragVerfasst: Mo 24.12.07 12:20 
Wenn ich mein prog starte, soll sich das fenster maximieren, und dabei ist es egal wie ichs in delphi gespeichert habe.

es soll also in der OnCreate function meiner Mainform auftreten.


wie geht das??

MfG
DelphiMarkus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 303

OpenSuSE
Delphi 2009 Pro., Lazarus
BeitragVerfasst: Mo 24.12.07 12:29 
Hallo!

ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure TForm1.FormCreate(Sender: TObject);
begin
  Form1.WindowState := wsMaximized;
end;

Ist das gut so?

Ansonsten gibt es noch die SUCHE!
TGLDX
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 22



BeitragVerfasst: Mo 24.12.07 12:29 
Eine Möglichkeit:
ausblenden Delphi-Quelltext
1:
SendMessage(Self.Handle,WM_SYSCOMMAND,SC_MAXIMIZE,0);					
V!P3R Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 151



BeitragVerfasst: Mo 24.12.07 12:52 
Vielen Dank.

Gibt es den auch eine möglickeit, das feld in dem man das fenster maximiert, enabled = False zu machen.?

Also. Beim starten des Programs ist das Fenster maxiemiert.

aber oben rechts kann man nur auf [X] (schließen) und auf [-] minimieren klicken. das da zwischen ist Enabled:=False

wie geht das?

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

Windows XP Prof.
CodeGear Delphi 2007
BeitragVerfasst: Mo 24.12.07 12:59 
Du solltest für eine neue Frage ein neues Thread eröffnen da es sonst nur chaos geben wird.
Außerdem versteh ich deine Frage überhaupt nicht...

_________________
ausblenden Delphi-Quelltext
1:
if CopyAndPaste not avaible then Developer := Helpless;					
DelphiMarkus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 303

OpenSuSE
Delphi 2009 Pro., Lazarus
BeitragVerfasst: Mo 24.12.07 13:18 
Ich versteh es auch nicht ganz, aber ich glaube du meinst das man das Maximieren ausschaltet.

Das kannst du über den Objektinspektor machen.
BorderIcons -> biMaximize -> auf False setzen.

Im Anhang ist noch ein Bild davon.
Einloggen, um Attachments anzusehen!