Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread How to make an iPhone like scroll page?
Thu, Aug 1 2013 11:28 AMPermanent Link

Matthew Jones

Has anyone experimented with a way to make a list like an iPhone address list? The
normal browser list does a pop-up thing, which is fine for that purpose, but I need
to have a longer list that can be scrolled on both desktop and iPad. I know that I
can click and drag things, but what are the best components to use? The popup menu
that someone posted was a form and panels.

I guess I could use a TPanel with scroll bars, and then have smaller panels with
the selections.

[fx: later]

Okay, basic experiment shows this works. The scroll bar doesn't show up on iPad,
but I can drag the panels. I may try to see if I can work out swipe to delete, but
that is minor. Any other experiences welcome!

/Matthew Jones/
Thu, Aug 1 2013 6:03 PMPermanent Link

Mark Brooks

Slikware

Avatar

>>Has anyone experimented with a way to make a list like an iPhone address list? The
>>normal browser list does a pop-up thing, which is fine for that purpose, but I need
>>to have a longer list that can be scrolled on both desktop and iPad. I know that I
>>can click and drag things, but what are the best components to use? The popup menu
>>that someone posted was a form and panels.

I do LOTS of this Mathew and am pretty certain that the "panel within a panel" method is currently the best option. Works nicely on all browsers that I've tried (mobile and desktop) and scales to hold quite large numbers of items. I have yet to crack the "swipe" though. I think this will need some work from Tim first.
Fri, Aug 2 2013 4:24 AMPermanent Link

Matthew Jones

Thanks. Do you have a good way to replicate a "sample" panel? I figure I'd set up a
panel, a label or two and an image (for an action button). Then I'd want to repeat
that multiple times. In my first application I did all this manually, but a way to
"duplicate" might be handy.

>  I have yet to crack the "swipe" though. I think this will need
> some work from Tim first.

Indeed - I think Tim is going to do touch support soon. But I know that I can use
mouse down/move/up to tap on a panel and drag it around the form, so it is probably
possible to do somehow.

/Matthew Jones/
Fri, Aug 2 2013 8:19 AMPermanent Link

Mark Brooks

Slikware

Avatar

>>Thanks. Do you have a good way to replicate a "sample" panel? I figure I'd set up a
>>panel, a label or two and an image (for an action button). Then I'd want to repeat
>>that multiple times. In my first application I did all this manually, but a way to
>>"duplicate" might be handy.

My framework creates these entities at run-time as opposed to design-time. This is because the content is fed from a REST server and varies greatly. The framework is quite complex since it encapsulates a hierarchy of page -> sheet -> element -> panel -> item.
Mon, Aug 5 2013 3:53 AMPermanent Link

Matthew Jones

What I'm doing is creating, manually at design time, is a set of template panels
and labels etc. Then at run-time I create new ones to match, and copy the
appropriate properties. It was the copying that I wondered if there is any better
way of doing - some sort of MyPanel.Duplicate or RTTI type thing. As it is I have a
function that takes a master panel and returns a copy.

/Matthew Jones/
Image