Results 1 to 10 of 10

Thread: ListView FullRowSelect

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506

    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


  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Location
    UK
    Posts
    506
    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

  4. #4
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    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

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6
    Super Moderator Wokawidget's Avatar
    Join Date
    Nov 2001
    Location
    Headingly Occupation: Classified
    Posts
    9,632
    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

    Woka

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    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.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8
    Fanatic Member
    Join Date
    Jun 2003
    Location
    IL
    Posts
    739
    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?
    Motto: Anything for a laugh.

    Getting second place only means you are the first loser to cross the finish line.

  9. #9
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  10. #10
    Fanatic Member
    Join Date
    Jun 2003
    Location
    IL
    Posts
    739
    Thanks!
    Motto: Anything for a laugh.

    Getting second place only means you are the first loser to cross the finish line.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width