Solved

Assigning values to form.constraints

Posted on 2001-08-07
2
158 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 15 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 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