Solved

Programmatically set a form to "normal"

Posted on 2004-09-07
2
281 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
[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
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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
find a node in VST 2 92
tvirtualstringtree freeze when load too manny images 10 90
Drag & Drop... Data from one grid to another 2 53
PHP preg_replace code convert to Delphi 14 98
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…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

732 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