Jump to content

Select items in listbox fail

Go to solution Solved by Subz,

Recommended Posts

Can anyone tell me why this isn't working?

The result should be a few selected items in the listbox..

#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 437, 192, 124)
$List1 = GUICtrlCreateList('', 315, 5, 45, 95, BitOR($LBS_MULTIPLESEL,$WS_VSCROLL), 0)
GUICtrlSetData(-1, "a|b|c|d|e|f|g|h|i|j|k|l")
#EndRegion ### END Koda GUI section ###

ControlCommand($Form1, '', $List1, 'SetCurrentSelection', 1)
ControlCommand($Form1, '', $List1, 'SetCurrentSelection', 3)

;also failed attempt to make it work: _GUICtrlListBox_SelectString($List1, 'b')

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


Edited by TheAutomator
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...