On 27/09/2013, at 08:39 AM, Charles E Buchwald wrote:

> Hi Igor,
> 
> I'm not that good with datagrids myself, but...
> 
> I think to find the total height of the content of the datagrid, you have to 
> use the formattedHeight property.

The datagrid has its own version of formattedHeight - dgFormattedHeight. What I 
usually do is create a locked group that just contains the datagrid (you may 
need to group the datagrid and a dummy object first and then delete the dummy 
object to create a group that just contains the datagrid). I then set the 
height of the datagrid to its dgFormattedHeight (realigning it to the top of 
the group if necessary) and scroll it with a mobile scroller control.

Actually your best bet is probably just to grab Monte's mergDataGridScroller 
control from the mergExt website...

http://mergext.com/controls/mergdatagridscroller/

...as it handles all of this for you :)

Terry...


> 
> To implement scrolling on Android, you use mobileControlCreate to create a 
> mobile scroller control, which you then use to send scrolling messages to 
> your datagrid. There are lessons on this somewhere.
> 
> And for referencing images on mobile, you can copy them like you did, but to 
> refer to them you have to set the defaultFolder property. There are a lot of 
> rules for folders on all the different platforms.... Perhaps someone else on 
> the list can explain them more clearly then I can.
> 
> I know I'm short on details here... hope this puts you on the scent...
> 
> Cheers,
> - Charles
> 
> On 26 Sep 2013, at 5:25 PM, Nicolas Cueto <nicon...@gmail.com> wrote:
> 
>> Hmm... Hello? Is there anybody in there? Just nod if you can hear me...
>> 
>> With the number of messages mistakenly labelled as spam, thought I'd try.
>> 
>> 
>> On Thu, Sep 26, 2013 at 3:35 PM, Nicolas Cueto <nicon...@gmail.com> wrote:
>> 
>>> Not knowing much about data grids in general, let alone on mobile, I'm
>>> studying the sample stack from LiveCode Lessons on this topic.
>>> 
>>> On the desktop, all's ok. On my Android device, some problems.
>>> 
>>> How to find out the vertical length of data when it's taller than the
>>> datagrid object?
>>> 
>>> How to implement an Android-style scroll when vertical length does exceed
>>> object height?
>>> 
>>> And, how to reference images in a datagrid object?
>>> 
>>> About that last one. On the sample stack from LiveCode Lessons, the image
>>> path is "images/monkey.jpg". So in "Standalone settings > Copy file" I
>>> selected both the folder and the image itself, with "Copy Referenced Files"
>>> both checked and unchecked. But, no monkey on the mobile datagrid.
>>> 
>>> Cheers.
>>> --
>>> Nicolas Cueto
>>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription 
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> --
> Charles E. Buchwald
> CEO/Director General
> 
> Museografica Digital
> http://digital.museografica.com
> 
> Email Notice: http://wp.me/P3aT4d-33
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 

Dr Terry Judd
Senior Lecturer in Medical Education
Medical Education Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne






_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to