Jump to content

Search listbox


Recommended Posts

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

example:

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)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

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

    EndSwitch
WEnd
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...