Autor Beitrag
ase
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 203

Gentoo, Windows 9X, ME, 2k, NT, XP
Delphi 7 Prof., PHP 5 (Eclipse 3 SDK)
BeitragVerfasst: Sa 10.05.03 23:44 
hi

ich weiß nicht ob des schonmal jemandem aufgefallen ist aber ich denke da stimmt was mit dem Align in der VCL net so ganz.

macht mal folgendes:

- Neues Form
- StatusBar mit align = alBottom (default)
- Label auf form

ausblenden Quelltext
1:
2:
3:
4:
Procedure TForm1.FormResize(Sender: TObject);
Begin
  Label1.Top := ClientHeight - StatusBar1.Height - Label1.Height - 5;
End;


der obige code sollte immer 5 pixel zwischen label1 unterkante und statusbar1 oberkannte sicherstellen. macht er auch aber: verkleinert mal die form mit der maus am unteren rand um ein paar pixel. dann sollte es so sein das zwar das label richtig platziert wird, der statusbar aber nicht komplett gezeichnet. als ob da was 'vergessen' wurde.

das funktioniert an stelle des statusbars übrigens auch mit anderen komponenten.

hat da vielleicht jemand nen plan? oder sogar nen fix oder workaround?


ase

_________________
-EN
AndyB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1173
Erhaltene Danke: 14


RAD Studio XE2
BeitragVerfasst: Sa 10.05.03 23:57 
Und was soll daran falsch sein? Am Rechten Rand bekommst du eine Scrollleiste. Das Align kann per Programmierung keine visuellen Komponenten verdrängen (alClient ausgeschlossen).

_________________
Ist Zeit wirklich Geld?
ase Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 203

Gentoo, Windows 9X, ME, 2k, NT, XP
Delphi 7 Prof., PHP 5 (Eclipse 3 SDK)
BeitragVerfasst: So 11.05.03 00:06 
nein. da bekommt man keine scroll leiste. durch den event handler verschiebt sich das label ja dynamisch mit nach oben.

ich habe aber inzwischen rausgefunden, dass diese anomalie nur dann auftritt, wenn sich komponenten inner halb eines bestimmten bereis zum statusbar finden.
wenn label.top > als Form.Height - 2 * StatusBar.Height, dann anomalie.
wenn ich sage label.top := Form.Height - 2 * statusbar.Height - 1 dann gehts.

komisch... :nixweiss:


ase

_________________
-EN
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: So 11.05.03 11:02 
Bei mir tritt das irgendwie nicht auf. Wenn ich es wie bei deinem ersten Beispiel mache, klebt die Statusbar immer am unteren Rand des Fensters, egal wie groß oder klein ich es ziehe (gut, irgendwann ist es schon zu klein...).
Aber im Gegenteil dazu, funktioniert deine zweite Variante bei mir nicht. Da ist von Anfang an die Statusbar nicht zu sehen, dafür aber eine Scrollleiste, mit der ich ein Stockwerk tiefer zur Statusbar komme. Setze ich statt der -1 ein -30 ein, klappt es wieder.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
ase Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 203

Gentoo, Windows 9X, ME, 2k, NT, XP
Delphi 7 Prof., PHP 5 (Eclipse 3 SDK)
BeitragVerfasst: So 11.05.03 11:18 
so ihr ungläubigen, jetzt schaut euch des selber an!

vcl bug


ase

_________________
-EN
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: So 11.05.03 13:37 
schon klar, aber ich kann ja nix dafür, daß es bei mir nicht so ist (siehe mein Post).

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert
ase Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 203

Gentoo, Windows 9X, ME, 2k, NT, XP
Delphi 7 Prof., PHP 5 (Eclipse 3 SDK)
BeitragVerfasst: So 11.05.03 13:54 
sag ich ja nich. nur ich dachte jemand hat vielleicht schon ähnliche erfahrungen gemacht. hätte ja sein können.


ase

_________________
-EN