Results 1 to 5 of 5

Thread: Thumbnail navbar

  1. #1

    Thread Starter
    Member TheReverend's Avatar
    Join Date
    Jan 2002
    Location
    50° 51' N, 51° 13' W
    Posts
    50

    Thumbnail navbar

    I have a file containing 20 or 30 photos and i want the user to be able to see 4 or 5 of them at a time and use a forward or back button to scroll through the thumbnails, clicking on one when they want to see it bigger.
    I know how to load the images to the boxes but not based on button clicks to go through them all. Do i use an array? Is there a native control for this?

    Thanks in advance for any help!!
    To live is the rarest thing in the world. Most people exist, that is all.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    A control array of Image controls should work nicely, then you can move forward, or backward, based on the current control index.

  3. #3

    Thread Starter
    Member TheReverend's Avatar
    Join Date
    Jan 2002
    Location
    50° 51' N, 51° 13' W
    Posts
    50
    So how would i assign the array? Not too sure how to assign them as the contents of the directory would change all the time.
    Psuedo code something like this?
    navigate to folder containing files
    if files exist
    loop through and enter into array
    navigate through array using buttons that -1 or +1 to the array index

    Am i on the right track?
    Thanks for helping a newbie understand some fundamentals...
    To live is the rarest thing in the world. Most people exist, that is all.

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    You can use a Folder control (I think) and find all the BMP, JPG, JPEG, and GIF files in it. Then, count how many there are, and index your top bound at that. Then simply load the pictures one by one into this array.
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

  5. #5

    Thread Starter
    Member TheReverend's Avatar
    Join Date
    Jan 2002
    Location
    50° 51' N, 51° 13' W
    Posts
    50

    Thanks Again!!

    I got it to work...thanks for the advice!!!!
    To live is the rarest thing in the world. Most people exist, that is all.

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