Chained method calls not working
Issue #28
closed
The following type of chaining is not working at the moment.
MyGui.Add("Button",, "Exit This Example").OnEvent("Click", "MenuHandler")
The workaround is not difficult, only adds one extra line of code, but does require creating a variable.
MyBtn := MyGui.Add("Button",, "Exit This Example")
MyBtn.OnEvent("Click", "MenuHandler")
Comments (5)
-
repo owner -
reporter Retested with this code:
MyGui := Gui() MyLabel := MyGui.Add("Text", "w200", "Color will appear beow.") MyColorText := MyGui.Add("Text", "w200 xp y+10", "") MyColorButton := MyGui.Add("Button", "h25 w80 x10 y+10 +Default", "Pixel Color").OnEvent("Click", "GetPix") MyGui.Show() GetPix() { MyColorText.Text := PixelGetColor(pos["X"], pos["Y"]) }
-
reporter Marking resolved and closing
-
reporter - changed status to resolved
Resolved, thank you!
-
reporter - changed status to closed
Closed.
- Log in to comment
I’ve committed a fix, please test.