Autor Beitrag
PF@
Hält's aus hier
Beiträge: 11



BeitragVerfasst: Fr 16.01.04 11:55 
hi, wie kann man bezwecken dass ein projekt nicht mit der maus nicht größer gezogen werden kann, das es immer die gleiche größe behält, egal was man versucht.

der anwender darf also das projekt nicht größer oder kleiner machen können. :?:
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Fr 16.01.04 12:12 
Hallo,

z.B. so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
TForm1=class(TForm)
  ...
  ...
private
  procedure WMGetMinMaxInfo(var aMsg:TWMGetMinMaxInfo); message WM_GetMinMaxInfo;
  ...
end;

...


procedure TForm1.WMGetMinMaxInfo(var aMsg:TWMGetMinMaxInfo);
begin
  with aMsg.MinMaxInfo^ do
  begin
    ptMinTrackSize:=Point(800, 600);
    ptMaxTrackSize:=ptMinTrackSize;
  end; // with
  inherited;
end; // TForm1.WMGetMinMaxInfo


Ausserdem musst Du die Unit Messages in die Uses-Klauses aufnehmen.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
Benedikt
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 16.01.04 12:18 
Hi,

würde es nicht auch reichen einfach den BorderStyle vom Form1 auf bsSingle zu stellen?!?

MfG Benedikt
smiegel
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 992
Erhaltene Danke: 1

WIN 7
D7 Prof., C#, RAD XE Prof.
BeitragVerfasst: Fr 16.01.04 12:21 
Nein,

weil dann immer noch Maximieren geht.

_________________
Gruß Smiegel
Ich weiß, daß ich nichts weiß, aber ich weiß mehr als die, die nicht wissen, daß sie nichts wissen. (Sokrates)
recall
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 449



BeitragVerfasst: Fr 16.01.04 12:24 
BorderStyle auf Single, unter BorderIcons (das sind Minimize, Maximize, Resize-Buttons) biMinimize und biMaximize auf False, FERTIG !

Viele Grüsse.
PF@ Threadstarter
Hält's aus hier
Beiträge: 11



BeitragVerfasst: Fr 16.01.04 14:41 
ich möchte mich bedanken für eure antworten....

DANKEDANKEDANKEDANKEDANKEDANKE :D