Autor Beitrag
kabizolis
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 86



BeitragVerfasst: Fr 14.04.06 17:29 
hallo

meine frage ist vielleicht etwas naiv... kann man das unterschreiten der grösse einer form eleganter lösen als ich das tue?

mein beispiel:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.FormResize(Sender: TObject);
begin
 if Form1.Width < 1000
  then Form1.Width := 1000;
 //
 if Form1.Height < 700
  then Form1.Height := 700;
end;



Moderiert von user profile iconGausi: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Fr 21.04.2006 um 08:33
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 14.04.06 20:52 
user profile iconkabizolis hat folgendes geschrieben:
meine frage ist vielleicht etwas naiv.

Och nee, wir alle haben doch mal klein angefangen :zwinker:

Du kannst das aber so lösen, indem du im Objektinspektor die Eigenschaften Constraints.MinHeight und Constraints.MinxWidth auf 1000 setzen. Alternativ so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
//OnFormCreate
with constraints do
begin
  MinHeight:=1000;
  MinWidth:=1000;
end;

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Mo 17.04.06 21:58 
öhm das ganze scheints unter D3 noch nicht zugeben, gibs noch ne ähnlich leichte möglichkeit?
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mo 17.04.06 22:29 
Hallo,

das funktioniert auch mit D3:
dsdt: Fenstergröße begrenzen

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Mo 17.04.06 22:40 
danke :tongue: