JS Client NativeList $vscroll

Michael Houlberg michael at houlbergdevelopment.com
Mon Sep 13 17:25:04 UTC 2021


Phil,

The Native List creates a list that looks much like the list of emails in the Apple Mail app with a complex line item consisting of elements with different fonts.  I tried to get something similar by using a Complex Grid, but then you can’t accomplish a single evclick on it like with the Native List.

My app is running in the iOS Wrapper targeting iPads.

Michael Houlberg
Houlberg Development, LLC

> On Sep 13, 2021, at 1:59 AM, Phil (OmnisList) via omnisdev-en <omnisdev-en at lists.omnis-dev.com> wrote:
> 
> Hi Michael,
> 
> What is the difference that the Native List control brings?
> 
> What does the Native bit mean... Native to what?
> 
> Curious as I've never really looked at these 3 objects, I've managed with the normal List Control, and now I'm wondering, have a missed something useful here.
> 
> regards
> Phil Potter
> Based in Chester in the UK.
> 
> On 10/09/2021 21:26, Michael Houlberg wrote:
>> JS Client experts:
>> 
>> I’m using the JS Client and running my app in the Omnis Wrapper on iPad.
>> 
>> I like the NativeList control for a number of reasons, but there is a functionality that is missing, the $vscroll property that other list controls have.  Here I’m filling a list and I want to move the current line to the last line in the list, but I also want it to scroll down to show that line.  If the selected line is below the viewable area, it selects the line correctly, but the scroll bar is positioned at the very top of the list so you don’t see the selected line.
>> 
>> Do ivCallList.$select(con("WHERE fCalls.ad_ID =",ivID))
>> Do ivCallList.$fetch(kFetchAll)
>> Do ivCallList.$sort($ref.CallDate,kFalse)
>> Calculate ivCallList.$line as ivCallList.$linecount
>> 
>> # $vscroll is not a property of the NativeList control so this doesn't work
>> Calculate $cwind.$objs.MainPane.$objs.CallList.$vscroll as ivCallList.$linecount
>> 
>> Does anyone have some other magic way I can get the list to scroll down to this line?
>> 
>> There are other places in the program where I search for a specific record in a list to select it, and if that line is below the viewable area, it’s the same problem.
>> 
>> Thanks,
>> Michael Houlberg
>> Houlberg Development, LLC
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com
> 
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
> Start a new message -> mailto:omnisdev-en at lists.omnis-dev.com 



More information about the omnisdev-en mailing list