Autor Beitrag
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 04.09.07 20:42 
Hallo,

ich hab folgendes Problem:

Ich hab ein formular auf dem ein panel ist mit align "alTop" und ein Memo mit align "alclient".

Ich möchte jetzt mit diesem Code die Höhe verändern
ausblenden Delphi-Quelltext
1:
panel1.height := -(Form2.Panel2.Font.Height-6);					


das minus deswegen weil in der Delphi hilfe steht wenn size positiv ist, ist height negativ. das problem ist nur. es verändert sich gar nichts nichtmal ein bisschen.

woran liegt das??

lg elundril


Zuletzt bearbeitet von elundril am Di 04.09.07 21:07, insgesamt 1-mal bearbeitet
#Crasher
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

Win 95, Win 98, Win NT, Win XP (used), Win Vista
D3, D4, D6, D7, D2005, BDS2006 Arch. UPD2
BeitragVerfasst: Di 04.09.07 21:04 
Warum "Panel2.Font.Height"? Du hast nichts von einem 2.Panel erwänt!
Wenn du: Panel1.Height := -(Panel1.Font.Height -6); benutzt sollte es Funktionieren, ich habs getestet!

- Crasher
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Di 04.09.07 21:07 
oh! verdammt! sry! das panel is auf einem Andern form. hab ich vergessen.

lg elundril
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Do 06.09.07 13:34 
*push*

lg elundril
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Do 13.09.07 13:00 
*nochmal push*

lg elundril
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: Do 13.09.07 17:38 
Ist ja schön wenn du mehrmahls puschst, aber was ist denn deine weitere Frage ;)

Anscheinend ist ja das oben genannte geklärt oder?
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 14.09.07 13:21 
nein is noch nicht gelöst. ich hab nur beim codebeispiel ein form2. vergessen. das problem existiert noch immer. im echten quellcode hab ich das form2 schon von anfang an dabei gehabt.

ich hab also nur vergessen zu sagen dass das zweite Panel am anderen Form liegt.

lg elundril
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 14.09.07 13:32 
Die Höhe des Panels ist nie negativ. Da gehen nur positive Werte, die Zuweisung eines negativen Wertes wird deshalb ignoriert und es passiert nix.
elundril Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Fr 14.09.07 13:39 
ok aber selbst wenn ich alle minus zu plus umwandle funzts nicht.

lg elundril
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 14.09.07 13:43 
Tja, also ich kann da ja nur raten. Am besten häng mal das Projekt an, bzw. kopiere das Projekt und lösche unwichtige Sachen raus, wenn es ein größeres Projekt ist. Ohne das ausprobieren zu können, weiß ich da nichts weiter zu zu sagen.