Results 1 to 2 of 2

Thread: help for ListView EnsureVisible

  1. #1

    Thread Starter
    Registered User
    Join Date
    Apr 1999
    Location
    Brazil
    Posts
    144

    Post

    Can Someone show me a code that uses EnsureVisible that works? Using ListView 6.0!

    Thanls in advance.
    Jefferson

  2. #2
    Addicted Member
    Join Date
    May 1999
    Location
    Californ-I- A
    Posts
    207

    Post

    I use it when adding files to a listview as follows:

    Dim lv as listitem


    set lv = lvFiles.listitems.add ,,"Whatever"
    lv.tag = "Bla bal bla"
    lv.listsubitems.add ,, "Bla bla"
    lv.ensurevisible

    when you use the ensurevisible, the listview will automativally be scrolled (if necessary) to ensure that that item is seen. This gives a smooth scrolling (well, not all that smooth) effect when adding many items.

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