🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12912

Re: HowTo: Limiting window size

#12912
From: Palle Meinert
Date: Thu, 13 Nov 2003 18:14
17 lines
1543 bytes
If it is a VCL form, you can do it with the Constraints properties
(MaxHeight, MaxWidth, MinHeight, MinWidth) of your form.

Palle

"Martin Golm" <golm@gmx.de> skrev i en meddelelse
news:3FB38C27.2C3183E5@gmx.de...
> I need to limit the size of a window in the way that it can't be smaller
> than a certain height. That means, if a user sizes the window, its
> client height should not be less than - say 400 pixels.
> I guess I have to use the WM_NCCALCSIZE message, but I'm not sure how to
> use it.
> Can anybody tell how to limit the window size (or even have a working
> example)?
>
> TIA,
> Martin
Technical Details
Message-ID: <3fb3c9fa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3FB38C27.2C3183E5@gmx.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,498b056766cdd000
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-13 10:38:50 PST
From: "Palle Meinert" <NoSpam@NoVirus.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3FB38C27.2C3183E5@gmx.de>
Subject: Re: HowTo: Limiting window size
Date: Thu, 13 Nov 2003 19:14:14 +0100
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 62.107.111.214
Message-ID: <3fb3c9fa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1068747258 62.107.111.214 (13 Nov 2003 10:14:18 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.he.net!news-hog.berkeley.edu!ucberkeley!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail