Jump to content

ListView Scroll


Recommended Posts

Hey,

I want to hide the vertical scroll bar of my listview! since just hiding the vertical bar with EnableScrollBar didn seem to work, I tried it with the Style $LVS_NOSCROLL and _GUIScrollBars_EnableScrollBar(GuiCtrlGethandle($ListView),$SB_Horz, $ESB_ENABLE_BOTH).. But now I gotta little weird white square on my listview and everything is flickering like hell...

anybody knows what to do? or another way to hide the bar? :)

Edited by ChaosCookie
Link to comment
Share on other sites

#include <File.au3>
#include <GUIListView.au3>

Global $hGUI, $hListView
Global $aLines

$hGUI = GUICreate('Title', 400, 200)
$hListView = GUICtrlGetHandle(GUICtrlCreateListView('Test', 0, 0, 400, 200,  BitOR($LVS_SINGLESEL, $LVS_SHOWSELALWAYS, $LVS_REPORT, $LVS_NOSCROLL), BitOR($LVS_EX_DOUBLEBUFFER, $LVS_EX_GRIDLINES)))
_GUICtrlListView_SetColumnWidth($hListView, 0, 400)

_FileReadToArray(@ScriptFullPath, $aLines)

For $i = 1 To $aLines[0]
    _GUICtrlListView_InsertItem($hListView, $aLines[$i])
Next

GUISetState()
Do
Until GUIGetMsg() = -3

_GUICtrlListView_Destroy($hListView)
GUIDelete()
Exit

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...