[BUG] Gui controls can't use x+-10 as position Topic is solved

Report problems with documented functionality
HakitoJin
Posts: 17
Joined: 02 Oct 2016, 17:20

[BUG] Gui controls can't use x+-10 as position

08 Mar 2019, 07:08

This:

Code: Select all

gui:=guicreate("")
gui.add("button","x5 w200 h200","large one")
gui.add("button","x+-10","small one")
gui.show("")
Gives this error:
Error: Invalid option.
Specifically: x+-10
(can't post images)
Last edited by HakitoJin on 08 Mar 2019, 07:39, edited 1 time in total.
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: [AHK2] Gui controls can't use x+-10 as position

08 Mar 2019, 07:38

since it works in ahk_v1
appears to be bugged in v2, indeed
User avatar
kczx3
Posts: 1640
Joined: 06 Oct 2015, 21:39

Re: [BUG] Gui controls can't use x+-10 as position

08 Mar 2019, 21:22

Yeah I had this problem a while ago
Helgef
Posts: 4709
Joined: 17 Jul 2016, 01:02
Contact:

Re: [BUG] Gui controls can't use x+-10 as position

09 Mar 2019, 09:44

It is a bug since the documentation states this is a valid option,
add wrote:Since negative numbers such as X-10 are reserved for absolute positioning, to use a negative offset, include a plus sign in front of it. For example: X+-10
Cheers.

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 42 guests