corrupt
Joined: 29 Dec 2004 Posts: 2393
|
Posted: Wed Mar 28, 2007 6:56 am Post subject: Window does not show |
|
|
I have only tested this on Vista (beta) so far (AHK version: 1.0.46.10) but it seems like a possible bug. If +hide is specified as an option but an initial size is not specified for a window (height and width) the window does not get displayed using Gui, Show later in the code. The taskbar item is there but the window doesn't get displayed. Here's an example: | Code: | Gui, Show,+hide, test1
Gui, Show, h200 w200, test1 | Specifying an intial size seems to work... | Code: | Gui, Show, h1 w1 +hide, test1
Gui, Show, h200 w200, test1 |
|
|
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Wed Mar 28, 2007 12:35 pm Post subject: |
|
|
It seems to happen on XP too. The window behaves as though it's minimized.
I suspect this is a quirk of the OS. And since it only happens when the window is completely empty (i.e. of size zero, with no controls in it), it's probably too obscure to add extra code for.
In any case, it's good to have it mentioned here in case anyone else encounters it.
Thanks. |
|