yawoo Posted April 24, 2005 Share Posted April 24, 2005 (edited) Is it possible to enable the horizontal scroll bar within the listbox? I have list item too long to show within the listbox. I cannot find any option to enable for the listbox. And I don't want to use listview, since I only have one column item for the list. Thx a lot, Yawoo Edited April 24, 2005 by yawoo Link to comment Share on other sites More sharing options...
Developers Jos Posted April 24, 2005 Developers Share Posted April 24, 2005 Is it possible to enable the horizontal scroll bar within the listbox?I have list item too long to show within the listbox. I cannot find any option to enable for the listbox. And I don't want to use listview, since I only have one column item for the list.Thx a lot,Yawoo<{POST_SNAPBACK}>$mylist=GUICtrlCreateList ("buttons that have been clicked", 176,32,121,97,$WS_HSCROLL) SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
yawoo Posted April 24, 2005 Author Share Posted April 24, 2005 $mylist=GUICtrlCreateList ("buttons that have been clicked", 176,32,121,97,$WS_HSCROLL)<{POST_SNAPBACK}>Thx a lot! It works.It seems that it also require to set GUICtrlSetLimit which should be longer than the width of the listbox, otherwise the scrollbar will not show. Link to comment Share on other sites More sharing options...
yawoo Posted April 24, 2005 Author Share Posted April 24, 2005 I have another question. Could I read back all the items of the listbox, even I have not selected any item of the listbox? Thx Link to comment Share on other sites More sharing options...
yawoo Posted April 24, 2005 Author Share Posted April 24, 2005 I have found someone's script having illustrated it, although I don't understand the details, it works anyway.http://www.autoitscript.com/forum/index.php?showtopic=7999For $i = 0 to GuiCtrlSendMsg($Listbox, 0x018B, 0, 0) - 1 $item[$i] = GuiCtrlRecvMsg($Listbox, 0x0189, $i, 1)Next Link to comment Share on other sites More sharing options...
LondonNDIB Posted January 10, 2006 Share Posted January 10, 2006 Thx a lot! It works.It seems that it also require to set GUICtrlSetLimit which should be longer than the width of the listbox, otherwise the scrollbar will not show.Thanks for finding that out! It'd be nice if this was documented somewhere... it was driving me crazy. 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