Jump to content
Sign in to follow this  

Search listbox

Recommended Posts


Hi, i want to made some little search for listbox like in winamp...


there are 2 items AAAA and AAAdd,

i want when type in aaaa to aaadd and items ho don't have 'aaaa' in name disapear...

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("AForm1", 290, 322, 193, 115)
GUICtrlCreateInput("", 16, 40, 257, 21)
$Search = GUICtrlCreateLabel("Search", 128, 16, 38, 17)
$List1 = GUICtrlCreateList("", 16, 80, 257, 199, BitOR($LBS_SORT,$WS_VSCROLL))
GUICtrlSetData(-1, "AAAAAAAAAAA|ddddddddddddddddddd|eeeeee|aaaaaassssss|ddddddaaaaaa")
$Button1 = GUICtrlCreateButton("AButton1", 16, 288, 259, 25, 0)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.