Autor Beitrag
majolo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: So 14.07.02 16:33 
Hi,
ich habe eine Frage.Gibt es einen Code der alle Komponenten in einer Form im Verhältnis der Größe zum Formenfenster vergrößert. Also wenn ich das Fenster maximiere, sollen alle Kompos Editfenster Groupboxen, Labels etc. im verhältnis vergrößert werden ohne, dass sie sich überschneiden.ichwüßte zwar ne Möglichkeit, aber die ist viel zu kompliziert.
Ich hoffe ich habe es nicht zu kompliziert erklärt.Denke aber schon.
majolo :?: :?: :?:
Chris1308
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 220

Win XP Prof.
D2005 Prof, D7 Prof, D7 Pers
BeitragVerfasst: So 14.07.02 17:31 
Hi!
Das musst du dann per Hand machen. zum Beispiel so (OnResize-Ereignis):
ausblenden Quelltext
1:
2:
3:
4:
5:
procedure TForm1.FormResize(Sender: TObject {...});
begin
  Label1.Width := Form1.Width; { geht natürlich auch mit -1 etc. }
  { Kannst natürlich auch weitere Sachen machen... }
end;


Das war es doch, was du suchtest, oder?

Chris1308
majolo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: So 14.07.02 17:35 
Ja, schon richtig. Vielen Dank. So hatte ich es auch. Ich dachte es gibt noch eine einfachere Methode.Also doch Arbeit.
Gruss
majolo :(
Chris1308
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 220

Win XP Prof.
D2005 Prof, D7 Prof, D7 Pers
BeitragVerfasst: So 14.07.02 17:44 
Ne, sorry eine einfachere Möglichkeit gibt es nicht...
Das einzige ist, dass du die Komponenten mit der Eigenschaft "align" alle auf alClient setzt (sofern du das willst). Aber Buttons haben diese Eigenschaft ja nicht...

Chris1308
majolo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 334

Ubuntu 8.04, WinXP Prof.
D1, D6Pers, D7 Prof., D8 Prof., D2005 Pers
BeitragVerfasst: So 14.07.02 18:08 
Ja, schon Okay. Vielleicht mach ich mir noch ein Zusatzproggi, dass mir die Eigenschaften und Positionen der Objekte berechnet und dann dementsprechend, die Verhältnisse ausgibt und den Quellcode schreibt.
Chris1308
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 220

Win XP Prof.
D2005 Prof, D7 Prof, D7 Pers
BeitragVerfasst: So 14.07.02 18:26 
Auch eine gute Möglichkeit...

Chris1308