Board index » delphi » Minimize not going to TaskBar

Minimize not going to TaskBar

Hi all,

I'm using Delphi Pro v4. When the minimize button on the
for is pushed the form properly minimizes to the Win95
TaskBar. However, I've set the app up with a hot-key
that minimize the app as well (the ESC key). When I
set Form1.WindowsState := wsMinimized the window goes
above the the taskbar, not in it. I've tried ShowWindow
with WS_MINIMIZE and that didn't help either.

The window is the main form in my application, not a
secondary form. I saw a similar thread about this issue
not long ago, but it was unclear if a viable solution
was out there, or if some component exists to fix this.

Any idea why the *main* form of my app won't minimize
to the TaskBar when it's told to do so via code?

 - Dave

 

Re:Minimize not going to TaskBar


Try Application.Minimize.

Quote
David M. Fornalsky wrote in message

<2aor2.1056$GE1.1...@newscene.newscene.com>...
Quote
>Hi all,

>I'm using Delphi Pro v4. When the minimize button on the
>for is pushed the form properly minimizes to the Win95
>TaskBar. However, I've set the app up with a hot-key
>that minimize the app as well (the ESC key). When I
>set Form1.WindowsState := wsMinimized the window goes
>above the the taskbar, not in it. I've tried ShowWindow
>with WS_MINIMIZE and that didn't help either.

>The window is the main form in my application, not a
>secondary form. I saw a similar thread about this issue
>not long ago, but it was unclear if a viable solution
>was out there, or if some component exists to fix this.

>Any idea why the *main* form of my app won't minimize
>to the TaskBar when it's told to do so via code?

> - Dave

Re:Minimize not going to TaskBar


Quote
>>Try Application.Minimize.<<

That did the trick! Thanks a bunch!

 - Dave

Re:Minimize not going to TaskBar


Quote
David M. Fornalsky wrote in message

<2aor2.1056$GE1.1...@newscene.newscene.com>...

Quote
>I'm using Delphi Pro v4. When the minimize button on the
>for is pushed the form properly minimizes to the Win95
>TaskBar. However, I've set the app up with a hot-key
>that minimize the app as well (the ESC key). When I
>set Form1.WindowsState := wsMinimized the window goes
>above the the taskbar, not in it. I've tried ShowWindow
>with WS_MINIMIZE and that didn't help either.

Try doing an Application.Minimize.  This may not suit your situation but it
does indeed minimize the form to the taskbar.  I think it may also minimize
any other forms you have open at the time though.

Cheers,

  - Bob -

Other Threads