Autor Beitrag
G-man
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Sa 06.09.03 23:25 
Abend,
wenn die Form iin ihrer größe geändert wird will ich eine Komponente
auf die Größenänderung anpassen.
Wie geht das?

_________________
...To err is human, but to really foul things up requires a computer.
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Sa 06.09.03 23:44 
Hi,

auf die Größenänderung der Form kann man im OnResize-Ereignis der Form reagieren.

Aber um eine Komponente der Größenänderung anzupassen ist es einfacher die Anchors-Eigenschaft der Komponente entsprechend zu ändern. Z.B. wenn du ein Panel hast und möchtest, dass es immer rechts-unten bleibt, musst du akRight und akBottom auf True stellen und akLeft und akTop auf False stellen.

MFG

- Ernesto -
G-man Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 258

Win 2000, Win ME, SuSE 8.2
D5 Standard, D6 Professional
BeitragVerfasst: Sa 06.09.03 23:46 
Und wenn ich meinetwegen ein Memo hab und will, dass das Memo immer
die ganze verfügbare Fläche bedeckt?

_________________
...To err is human, but to really foul things up requires a computer.
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Sa 06.09.03 23:53 
Hi,

dann machst du entweder alle Anchors auf True oder die eigenschaft Align auf alClient.

MFG

- Ernesto