Jump to content
Sign in to follow this  
yawoo

Listbox with horizontal scoll bar

Recommended Posts

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 by yawoo

Share this post


Link to post
Share on other sites

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.
  :)

Share this post


Link to post
Share on other sites

$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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...