[a104] Bug: Gui.Options() Topic is solved

Report problems with documented functionality
User avatar
hoppfrosch
Posts: 443
Joined: 07 Oct 2013, 04:05
Location: Rhine-Maine-Area, Hesse, Germany
Contact:

[a104] Bug: Gui.Options()

05 Sep 2019, 00:52

Related to AutHotkey2 a104

Method Gui.Options() does not work anymore - Gui.Opt() has to be used instead.

As documentation states, both variants (Gui.Opt() or Gui.Options()) should work ...

This is either a bug in AHK2 a104 itself (both variants should work) . or in documentation of a104 (Gui.Options() documentation should be removed)

Code: Select all

MyGui := GuiCreate(,"TestGui")
MyGui.Add("Text", "x10 y1 h30 vWindowTitle Center", "TestIt")
MyGui.Opt("+Resize +MinSize200x100")  ; <------ WORKS
; MyGui.Options("+Resize +MinSize200x100")  ; <------ DOES NOT WORK ANYMORE
MyGui.Title := "GUI Testing"
MyGui.OnEvent("Close", "Test_OnClose") 
MyGui.Show 

Test_OnClose(Gui) {
  ExitApp
}
User avatar
Ragnar
Posts: 613
Joined: 30 Sep 2013, 15:25

Re: [a104] Bug: Gui.Options()  Topic is solved

05 Sep 2019, 03:18

This as well as Gui.Cancel (= .Hide), GuiControl.Options (= .Opt) and File.Position (= .Pos) have been removed on purpose when Lexikos changed the way objects and classes work. I'll submit a pull request on GitHub.
User avatar
jeeswg
Posts: 6902
Joined: 19 Dec 2016, 01:58
Location: UK

Re: [a104] Bug: Gui.Options()

07 Sep 2019, 16:28

I've updated the method lists, linked below, in response to a104, and the changes mentioned above.
People are welcome to mention anything that needs updating there. Thanks.

list of every object type/property/method - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=37&t=44081
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 20 guests