Board index » delphi » Minimize Forms in Taskbar

Minimize Forms in Taskbar

How can i do to see minimized the forms of an appliaction in the
taskbar?
Now, when i minimize a form it stay on the desktop with a little title
bar, but i want to put them in the taskbar.
 

Re:Minimize Forms in Taskbar


"nik" <juanan...@hotmail.com> skrev i melding
news:6aaee299.0211220806.606c9a7b@posting.google.com...

Quote
> How can i do to see minimized the forms of an appliaction in the
> taskbar?
> Now, when i minimize a form it stay on the desktop with a little title
> bar, but i want to put them in the taskbar.

This is how you do it (or rather - one *possible* way to do it):

type
  TForm2 = class(TForm)
  private
    { Private declarations }
  public
    procedure CreateParams(var Params: TCreateParams); override;
  end;

var
  Form2: TForm2;

implementation

{$R *.DFM}

procedure TForm2.CreateParams(var Params: TCreateParams);
begin
  inherited CreateParams(Params);
  Params.WndParent:=0;
end;

--
Bj?rge S?ther
bjorge@hahaha_itte.no

Re:Minimize Forms in Taskbar


Quote
nik wrote:
> How can i do to see minimized the forms of an appliaction in the
> taskbar?
> Now, when i minimize a form it stay on the desktop with a little title
> bar, but i want to put them in the taskbar.

You are doing something wrong. The default practice of the minimize
button is to send your program to the task bar. Are you handling the
minimize yourself? You shouldn't unless for something special.

Re:Minimize Forms in Taskbar


Quote
John of Aix wrote in message ...
>nik wrote:
>> How can i do to see minimized the forms of an appliaction in the
>> taskbar?
>> Now, when i minimize a form it stay on the desktop with a little title
>> bar, but i want to put them in the taskbar.

>You are doing something wrong. The default practice of the minimize
>button is to send your program to the task bar. Are you handling the
>minimize yourself? You shouldn't unless for something special.

That's only for main forms, I think. Secondary forms do indeed
minimise to the desktop IME.

Groetjes,
Maarten Wiltink

Re:Minimize Forms in Taskbar


Quote
Maarten Wiltink wrote:
> John of Aix wrote in message ...
>> nik wrote:
>>> How can i do to see minimized the forms of an appliaction in the
>>> taskbar?
>>> Now, when i minimize a form it stay on the desktop with a little
>>> title bar, but i want to put them in the taskbar.

>> You are doing something wrong. The default practice of the minimize
>> button is to send your program to the task bar. Are you handling the
>> minimize yourself? You shouldn't unless for something special.

> That's only for main forms, I think. Secondary forms do indeed
> minimise to the desktop IME.

Do they? I've never noticed. Do you mean chld forms or just other forms
to the main form?

Re:Minimize Forms in Taskbar


"John of Aix" <j.murphyNOS...@libertysurf.fr> skrev i melding
news:arqt18$kn01b$4@ID-157326.news.dfncis.de...

Quote
> Maarten Wiltink wrote:
> > John of Aix wrote in message ...
> >> nik wrote:
> >>> How can i do to see minimized the forms of an appliaction in the
> >>> taskbar?
> >>> Now, when i minimize a form it stay on the desktop with a little
> >>> title bar, but i want to put them in the taskbar.

> >> You are doing something wrong. The default practice of the minimize
> >> button is to send your program to the task bar. Are you handling the
> >> minimize yourself? You shouldn't unless for something special.

> > That's only for main forms, I think. Secondary forms do indeed
> > minimise to the desktop IME.

> Do they? I've never noticed. Do you mean chld forms or just other forms
> to the main form?

Yes, they do. Unless you e.g. do what I posted in another reply.

--
Bj?rge S?ther
bjorge@hahaha_itte.no

Other Threads