Autor Beitrag
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: So 14.08.05 17:43 
Servus!

Kurz und knapp: Beim OnResize meiner Form sollen nur bestimmte Werte (Größen des Formulars) möglich sein. Wie stell ich das am besten an?

AXMD
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 14.08.05 18:00 
Im Ereignis OnCanResize die Werte entsprechend anpassen...

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: So 14.08.05 22:55 
Oder ab Delphi 6 die Formulareigenschaft Constrains benutzen.
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 15.08.05 06:27 
Hallo,

oder vor D6 damit:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
procedure TForm1.WMGetMinMaxInfo(var Msg: TWMGetMinMaxInfo);
begin
  inherited;
  with Msg.MinMaxInfo^ do
   begin
   ptMinTrackSize.x:= 640;
// ptMaxTrackSize.x:= 200;
   ptMinTrackSize.y:= 480;
// ptMaxTrackSize.y:= 300;
   end;
end;

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
AXMD Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mo 15.08.05 10:29 
user profile iconLuckie hat folgendes geschrieben:
Oder ab Delphi 6 die Formulareigenschaft Constrains benutzen.


Nein, das ist es nicht ganz. Ich will z.B. als Weite nur alle Werte, die durch drei teilbar sind, zulassen.

AXMD
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mo 15.08.05 10:53 

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