"Wake up" a minimzed window from taskbar?

BlitzMax Forums/MaxGUI Module/"Wake up" a minimzed window from taskbar?

Grisu(Posted 2010) [#1]
Hi there!

I have an issue with my windowed app where some of you might assist.

1. When the user hits the minimize button, the app gets suspended and shrinked to the taskbar.

2. I detect that and hide the main window and add a systemtray icon for my app.

3. When the user wants to wake up the app, I remove the systemtray icon,

4. I also show the main window (via Showgadget()) again.

My problem is that, the app is still shrinked to the taskbar at that moment and the user has to reclick on it to show the window itself.

Is there a way to bring up the main window to the front directly?

Maximizewindow() will bring up the window, but I don't want it to be maximized... :(

Download: http://www.mediafire.com/?mkgmoiywg1j

Might create some easy example code later.

Thanks!
Grisu


jsp(Posted 2010) [#2]
RestoreWindow( window:TGadget )

should be your friend:)


Grisu(Posted 2010) [#3]
Awesome little command. :o) - Solved.

Thanks!