Page 1 of 1

Scroll two regions indipendently

PostPosted: 08 Mar 2014 12:31
by Davide
Hello,

I'm working on a layout with two content region, a secondary on the left and a primary on the right (contentTyp - like in your demo).
In the left content region I inserted a TIWCGJQMListBox and on the right (primary) I create some JQMLabel at runtime.
Cause in the listview I have many items I would like to scroll the listview mantaining fixed the primary content region.
Is it possible ?

I tryied the following :
    Set the CGScrollStyle of the listview. (no effect)
    Include the listbox in a region and set the CGScrollStyle of the region (no effect)
    Include the listbox in a region and set the CGScrollStyle of the region and the RenderHeight of the region too (The listview scroll right but the last element is cutted off for some pixels in height)

I'm testing it on a 10" Android tablet and I get different listview visualization when I switch between landscape and portrait orientation.

If you have a tablet you could check the behaviour on the Internet www.doxaonline.it.
To enter type "utente1" for username and password.

Thak you,
Davide

Re: Scroll two regions indipendently

PostPosted: 10 Mar 2014 10:59
by Alexander Bulei
Hi Davide,

Do you want scroll programmatically (by code)? Or on scroll (by finger), you want scroll only listview?

Best Regards.

Re: Scroll two regions indipendently

PostPosted: 10 Mar 2014 15:32
by Davide
Hi,

I wolud like to scroll only the listview by finger.
Thank you,
Davide

Re: Scroll two regions indipendently

PostPosted: 10 Mar 2014 19:03
by Alexander Bulei
Hi Davide,

I will check it asap.

Best Regards.

Re: Scroll two regions indipendently

PostPosted: 11 Mar 2014 15:10
by Alexander Bulei
Hi Davide,

In your case, you need only scroll the listview.
So you can enable the iscroll plugin by :

delphi code
IWCGJQMListView1.JQMIScrollViewOptions.Enable:= True;


However, i will implement the same functionality in JQMRegion.

Best Regards.