-
ListView FullRowSelect
On a listview how would I go about changing the point at which the fullrowselect starts?
If you're confused to what I mean look at the picture below, the fullrowselect starts after the first three column headers.
I'm sensing some flags with the SendMessage API could fix it, but I don't know where to start.
Cheers.
-adehh
http://www.calvertsparky.fsnet.co.uk/listview.jpg
-
I think it may have to do with the columns having an image list
associated with them. I think sub-classing is a good place to start.
I remember someone sub-classing a listview to change the
foregroung/background colors on sub items. Try a quick search
in the vbforums. It may point you in the right direction.
-
Ooer, sub-classing - never tried that one before. Did a search for subclass, listview and fullrowselect on google and here but didn't come up with anything interesting, do you think it's at all possible?
-adehh
-
Errr...that picture is not a listview...it's not possible with a listview and would be WAY to messy and a waste of time trying to code it in API. A listview is NOT a proper grid :(
U could download the S-Grid from http://www.vbaccelerator.com/home/VB/Code/Controls, that allows you to do it, and you can create a grid that looks identical to that in your picture.
The S-Grid is FREE and is a damn good control, the best free grid I have seen. God knows why it's free as some grid that you pay for are crapper...oh and you can also download the source code for S-Grid...
Hope that helps,
Adios
Woofer
-
The picture looks like it is a listview in report style with an image
list associated with it for the column header icons and
the link is a simpler method and saves time coding. Good
suggestion.
-
I can assure you that it isn't a listview...most grid pictures do look roughly like a listview, but quite blantantly arn't :(
People see a grid in windows, see the listview in VB and automatically assume that they are the same :(
Glad the link helps, there are some superb controls on that page :D
Woka
-
That is a fair assumption.
When I want to duplicate something I see in windows I use
Spy++ to get the actual class of the control. This way I know
which direction to go in first.
-
Hey Woka,
I downloaded the SGrid and the demonstration. I tried running the demonstration, but it says that the S-Grid.ocx is not properly registered. How do I register it so that I can run the demo?
-
I personally made it so that when I double click dll's and ocx's it would self register (by Open With regsvr32)
but if you want, you would go Start->Run
and type regsvr32 PATH+FILENAME of the ocx
-