RE: Mobile Scroller
Tom, Orientationchanged happens before the screen is actually rotated. This is why your scroll regions are not correct. Put your code in the resizestack handler. I delete and recreate the scroller, I don't remember if that is needed or I just started doing it that way. Scrollers work for me on both iOS and Android. If you are able to come up with your magic numbers that will make it scroll to the same place you must do a send in time for the 2 "mobileControlSet"s for both vScroll and hScroll. I use 100ms That being said although all my apps support both portrait and landscape I use Orientationchanged very very rarely but when you need it it's invaluable. Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Tom Glod via use-livecode Sent: Friday, June 18, 2021 9:23 PM To: How to use LiveCode Cc: Tom Glod Subject: Re: Mobile Scroller Ralph, it's in the orientationchanged handler Brian Thanks. !!! On Fri, Jun 18, 2021, 4:18 PM Brian Milby via use-livecode, < use-livecode@lists.runrev.com> wrote: > I have this working in SivaSiva for the stories module on Android. It > locks up on iOS so I have rotation disabled for now. In my use case, > the group is essentially the full screen with an image that is being > moved around. I’ll try to find the specific scripts tonight. > > Thanks, > Brian > > Sent from my iPhone > > > On Jun 18, 2021, at 3:06 PM, Ralph DiMola via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Tom, > > > > What handler are you doing this in? > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdim...@evergreeninfo.net > > > > -Original Message- > > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On > Behalf > > Of Tom Glod via use-livecode > > Sent: Friday, June 18, 2021 2:51 PM > > To: How to use LiveCode > > Cc: Tom Glod > > Subject: Mobile Scroller > > > > Hi Folks, > > > > I implemented a MobileControl "Scroller" to scroll a group. Works great. > > However when I change the orientation, it no longer works correctly. > > > > > > - I tried to just update the properties relating to the rect > > - deleting / recreating > > > > > > mobileControlSet "CardContentScroller","visible",true > > > > mobileControlSet "CardContentScroller","rect",the rect of *group* > > "Card Content" of this card of me > > > > *put* 0,0,the width of *group* "Card Content" of this card of me,the > > formattedHeight of *group* "Card Content" of this card of me into > > tContentRect > > > > mobileControlSet "CardContentScroller","contentRect",tContentRect > > > > mobileControlSet "CardContentScroller","vIndicator",true > > > > > > but it still isn't updating properly. > > Not sure what i'm doing wrong. > > > > The code runs on the orientationChanged message > > > > Please help. > > > > Thanks, > > > > -- > > Tom Glod > > Founder & Developer > > MakeShyft R.D.A (www.makeshyft.com) > > Mobile:647.562.9411 > > ___ > > 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 > > ___ > 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 ___ 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: Mobile Scroller
Ralph, it's in the orientationchanged handler Brian Thanks. !!! On Fri, Jun 18, 2021, 4:18 PM Brian Milby via use-livecode, < use-livecode@lists.runrev.com> wrote: > I have this working in SivaSiva for the stories module on Android. It > locks up on iOS so I have rotation disabled for now. In my use case, the > group is essentially the full screen with an image that is being moved > around. I’ll try to find the specific scripts tonight. > > Thanks, > Brian > > Sent from my iPhone > > > On Jun 18, 2021, at 3:06 PM, Ralph DiMola via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > Tom, > > > > What handler are you doing this in? > > > > Ralph DiMola > > IT Director > > Evergreen Information Services > > rdim...@evergreeninfo.net > > > > -Original Message- > > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On > Behalf > > Of Tom Glod via use-livecode > > Sent: Friday, June 18, 2021 2:51 PM > > To: How to use LiveCode > > Cc: Tom Glod > > Subject: Mobile Scroller > > > > Hi Folks, > > > > I implemented a MobileControl "Scroller" to scroll a group. Works great. > > However when I change the orientation, it no longer works correctly. > > > > > > - I tried to just update the properties relating to the rect > > - deleting / recreating > > > > > > mobileControlSet "CardContentScroller","visible",true > > > > mobileControlSet "CardContentScroller","rect",the rect of *group* "Card > > Content" of this card of me > > > > *put* 0,0,the width of *group* "Card Content" of this card of me,the > > formattedHeight of *group* "Card Content" of this card of me into > > tContentRect > > > > mobileControlSet "CardContentScroller","contentRect",tContentRect > > > > mobileControlSet "CardContentScroller","vIndicator",true > > > > > > but it still isn't updating properly. > > Not sure what i'm doing wrong. > > > > The code runs on the orientationChanged message > > > > Please help. > > > > Thanks, > > > > -- > > Tom Glod > > Founder & Developer > > MakeShyft R.D.A (www.makeshyft.com) > > Mobile:647.562.9411 > > ___ > > 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 > > ___ > 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: Mobile Scroller
I have this working in SivaSiva for the stories module on Android. It locks up on iOS so I have rotation disabled for now. In my use case, the group is essentially the full screen with an image that is being moved around. I’ll try to find the specific scripts tonight. Thanks, Brian Sent from my iPhone > On Jun 18, 2021, at 3:06 PM, Ralph DiMola via use-livecode > wrote: > > Tom, > > What handler are you doing this in? > > Ralph DiMola > IT Director > Evergreen Information Services > rdim...@evergreeninfo.net > > -Original Message- > From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf > Of Tom Glod via use-livecode > Sent: Friday, June 18, 2021 2:51 PM > To: How to use LiveCode > Cc: Tom Glod > Subject: Mobile Scroller > > Hi Folks, > > I implemented a MobileControl "Scroller" to scroll a group. Works great. > However when I change the orientation, it no longer works correctly. > > > - I tried to just update the properties relating to the rect > - deleting / recreating > > > mobileControlSet "CardContentScroller","visible",true > > mobileControlSet "CardContentScroller","rect",the rect of *group* "Card > Content" of this card of me > > *put* 0,0,the width of *group* "Card Content" of this card of me,the > formattedHeight of *group* "Card Content" of this card of me into > tContentRect > > mobileControlSet "CardContentScroller","contentRect",tContentRect > > mobileControlSet "CardContentScroller","vIndicator",true > > > but it still isn't updating properly. > Not sure what i'm doing wrong. > > The code runs on the orientationChanged message > > Please help. > > Thanks, > > -- > Tom Glod > Founder & Developer > MakeShyft R.D.A (www.makeshyft.com) > Mobile:647.562.9411 > ___ > 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 ___ 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: Mobile Scroller
Tom, What handler are you doing this in? Ralph DiMola IT Director Evergreen Information Services rdim...@evergreeninfo.net -Original Message- From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Tom Glod via use-livecode Sent: Friday, June 18, 2021 2:51 PM To: How to use LiveCode Cc: Tom Glod Subject: Mobile Scroller Hi Folks, I implemented a MobileControl "Scroller" to scroll a group. Works great. However when I change the orientation, it no longer works correctly. - I tried to just update the properties relating to the rect - deleting / recreating mobileControlSet "CardContentScroller","visible",true mobileControlSet "CardContentScroller","rect",the rect of *group* "Card Content" of this card of me *put* 0,0,the width of *group* "Card Content" of this card of me,the formattedHeight of *group* "Card Content" of this card of me into tContentRect mobileControlSet "CardContentScroller","contentRect",tContentRect mobileControlSet "CardContentScroller","vIndicator",true but it still isn't updating properly. Not sure what i'm doing wrong. The code runs on the orientationChanged message Please help. Thanks, -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 ___ 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
Mobile Scroller
Hi Folks, I implemented a MobileControl "Scroller" to scroll a group. Works great. However when I change the orientation, it no longer works correctly. - I tried to just update the properties relating to the rect - deleting / recreating mobileControlSet "CardContentScroller","visible",true mobileControlSet "CardContentScroller","rect",the rect of *group* "Card Content" of this card of me *put* 0,0,the width of *group* "Card Content" of this card of me,the formattedHeight of *group* "Card Content" of this card of me into tContentRect mobileControlSet "CardContentScroller","contentRect",tContentRect mobileControlSet "CardContentScroller","vIndicator",true but it still isn't updating properly. Not sure what i'm doing wrong. The code runs on the orientationChanged message Please help. Thanks, -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 ___ 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
AW: AW: AW: codesigning FAILS with Umlaute
Hi Mark, anyhow, Apple has broken it in one of its latest releases. I have signed this same executable with umlaut for the last years successfully... Have a nice WE Tiemo -Ursprüngliche Nachricht- Von: use-livecode Im Auftrag von Mark Waddingham via use-livecode Gesendet: Freitag, 18. Juni 2021 14:05 An: How to use LiveCode Cc: Mark Waddingham Betreff: Re: AW: AW: codesigning FAILS with Umlaute On 2021-06-18 11:47, Tiemo via use-livecode wrote: > Strangely enough, codesigning and notarizing a package with umlauts > still works and is verified by Apple. > Since codesigning a package has to be done with "productsign" and not > "codesign" it looks as "codesign" is broken and not the shell. > Tiemo So Ian dug into this further - we think its the name of the executable in the plist which is the problem... Codesign expects this to be in 'decomposed' unicode form - so instead of the (combined) u-umlaut character, it needs to be u,combining-umlaut. Presumably this is because filenames in Apple FS's are always stored in decomposed unicode form, and codesign and friends expect exact byte equivalence between the entry in the plist, and that of the executable filename. Anyway, a little bit of a subtle issue, but one which will hopefully be fixed by using the normalizeText function appropriately in the S/B where it sorts out the plist :) Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ 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: AW: AW: codesigning FAILS with Umlaute
On 2021-06-18 11:47, Tiemo via use-livecode wrote: Strangely enough, codesigning and notarizing a package with umlauts still works and is verified by Apple. Since codesigning a package has to be done with "productsign" and not "codesign" it looks as "codesign" is broken and not the shell. Tiemo So Ian dug into this further - we think its the name of the executable in the plist which is the problem... Codesign expects this to be in 'decomposed' unicode form - so instead of the (combined) u-umlaut character, it needs to be u,combining-umlaut. Presumably this is because filenames in Apple FS's are always stored in decomposed unicode form, and codesign and friends expect exact byte equivalence between the entry in the plist, and that of the executable filename. Anyway, a little bit of a subtle issue, but one which will hopefully be fixed by using the normalizeText function appropriately in the S/B where it sorts out the plist :) Warmest Regards, Mark. -- Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ LiveCode: Everyone can create apps ___ 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
AW: AW: codesigning FAILS with Umlaute
Strangely enough, codesigning and notarizing a package with umlauts still works and is verified by Apple. Since codesigning a package has to be done with "productsign" and not "codesign" it looks as "codesign" is broken and not the shell. Tiemo -Ursprüngliche Nachricht- Von: use-livecode Im Auftrag von Tiemo via use-livecode Gesendet: Donnerstag, 17. Juni 2021 15:04 An: 'How to use LiveCode' Cc: toolb...@kestner.de Betreff: AW: AW: codesigning FAILS with Umlaute If it is codesign or the shell, the weird thing is, that Apple broke it. Codesigning worked for me in the terminal for years with my Umlaut app. The times of the 90th, when there was nothing more compatible as a Mac are gone forever. I love Windows! Tiemo -Ursprüngliche Nachricht- Von: use-livecode Im Auftrag von Paul Dupuis via use-livecode Gesendet: Donnerstag, 17. Juni 2021 13:42 An: use-livecode@lists.runrev.com Cc: Paul Dupuis Betreff: Re: AW: codesigning FAILS with Umlaute My guess (and it is just a guess) is that this failure has noting to do with Apple's codesigning. If, since 9.6.1, LiveCode does an ad-hoc code signing, I suspect it is doing that via a call to the "shell" command to issue the same codesign command you would do through Terminal under macOS. If so, the bug is in the engine's "shell" command, in that Shell does not support Unicode. See https://quality.livecode.com/show_bug.cgi?id=22334 Perhaps this will be incentive for LC to fix this bug. On 6/17/2021 3:02 AM, Tiemo via use-livecode wrote: > Hello Mark, > > thank you for jumping in with your expertise - it works! I appreciate > your efforts very much! > I never would have dared to rename an app after signing and notarization. > > I am so glad, you found a solution. My app is named since 12 years > "DGS-Wörterbuch", because the German spelling of "dictionary" is > "Wörterbuch" - with an Umlaut and nothing else. Every other spelling > wouldn't look very professional for a German. > > So probably the other issue of my first post (fail on building a > standalone with Umlaut) is related to the new ad-hoc signing feature > of LC 9.6. and is based on the same codesign bug of xCode (it worked > for years without problems). I will send a bug report to Apple. > > Thank you again! > Tiemo > > > -Ursprüngliche Nachricht- > Von: use-livecode Im Auftrag > von Mark Waddingham via use-livecode > Gesendet: Mittwoch, 16. Juni 2021 17:53 > An: How to use LiveCode > Cc: Mark Waddingham > Betreff: Re: codesigning FAILS with Umlaute > > On 2021-06-16 16:28, Tiemo via use-livecode wrote: >> Any idea? please no stories about your doctor experiences . >> > So I asked Ian to have a look into this - my first thought was that we > were missing an appropriate textEncode when building the shell command > in the S/B to do the codesigning... > > (The S/B since 9.6.1 does an 'ad-hoc' codesign on standalones as > otherwise > Catalina+ can complain) > > However, it would appear that 'codesign' does not like the executable > name (the bit in Contents/MacOS) having accented chars. > > So I think you'll have to tweak the app name in the S/B mac options to > remove the umlaut - then the internal exe will be fine; then after > you've built - just rename the app bundle to be the one with the umlaut. > > This shouldn't affect verification of the signed app at all as its > everything *inside* the .app folder which is signed (the internals are > - the plist contains a ref to the actual executable name, and plist is > used to generate the code signature, along with the other stuff in the app). > > Hope this helps! > > Mark. > > -- > Mark Waddingham ~ m...@livecode.com ~ http://www.livecode.com/ > LiveCode: Everyone can create apps > > ___ > 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 ___ 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 ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.run
Choose your LC Fate: Crash or Hang?
Here's a test stack and Word document to either Crash or Hang LC 9.6.2. This will be the first in my "Crash or Hang" LC Bug Report series! Two bug reports, which use the same test stack: https://quality.livecode.com/show_bug.cgi?id=23238 https://quality.livecode.com/show_bug.cgi?id=23239 Careful! This stack will Crash or Hang LC. Save your work first. Probably these two bugs only affect Windows. (But Mac reports are coming, as are non-Word reports.) I'll post more LC Bug reports to this "series" between client projects. I will also share some workarounds when I have a little time. Test code is optimized for recipe, and may vary from original use-case. BTW, it seems there is a history of similar LC clipboard issues: https://quality.livecode.com/show_bug.cgi?id=10853 https://quality.livecode.com/show_bug.cgi?id=20310 https://quality.livecode.com/show_bug.cgi?id=21906 Pasting is a fairly common activity for end users. They tend to assume that it will be accurate and robust. This series of reports and workarounds will help achieve that. Back to work/lurk mode; busy week! I'll comment on other threads later. Best wishes, Curry Kenworthy Custom Software Development "Better Methods, Better Results" LiveCode Training and Consulting http://livecodeconsulting.com/ ___ 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