Jump to content
Sign in to follow this  
Rodger

Gridlines in ListView

Recommended Posts

Rodger

Hello,

I have coded gridlines in my listview like this:

_GUICtrlListView_SetExtendedListViewStyle ($hSummeryListView, BitOR($LVS_EX_GRIDLINES, $LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES))

The gridlines are shown in the listview but the moment you start scrolling in the listview, the gridlines disappear?!

Is there a way to get them back, can the gridlines be "repainted"

Thanks,

Rodger

Share this post


Link to post
Share on other sites
ptrex

@rodger

try this example and see if it works for you.

$ListView1 = GUICtrlCreateListView("Files |Date |Size", 10, 45, 957, 478,-1, BitOR($LVS_SHOWSELALWAYS,$LVS_REPORT)) 
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_HEADERDRAGDROP, $LVS_EX_HEADERDRAGDROP)
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_FULLROWSELECT, $LVS_EX_FULLROWSELECT)
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_TRACKSELECT, $LVS_EX_TRACKSELECT)
GUICtrlSetImage($ListView1, "compstui.dll", -15)
GUICtrlSetResizing ($ListView1,$GUI_DOCKAUTO)

regards,

ptrex

Share this post


Link to post
Share on other sites
Rodger

@rodger

try this example and see if it works for you.

$ListView1 = GUICtrlCreateListView("Files |Date |Size", 10, 45, 957, 478,-1, BitOR($LVS_SHOWSELALWAYS,$LVS_REPORT)) 
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_HEADERDRAGDROP, $LVS_EX_HEADERDRAGDROP)
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_FULLROWSELECT, $LVS_EX_FULLROWSELECT)
GUICtrlSendMsg($listview1, $LVM_SETEXTENDEDLISTVIEWSTYLE, $LVS_EX_TRACKSELECT, $LVS_EX_TRACKSELECT)
GUICtrlSetImage($ListView1, "compstui.dll", -15)
GUICtrlSetResizing ($ListView1,$GUI_DOCKAUTO)

regards,

ptrex

Ok Thanks, I will try ....

Share this post


Link to post
Share on other sites
Rodger

Ok Thanks, I will try ....

Unfortunately it's a nogo :-(

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  

×