Alex82 Posted January 29, 2013 Share Posted January 29, 2013 Hi, currently I am struggling with a problem. I hope someone can help me. I have a multiple select listbox and want to set a default selection on startup. _GUICtrlListBox_SetCurSel() does not support multiple select listboxes, does anyone know an alternative method to set a default selection? Thanks Link to comment Share on other sites More sharing options...
Alex82 Posted January 29, 2013 Author Share Posted January 29, 2013 I got it. I just took _GUICtrlListBox_SelItemRange instead Thanks anyway! Can be closed! Link to comment Share on other sites More sharing options...
FireFox Posted January 29, 2013 Share Posted January 29, 2013 Hi, You can set the style of your listbox like this : BitOR($GUI_SS_DEFAULT_LIST, $LBS_EXTENDEDSEL) And use the _GUICtrlListBox_SetSel function. Br, FireFox. 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