Thomas An Posted July 27, 2006 Posted July 27, 2006 Hi all, Suppose there is a portal with thumbnail images ... ... is it possible to make it scroll sideways ? (ps This is like grasping at straws and I kinda know the answer, but just in case someone might have a pleasant surprising answer ) Thanks, -Thomas
Genx Posted July 27, 2006 Posted July 27, 2006 TECHNICALLY... yes, The way i might look at doing it (for 5 thumbnails) would be to use 6 fields in total (5 calc result container, 1 number) Assumptions: your thumbs are stored in a related table called "RelatedTable" and the field is called "Thumb". Calcs: 1) GetNthRecord( Thumb::RelatedTable ; number ) 2) GetNthRecord( Thumb::RelatedTable ; number +1) 3) GetNthRecord( Thumb::RelatedTable ; number +2) 4) GetNthRecord( Thumb::RelatedTable ; number +3) 5) GetNthRecord( Thumb::RelatedTable ; number +4) Then, default number to be 1, and for your left and right "scroll arrows" simply subtract or add 1 respectively to the number field. You will also most likely have to use the Refresh (or Refresh Window) script step in order to refresh your container fields. Also line up your calc fields left to right, 1-5. Hope this helped. ~Genx
Inky Phil Posted July 27, 2006 Posted July 27, 2006 This might help http://www.24usoftware.com/Portals#download Phil
comment Posted July 27, 2006 Posted July 27, 2006 Your 5 container calcs could be one repeating field. But GetNthRecord() is not available in version 7. Still, it can be done, using a value list and multiple single-row portals - see attached. HorizontalPortalSimple.fp7.zip
Thomas An Posted July 27, 2006 Author Posted July 27, 2006 (edited) wow ! Thank you all for the great tips ! I see it can only be done as a scripted solution (although it would be nice to see an option "show horizontal scroll bar" in the portal setup). About the scripts: Yes I am still on FM7 (but it seems I need to upgrade ) @comment: Thank you for the sample ... I am looking at it right now. EDIT: "comment", I like your solution for fm7. Very inventive. Thank You ! Edited July 27, 2006 by Guest
Recommended Posts
This topic is 6694 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now