Image library display and datagrid
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Image library display and datagrid
Hi,
yet another datagrid posting.....
I have a gallery of images (thousands, say), and before I go down a dead end coding up a datagrid, I thought I'd ask the experts here !
I want to display each image using the whole screen of the device. As I navigate left or right, I want the next image to slide into view. Navigation eventually will be finger gestures on an ipad, and this is similar to the way an ipad navigates through an image gallery.
This is horizontal scrolling, and is a datagrid the best way to go about it ?
I was thinking the template row would only need a few images, and as the user scrolls, the code just replaces the filenames into the array. So if I have images A,B,C,D,E,F to show, and I am looking at C full-screen, my datagrid array only needs to have images B, C and D loaded. If I slide D into view, C moves left. When D is fully visible, I reload the datagrid array with C, D, and E, ready for the next sliding left or right.
Is this the right way to go about it please ?
Thanks
yet another datagrid posting.....
I have a gallery of images (thousands, say), and before I go down a dead end coding up a datagrid, I thought I'd ask the experts here !
I want to display each image using the whole screen of the device. As I navigate left or right, I want the next image to slide into view. Navigation eventually will be finger gestures on an ipad, and this is similar to the way an ipad navigates through an image gallery.
This is horizontal scrolling, and is a datagrid the best way to go about it ?
I was thinking the template row would only need a few images, and as the user scrolls, the code just replaces the filenames into the array. So if I have images A,B,C,D,E,F to show, and I am looking at C full-screen, my datagrid array only needs to have images B, C and D loaded. If I slide D into view, C moves left. When D is fully visible, I reload the datagrid array with C, D, and E, ready for the next sliding left or right.
Is this the right way to go about it please ?
Thanks
Re: Image library display and datagrid
Hi Kevin,
don't use a datagrid, that is not the right tool for this job!
As a quick idea I would generate a html page with all images on the fly and use
a browser object to display the html to handle smooth scrolling "natively"
Know what I mean?
Best
Klaus
don't use a datagrid, that is not the right tool for this job!
As a quick idea I would generate a html page with all images on the fly and use
a browser object to display the html to handle smooth scrolling "natively"

Know what I mean?
Best
Klaus
Re: Image library display and datagrid
Hi Klaus,
Thanks, I have dropped the idea of a datagrid.
However, whatever I use, I need to scroll, but I don't want scroll bars visible.
I have found a datagrid won't scroll if the scrollbars are disbaled (obvious), but there isn't an option to enable scrollbars and have scrollbars invisible.
I haven't tried html in the browser - can it retain the main contents of my window, eg, a toobar, etc, and just be visible as part of the screen ? Can I set the browser display to have no header, buttons, scrollbars, etc, and still have scrolling ?
I have thought also of having a bunch of objects, and just moving the objects in and out of view as the user scrolls. What do you think of that method ?
Thanks
Kevin
Thanks, I have dropped the idea of a datagrid.
However, whatever I use, I need to scroll, but I don't want scroll bars visible.
I have found a datagrid won't scroll if the scrollbars are disbaled (obvious), but there isn't an option to enable scrollbars and have scrollbars invisible.
I haven't tried html in the browser - can it retain the main contents of my window, eg, a toobar, etc, and just be visible as part of the screen ? Can I set the browser display to have no header, buttons, scrollbars, etc, and still have scrolling ?
I have thought also of having a bunch of objects, and just moving the objects in and out of view as the user scrolls. What do you think of that method ?
Thanks
Kevin
Re: Image library display and datagrid
Hi Kevin,
the "Browser object" will only supply the functionality to display an URL in a given area of the stack!
EVERTHING else like navigation, address field, toolbar etc, needs to be created by you, the programmer, if necessary
Please check the "Browser example" to see how it works:
Menu: Help -> Example stacks and resources -> Folder "Examples" -> "Browser example"
Best
Klaus
the "Browser object" will only supply the functionality to display an URL in a given area of the stack!
EVERTHING else like navigation, address field, toolbar etc, needs to be created by you, the programmer, if necessary

Please check the "Browser example" to see how it works:
Menu: Help -> Example stacks and resources -> Folder "Examples" -> "Browser example"
Best
Klaus
Re: Image library display and datagrid
Hi Klaus,
This is for the ipad, so it seems that most of the browser functions and keywords in the dictionary won't apply.
When building the standalone for ios, does livecode convert to the ios ui for a browser ? If so, I don't think this isn't going to do the trick.
Kevin
This is for the ipad, so it seems that most of the browser functions and keywords in the dictionary won't apply.
When building the standalone for ios, does livecode convert to the ios ui for a browser ? If so, I don't think this isn't going to do the trick.
Kevin
Re: Image library display and datagrid
Hi Kevin,
ah, sorry, thought this was for the desktop.
No, you need to script the special syntax for the iOS native "WebView" (= browser)
Check the "iOS Release Notes" (Menu: Help) for the exact syntax.
Best
Klaus
ah, sorry, thought this was for the desktop.
No, you need to script the special syntax for the iOS native "WebView" (= browser)
Check the "iOS Release Notes" (Menu: Help) for the exact syntax.
Best
Klaus