Autor Beitrag
steve-allround
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 59

Linux, Windows

BeitragVerfasst: So 09.10.05 21:46 
Hallo,

kann mir jemand ganz schnell sagen, wie man Objekte immer im Fenster zentral halten kann?

Z.B. ich habe verschiedene Panels und GroupBoxen, sowie ein Label... wie funktioniert es, auch wenn ich das Fenster verkleinere, dass immer diese Objekte in der Mitte rutschen.

Kann mir jemand helfen?

Ich stecke gerade mitten in einer Programmierung und komm aber net mehr mit dem Design weiter, deshalb meine Frage....
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 09.10.05 22:44 
Ich sag nur 2 Dinge:
1. TForm.OnResize
2.
ausblenden Delphi-Quelltext
1:
2:
Obj.Left := (Width - Obj.Width) div 2;
Obj.Top := (Height - Obj.Height) div 2;

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.