Autor Beitrag
rstaeker
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 94

WIN 2000
D6 Prof
BeitragVerfasst: Di 24.08.04 20:49 
Ich habe gerade ein komisches Problem,

es klappt einfach nicht mit der Eigenschaft align von zwei Panels.
Ich möchte gerne, daß "Panel1" komplett die linke Seite abdeckt und "Panel2" den Platz am unteren Rand zwischen "Panel1" und dem rechten Formularrand.

Trotz aller Versuche bekomme ich es nur so hin (Das ist falsch)
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
======================================================
|     |                                              |
|  a  |                                              |
|  l  |               alClient                       |
|  L  |                                              |
|  e  |                                              |
|  f  |                                              |
|  t  |                                              |
|     |                                              |
======================================================
|                                                    |
|      alBottom                                      |
======================================================


Ich möchte es aber gerne so haben
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
======================================================
|     |                                              |
|  a  |                                              |
|  l  |                alClient                      |
|  L  |                                              |
|  e  |                                              |
|  f  |==============================================|
|  t  |                                              |
|     |     alBottom                                 |
======================================================


Kann mir jemand weiter helfen?


MfG Rene
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: Di 24.08.04 21:11 
Einfach deine beiden Controls rechts auf einen Extra-Panel (auch mit alClient) legen und dann sollte alles funzen:

alLeft
alClient (Extra-Panel)
alClient
alBottom

Hängt mit der Programmierweise der Align-Eigenschaft zusammen.

_________________
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.
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 24.08.04 21:13 
Da musst du schachteln. Zumindest kenn ich keine andere Lösung.

Nimm ein Panel mit alLeft und eins mit alClient(*). Auf dem alclient erstellst du zwei weitere, eins mit alBottom, und eins mit alClient.
Auf dem (*) Panel dann noch die Ränder entsprechend auf 0 reduzieren, und man hat den gewümschten Effekt.

_________________
We are, we were and will not be.
maxk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1696
Erhaltene Danke: 1

Win XP, Debian Lenny
Delphi 6 Personal
BeitragVerfasst: Mi 25.08.04 14:29 
Wenn es nicht unbedingt Align sein muss, könnte auch schon das richtige Setzen der Suche in: Delphi-Forum, Delphi-Library ANCHORS helfen :?

_________________
Ein Computer wird das tun, was Du programmierst - nicht das, was Du willst.