mozart90 Posted May 8, 2006 Share Posted May 8, 2006 Hi I have created a listview ($Files = GUICtrlCreateList). After starting the skript the list view has the focus but how can I manage to get the blue selection bar on the first item of the list automatically. It is very uncomfortable to move the curser key to get the blue selection bar... Has anybody an idea? Greetings mozart90 Easy Zip Compression using XP Link to comment Share on other sites More sharing options...
marfdaman Posted May 8, 2006 Share Posted May 8, 2006 Hi I have created a listview ($Files = GUICtrlCreateList). After starting the skript the list view has the focus but how can I manage to get the blue selection bar on the first item of the list automatically. It is very uncomfortable to move the curser key to get the blue selection bar... Has anybody an idea? Greetings mozart90 #include <GUIConstants.au3> GUICreate("test") $files = GUICtrlCreateList("Text1", 1, 1); Create list with item "Text1" GUICtrlSetData($files, "Text2"); Create second item in list called "Text2" GUICtrlSetData($files, "Text3"); Idem GUICtrlSetData($files, "Text1"); Because "Text1" already exists, it is set as default GUISetState(@SW_SHOW) While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE Exit EndSelect WEnd Regards Don't take my pic to serious...~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~You Looked, but you did not see!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now