Hi,
If I use +Label before +Owner +AlwaysOnTop +ToolWindow
the options have no effect. They only work if +Label is done after it.
![Photo](https://secure.gravatar.com/avatar/00de659c1c25c03c4d6c46d395ec74a4?s=100&d=%2F%2Fwww.autohotkey.com%2Fboard%2Fpublic%2Fstyle_images%2Fortem%2Fprofile%2Fdefault_large.png)
Gui, +Label and +Owner
Started by
Tekl
, Aug 17 2006 11:17 AM
4 replies to this topic
I can't reproduce it with the following test script:
By the way, the following wording was recently added:
Gui +LabelX +AlwaysOnTop +ToolWindow +Owner2
Gui 2:Add, Text,, Window #2 (owns Window #1) Gui 2:Show [color=darkred]Gui +LabelX[/color] Gui +AlwaysOnTop +ToolWindow +Owner2 Gui, Add, Text,, Window #1 Gui Show return XClose: ExitAppIf it's possible for you to create a simple script that reproduces it, I'd appreciate it.
By the way, the following wording was recently added:
For example, it's a little more efficient to put all options in one line such as:For performance reasons, it is better to set all options in a single line, and to do so before creating the window (that is, before any use of other sub-commands such as "Gui Add").
Gui +LabelX +AlwaysOnTop +ToolWindow +Owner2
#2
-
Posted 20 August 2006 - 05:48 PM
![Gui, +Label and +Owner: post #2](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
Hi Chris,
I changed the script so it does not work as expected:
I don't see the ToolWindow anymore, just a normal window.
I changed the script so it does not work as expected:
Gui, 25:Default Gui +LabelY Gui Add, Text,, Window #2 (owns Window #1) Gui Show Gui, 5:Default Gui +LabelX Gui +Owner25 +AlwaysOnTop +ToolWindow Gui, Add, Text,, Window #1 Gui Show return XEscape: XClose: ExitApp YEscape: YClose: ExitApp
I don't see the ToolWindow anymore, just a normal window.
#3
-
Posted 21 August 2006 - 08:28 AM
![Gui, +Label and +Owner: post #3](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)
Tekl
Thanks for the script. This problem is caused by the fact that the first line below creates its window:
Gui +LabelX
Gui +Owner25 +AlwaysOnTop +ToolWindow
Because the window is created, the second line's +Owner cannot succeed (as documented). But due to a bug, the failure of +owner also prevents the options to the right of it from being processed.
This will be fixed in the next update. In the meantime (and for all future scripts), it's best to combine all +Options on a single line (including +Label) because it substantially improves performance.
Thanks for reporting this.
Gui +LabelX
Gui +Owner25 +AlwaysOnTop +ToolWindow
Because the window is created, the second line's +Owner cannot succeed (as documented). But due to a bug, the failure of +owner also prevents the options to the right of it from being processed.
This will be fixed in the next update. In the meantime (and for all future scripts), it's best to combine all +Options on a single line (including +Label) because it substantially improves performance.
Thanks for reporting this.
#4
-
Posted 21 August 2006 - 01:36 PM
![Gui, +Label and +Owner: post #4](http://www.autohotkey.com/board/public/style_images/ortem/icon_share.png)