I think it would be help in the area for the
DropDownList control to have a note stating that the
Type property returns "DDL" and not "DropDownList". I assumed the latter because DDL is sort of an afterthought in the documentation since its mentioned in parenthesis as an optional alternative to add that control to a Gui. The same caveat applies to the Picture control. Adding it with "Picture" still results in the
Type property being returned as "Pic".
Code: Select all
#Requires AutoHotkey v2-
g := Gui()
g.Add("DropDownList", "vList", ["One", "Two", "Three"])
MsgBox(g["List"].Type) ; DDL