Link to home
Start Free TrialLog in
Avatar of LeTay
LeTay

asked on

Programmatically set a form to "normal"

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...
ASKER CERTIFIED SOLUTION
Avatar of LRHGuy
LRHGuy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of LRHGuy
LRHGuy

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