Control Options +hwndOutputVar no Error raised

Discuss the future of the AutoHotkey language
HotKeyIt
Posts: 1374
Joined: 29 Sep 2013, 18:35
Contact:

Control Options +hwndOutputVar no Error raised

18 Jun 2017, 04:49

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

(gui:=GuiCreate()).OnEvent("Close","GuiClose")
gui.AddListView("w200 h200 hwndHListView")
gui.Show()
Return
GuiClose(){
ExitApp
}


Above code does not raise an error for hwndHListView, but since +hwnd is not supported anymore we get unexpected result.
Error for GuiCreate is already raised so it should be raised for controls as well.
lexikos
Posts: 5329
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: Control Options +hwndOutputVar no Error raised

18 Jun 2017, 22:08

Height values aren't validated. I'm pretty sure you're just setting the height to 0.

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 9 guests