Autor Beitrag
wisher
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 54
Erhaltene Danke: 1



BeitragVerfasst: Do 24.03.05 10:42 
salut,

über BorderStyle=bsSizable kann ich das Formular ja von der Größe her verändern.
Jetzt möchte ich allerdings nur die Breite verändern können und die Höhe soll
bleiben. Mein erster Gedanke war im Resize-Ereignis die Höhe zu setzen. Das funktioniert
zwar auch, hat aber den Nachteil, dass das Fenster unschön flackert.

Hat jemand eine Idee ?

Bye Sascha
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Do 24.03.05 10:46 
es gibt für´s Form Constrains. Dort musste für die Höhe max=min (die Pixel wie hoch das Fenster sein soll) setzten. Und schon kann die Fensterhöhe nicht mehr verändert werden.
wisher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 54
Erhaltene Danke: 1



BeitragVerfasst: Do 24.03.05 10:50 
ok, habe es über das Ereignis CanResize gelöst.
wisher Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 54
Erhaltene Danke: 1



BeitragVerfasst: Do 24.03.05 10:52 
oder so.
danke heiko !
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Do 24.03.05 10:56 
Kann sein, dass es sogar das gleiche ist, nur das man den Quelltext nicht sieht.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Do 24.03.05 11:17 
Ich würde es eher so machen - die Message WM_NCHITTEST abfangen und im Message-Handler schreiben:
ausblenden Delphi-Quelltext
1:
2:
3:
  inherited;
  if Message.Result in [HTBOTTOM, HTBOTTOMLEFT, HTBOTTOMRIGHT, HTTOP, HTTOPLEFT, HTTOPRIGHT, HTSIZE] then
    Message.Result := HTBORDER;

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!