Page 1 of 1

1.1.27.06 can not see child window

Posted: 17 Jan 2018, 11:21
by serzh82saratov

Code: [Select all] [Download] GeSHi © Codebox Plus

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.

Re: 1.1.27.06 can not see child window

Posted: 18 Jan 2018, 04:32
by lexikos
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.

Re: 1.1.27.06 can not see child window

Posted: 18 Jan 2018, 13:26
by serzh82saratov
But the old scripts do not work now, suggest changing everything, or maybe leaving the same behavior?
What is the conflict?

Re: 1.1.27.06 can not see child window

Posted: 20 Jan 2018, 18:05
by lexikos
You can use the workaround, or you can wait for the bug to be fixed.

Re: 1.1.27.06 can not see child window  Topic is solved

Posted: 20 Jan 2018, 19:33
by lexikos
Fixed in v1.1.27.07.