?
Solved

Assigning values to form.constraints

Posted on 2001-08-07
2
Medium Priority
?
167 Views
Last Modified: 2010-04-06
I currently have a minheight & minwidth value set to my main from in a program.

When a button is pressed I need to change these values, but I cant work out how to change the constraints in code.

Please can someone supply me with a coded example.

Thankyou.
0
Comment
Question by:chunky1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
alanwhincup earned 45 total points
ID: 6359902
Just do something like this:

procedure TForm1.Button1Click(Sender: TObject);
begin
  Form1.Constraints.MaxHeight := 300;
  Form1.Constraints.MaxWidth := 300;
  Form1.Constraints.MinHeight := 300;
  Form1.Constraints.MinWidth := 300;
end;
0
 
LVL 1

Author Comment

by:chunky1
ID: 6359946
Why wouldn't it accept that the first time ?

Obviously a bad day !

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question