Page 1 of 1

[AHK_H v2]DropDownList

Posted: 02 Dec 2017, 15:38
by lsh
When you run the script below :
Invalud value error
How do I change ' ddl ' to the desired value?

Code: Select all

; AHK version:    AHK_H 2.0-a081-H019
; Tested on:        Win 10 Pro (x64)

#singleinstance force
#Persistent

Gui := GuiCreate()
ddl := Gui.Add("DDL", "x5 y12 r10 w200", "a|b|c|d")
hLv := ddl.Hwnd
Gui.Show("xCenter yCenter w215 h250")
Gui.OnEvent("Close", "Gui_Close")
msgbox "ddl text!!"
ddl.value:="e|f|g|h|"
return

EXIT:
Gui.Destroy()
ExitApp
return

Gui_Close()
{
    gosub("EXIT")
}

Re: [AHK_H v2]DropDownList  Topic is solved

Posted: 02 Dec 2017, 16:44
by HotKeyIt
See GuiControl Object:

Code: Select all

ddl.Delete()
ddl.Add("e|f|g|h")