Results 1 to 40 of 4215

Thread: CommonControls (Replacement of the MS common controls)

Threaded View

  1. #11

    Thread Starter
    PowerPoster
    Join Date
    Jun 2012
    Posts
    2,742

    Re: CommonControls (Replacement of the MS common controls)

    Update released.

    Included 'VirtualListItems' that returns a collection of virtual list items.
    This is actually a limited/stripped down and mostly read-only version of the normal 'ListItems'. ('ListItems' feature is disabled when VirtualMode is turned on.)
    So when migrating a project from non-virtual to virtual this addition will for sure make things easier as you don't need to reference everywhere to the virtual data source. So you can then go here the re-direction of retrieving for example a text in 'VirtualListItems' which then fires the normal GetVirtualItem event.

    But most important you can control there some item states. For example the Selected state of an arbitrary index.
    Due to 'ListItems' not available for virtual mode list views you had to use some API. Now that's not necessary anymore.

    The Item property only accepts an Index As Long. No AddItem because everything remains controlled by the VirtualItemCount property. The Count property here is just for completeness and returns the same as VirtualItemCount.
    Name:  LvwVirtualListItems.png
Views: 6947
Size:  1.8 KB
    Again: Nothing was changed in the general virtual mode processing. This is just an addition for comfort and ease of migration. And to avoid some extra API work when going the virtual way. Also events like ItemClick will work in virtual mode. For there 'LvwListItem' will work as before even in virtual mode within these events.

    Quote Originally Posted by OldClock View Post
    I would like to start using VBCCR in a large existing project.
    For large existing projects I would recommend to use the ActiveX version of VBCCR in a reg-free way.
    Doing this way you don't have to load so much components into your large project. Also it is IDE-safe to use ActiveX version.
    After that you open each .frm file and replace all occurrences of 'ComctlLib' to 'VBCCR15' for example.
    You may also need to replace other stuff, like enum constants or class objects. For example 'ComctlLib.ListItem' will be 'VBCCR15.LvwListItem'.
    Last edited by Krool; Sep 27th, 2018 at 03:32 PM.

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