1.1.27.06 can not see child window Topic is solved

Report problems with documented functionality
serzh82saratov
Posts: 137
Joined: 01 Jul 2017, 03:04

1.1.27.06 can not see child window

17 Jan 2018, 11:21

Code: Select all

Gui, +HWNDhGui
Gui, 2: -Caption +Parent%hGui%  
Gui, 2: Add, Slider
Gui, 2: Show, x0 y0
Gui, Show, w222 h222
Return
1.1.27.03 it works.
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: 1.1.27.06 can not see child window

18 Jan 2018, 04:32

In previous versions if the child window's position was not specified, the child window was centered according to the dimensions of the work area (SPI_GETWORKAREA), but since child windows are positioned relative to the parent GUI, this always resulted in the child GUI being invisible. Now the child window is centered according to the dimensions of the parent GUI.

The dimensions used for centering were also used for restricting the first Gui Show (if size was unspecified). That being the case, the child window is currently restricted to 0x0 if the parent GUI has not yet been sized. You can work around this by calling Gui, Show, Hide w222 h222 (or without Hide) before showing the child GUI.
serzh82saratov
Posts: 137
Joined: 01 Jul 2017, 03:04

Re: 1.1.27.06 can not see child window

18 Jan 2018, 13:26

But the old scripts do not work now, suggest changing everything, or maybe leaving the same behavior?
What is the conflict?
lexikos
Posts: 9583
Joined: 30 Sep 2013, 04:07
Contact:

Re: 1.1.27.06 can not see child window

20 Jan 2018, 18:05

You can use the workaround, or you can wait for the bug to be fixed.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 16 guests