Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Minimizing  form

Posted on 2004-11-07
1
Medium Priority
?
253 Views
Last Modified: 2010-04-05
I have write a program in delphi wich hase some forms. As the other programs in delphi when I minimize the main form of programm it miimized like other windows program, but when I minimize other forms, i doesn't go down to the task bar, and covert to a small rectangle and go to the left bottom corner of the screen.
Ho can make it like other windows programs, that always go to the task bar when the user minimize any forms?
0
Comment
Question by:Ehsun
1 Comment
 

Accepted Solution

by:
carlp42 earned 100 total points
ID: 12612071
in the form class definition add the following to the protected section

    procedure CreateParams(var Params: TCreateParams); override;


then in implementation do...

procedure TSomeFormClass.CreateParams(var Params: TCreateParams);
begin
  inherited CreateParams(Params);

  Params.ExStyle := Params.ExStyle and WS_EX_APPWINDOW;
end;

Note - this will not work well if there are any modal forms showing.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
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…
Loops Section Overview
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses

810 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