Sign in to follow this  
Followers 0
mozart90

Listview - Problems With Selection Bar

2 posts in this topic

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

Share this post


Link to post
Share on other sites



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!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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  
Followers 0