FormattedHeight Limit!

Rick Harrison harrison at all-auctions.com
Mon Aug 6 19:57:48 EDT 2012


Hi Dan,

An interesting idea, however the problem is with the following line of code,
which takes place in the preOpenCard script.

      set the height of field "ViewingField5" of this card to tHeight5

(When tHeight5 > 32768 the above line of code fails in the iOS Simulator
and does not complete any more script statements after that line with no
error message being generated.  At this point nothing is being executed
on the group.  It is a variable going beyond the limit here.  Is there any way
to make the variable bigger like a double precision integer or some such thing?)

Suggestions?

Thanks,

Rick

On Aug 6, 2012, at 5:41 PM, Dan Friedman wrote:

> Rick,
> 
> One thought is to not use scroll the grouped field for your iOS scroller, but rather scroll the field itself.   In your scrollerDidScroll message, scroll the field, not the scroll of the group.  This is what I use when I suspect the FormattedHeight may be larger than the allowable range.
> 
> Hope that helps!
> 
> -Dan
> 
> 
>> Hi there,
>> 
>> I discovered that if I'm using large text
>> in my scrolling field of size 24, and I
>> have 1043 lines in my field, that the
>> Height of my field using FormattedHeight
>> equals 33,390 which apparently goes
>> beyond a limit of 32,768 and causes
>> an unreported error in the iOS Simulator.
>> 
>> I really want to use my larger font size,
>> and I don't want to cut down on the number
>> of lines in my field.  Any work arounds for this?
>> 
>> Thanks in advance,
>> 
>> Rick
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

__________________________________
Rick Harrison

You can buy my $10 music album "Funny Time Machine" digital CD on the iTunes Store Now!

To visit the iTunes Store now to listen to samples of my CD please click on the
following link.  (Please note you must have iTunes installed on your computer for this link to work.)  

http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewAlbum?playListId=213668290





More information about the use-livecode mailing list