Jump to content


Photo

Always display vertical scrollbar in ListView window?


  • Please log in to reply
3 replies to this topic

#1 Sidola

Sidola
  • Members
  • 51 posts

Posted 23 June 2012 - 01:11 PM

Hi,

Is there a way to make the vertical scrollbar always appear in a ListView? Like the ones you can add to text-boxes: <!-- m -->http://puu.sh/D45C<!-- m -->.
Did some searching, didn't find anything, you guys know of a solution?

Cheers,
Sid.

#2 HotKeyIt

HotKeyIt
  • Fellows
  • 6191 posts

Posted 24 June 2012 - 08:34 AM

Why would you need that?
I do not think it is possible.

How about simply setting the last Column wide enough to force it displaying?
Gui,Add,ListView,AltSubmit gListView,A|B|C
Gui,Show
return
GuiClose:
ExitApp
ListView:
LV_ModifyCol(3,400)
Return


#3 Tilter_of_Windmills

Tilter_of_Windmills
  • Members
  • 323 posts

Posted 25 June 2012 - 03:12 AM

Create a hidden column in a listview with r visible rows and fill r+1 rows of the hidden column with junk?

#4 Sidola

Sidola
  • Members
  • 51 posts

Posted 25 June 2012 - 06:42 AM

Why would you need that?
I do not think it is possible.

How about simply setting the last Column wide enough to force it displaying?

Gui,Add,ListView,AltSubmit gListView,A|B|C
Gui,Show
return
GuiClose:
ExitApp
ListView:
LV_ModifyCol(3,400)
Return

Vertical scrollbar, not horizontal. The reason I want to achieve this is because I want my last column to cover what's rest of the window. This works fine as long as there is no scrolling, but as soon as the content exceeds the window it forces the vertical scrollbar, which makes the window too small, and in turn forces the horizontal scrollbar. The reason I wanted to force the vertical bar was to adjust the last column to that width already before there were enough content to scroll.

Here's how my list would look pre-scrolling.
Gui,Add,ListView,AltSubmit grid gListView,A|B|C
Gui,Show
return
GuiClose:
ExitApp
ListView:
LV_ModifyCol(3,186)
Return

Create a hidden column in a listview with r visible rows and fill r+1 rows of the hidden column with junk?

This could work I guess, but it leaves that empty awkward row. :p