Solved

Programmatically set a form to "normal"

Posted on 2004-09-07
2
279 Views
Last Modified: 2010-04-05
I work with Delphi since year, but this stupid thing I can't do  :
I need to programmatically display a form.
I mean, simulate the click of the user on the small icon at the top right of the screen that put the form back to normal (between minimize and  close) size...
0
Comment
Question by:LeTay
  • 2
2 Comments
 
LVL 7

Accepted Solution

by:
LRHGuy earned 250 total points
ID: 11996952
Try:

Form.WindowState:=wsNormal;
0
 
LVL 7

Expert Comment

by:LRHGuy
ID: 11996982
That is, replace "form" with the form variable, or if it's on a button, like:


procedure Form1.Button1Click(Sender:tobject);
begin
  WindowState:=wsNormal;
end;

You can also set:  wsMinimized  and  wsMaximized
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now