Re: height limit (was FormattedHeight Limit!)
Hi Dan, I have several fields on one card so I don't want the field to display on the entire card, as it ruins everything else. I understand you are trying to use that as an example, but other than the display what should I be setting the rect to if not the size of the contents for scrolling? It is the Livecode height variable in pixels that has the limitation of 32,768. Perhaps if you had some example code to share things might make more sense? Your help is greatly appreciated! Rick On Aug 7, 2012, at 12:08 AM, Dan Friedman wrote: Rick, Don't change the height of the field to match it's contents, set it to the display size. For example, if your field is to *display* on the entire screen, then do this: set the rect of fld ViewingField5 to the rect of this card Then, fill it with the data. Next, set the iOS scroller's contentRect to (the formattedRect of field ViewingField5). Finally, in your scrollerDidScroll message, don't set the scroll of the group containing field ViewingField5, simply set the scroll of field ViewingField5. Make sense? Works fine for me. -Dan ___ 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
FormattedHeight Limit!
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: FormattedHeight Limit!
Seems like you can either 1) split the text across two fields, or 2) show only the lines that will fit comfortably within the field's rect at any one time Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Rick Harrison wrote: 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ 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
Re: FormattedHeight Limit!
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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: FormattedHeight Limit!
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@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 ___ 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
Re: FormattedHeight Limit!
set the height of field ViewingField5 of this card to max(tHeight5, 32768) will that work? Bob On Aug 6, 2012, at 4:57 PM, Rick Harrison wrote: set the height of field ViewingField5 of this card to tHeight5 ___ 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
Re: FormattedHeight Limit!
Hi Bob, The limit will keep the script from blowing up, but then the field won't display all of the data. The last several lines are cut off from the display. Thanks anyways, Rick On Aug 6, 2012, at 8:15 PM, Bob Sneidar wrote: set the height of field ViewingField5 of this card to max(tHeight5, 32768) will that work? Bob On Aug 6, 2012, at 4:57 PM, Rick Harrison wrote: set the height of field ViewingField5 of this card to tHeight5 ___ 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
Re: FormattedHeight Limit!
Obvious maybe, but why not just remove the first several lines when past the half way mark to the bottom of the field and vice versa when going up to the beginning of the field… Thomas J McGrath III 3mcgr...@comcast.net Lazy River Software http://lazyriver.on-rev.com On Aug 6, 2012, at 9:47 PM, Rick Harrison harri...@all-auctions.com wrote: Hi Bob, The limit will keep the script from blowing up, but then the field won't display all of the data. The last several lines are cut off from the display. Thanks anyways, Rick On Aug 6, 2012, at 8:15 PM, Bob Sneidar wrote: set the height of field ViewingField5 of this card to max(tHeight5, 32768) will that work? Bob On Aug 6, 2012, at 4:57 PM, Rick Harrison wrote: set the height of field ViewingField5 of this card to tHeight5 ___ 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 ___ 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
Re: FormattedHeight Limit!
Rick, Don't change the height of the field to match it's contents, set it to the display size. For example, if your field is to *display* on the entire screen, then do this: set the rect of fld ViewingField5 to the rect of this card Then, fill it with the data. Next, set the iOS scroller's contentRect to (the formattedRect of field ViewingField5). Finally, in your scrollerDidScroll message, don't set the scroll of the group containing field ViewingField5, simply set the scroll of field ViewingField5. Make sense? Works fine for me. -Dan 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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode