PDA

View Full Version : Minimize bug


jeff
05-21-2002, 11:07 PM
When the "Minimize to tray" option is set, using the windows shortcut keys to minimiz all and then restore all windows will minimize and restore FlashFXP, however, it does not realize that it is no longer minimized (no button in the taskbar, minimize button does not work) until you click on the its tray icon.

Steps to reproduce:

- Be sure the "Minimize to tray" option is set
- Open a FlashFXP window
- Press Win+m (windows shortcut to minimize all windows)
- Press Win+Shift+M (windows shortcut to restore all windows)

Expected results:

FlashFXP should minimize to the tray, and then restore correctly.

Actual results:

FlashFXP minimizes to the tray, and is restored, but does not realize that it has been restored.

-- Jeff

bigstar
05-21-2002, 11:57 PM
This simply can not be done. The window must have a taskbar button in order for windows to restore it.

In which case you must uncheck the "Place in tray when minimized" option.

jeff
05-22-2002, 01:26 AM
I know that. I wouldn't have expected FlashFXP to be restored, but it is. That's why this is a bug. Try it, and you will see :)

- Win+M (FlashFXP is minimized)
- Win+Shift+M (FlashFXP is restored - but without a taskbar button)

-- Jeff

bigstar
05-22-2002, 02:22 AM
Which version of Windows are you using?
Which build of FlashFXP?

I did test it and it didn't restore, I just tested it again and again it doesn't restore. I am using Windows 2000 SP2.

jeff
05-22-2002, 05:02 PM
I'm using build 848 on NT4sp6a

Obviously this isn't a huge bug, but FlashFXP is the only app that I've noticed this behavior in.

I imagine that adding a quick handler for the WM_SIZE message with wParam SIZE_RESTORED, and then calling your restore code would probably be the best solution.

-- Jeff

bigstar
05-22-2002, 05:33 PM
I just tested FlashFXP under winNT 4.0 SP6a + IE6 and I was unable to reproduce the problem. Perhaps you have something special installed that might be effecting this behavior?

Applications created with Borland Delphi are a bit funky, The taskbar button is a seperate hidden window.

It sounds like the main window is being restored but not the Application taskbar button window. The tray component is an extension of the application taskbar window and not the main window, and there is no way for it to handle any window events in the main window.

tC!_1
05-25-2002, 08:32 PM
was curious about that and checked under winxp - it isn't restoring after minimized to tray with win+m and all windows restored with win+shift+m

bigstar
05-25-2002, 08:39 PM
Originally posted by tC!
was curious about that and checked under winxp - it isn't restoring after minimized to tray with win+m and all windows restored with win+shift+m

Yup, That's exactly how it should work.