|
-
Apr 20th, 2002, 04:31 PM
#1
Thread Starter
Member
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.
-
Apr 20th, 2002, 07:36 PM
#2
A control array of Image controls should work nicely, then you can move forward, or backward, based on the current control index.
-
Apr 20th, 2002, 08:12 PM
#3
Thread Starter
Member
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.
-
Apr 20th, 2002, 09:44 PM
#4
Good Ol' Platypus
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)
-
Apr 22nd, 2002, 11:25 AM
#5
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|