Search found 429 matches

by bwmilby
Sat Mar 27, 2021 2:24 pm
Forum: iOS Deployment
Topic: Detecting iOS Home Bar location
Replies: 4
Views: 3182

Re: Detecting iOS Home Bar location

About the only thing you could do is to use the screen ratio instead of actual pixel size to determine if it is going to have that virtual button. My guess is that Apple is going to eventually remove the physical button from all phones but in doing so the aspect ratio will likely remain taller/wider...
by bwmilby
Fri Mar 26, 2021 11:17 pm
Forum: Android Deployment
Topic: Setting the background colour or image for entire screen
Replies: 4
Views: 2616

Re: Setting the background colour or image for entire screen

I would take this a step further and say that Android should probably work like iOS where the screenrect includes the entire screen (including the areas behind the system header bar). I'm not sure if Material Design means that you should just set the colors for the the header bar background or if is...
by bwmilby
Fri Mar 26, 2021 11:10 pm
Forum: Android Deployment
Topic: Android error: Could not compile service support class
Replies: 19
Views: 28970

Re: Android error: Could not compile service support class

JDK may be an issue. I know that I'm still running JDK 8 (jdk1.8.0_231). I've been "scared" to try to update it due to experiences I've read about (and that was just that JDK 9 didn't seem to work). I'm also stuck at Catalina for now due to some other software that I use.
by bwmilby
Fri Mar 26, 2021 11:01 pm
Forum: iOS Deployment
Topic: Detecting iOS Home Bar location
Replies: 4
Views: 3182

Re: Detecting iOS Home Bar location

Check out: https://github.com/Himalayan-Academy/Siva-Siva-App/blob/nightly/libraries/lib_UIHandlers.livecodescript Lines 36-223 Key handlers are "_setPhoneModel" and "safe...Margin". You use "setCardCoords" to initialize. The reason for some of the orientation code is due to the project there are ti...
by bwmilby
Fri Mar 19, 2021 2:19 pm
Forum: Talking LiveCode
Topic: Why is the geometry manager still borked in 2021?!
Replies: 93
Views: 43412

Re: Why is the geometry manager still borked in 2021?!

I think the PI code is pretty solid (at least I have not seen an entry that I make not update properly). The issue that I’ve seen concerns added controls. The problem where I have not identified the source is that something is applying an invalid update when a control is added. The only thing that i...
by bwmilby
Tue Mar 16, 2021 2:23 pm
Forum: Talking LiveCode
Topic: Why is the geometry manager still borked in 2021?!
Replies: 93
Views: 43412

Re: Why is the geometry manager still borked in 2021?!

Now that I see your actual recipe, I have reproduced the issue. One way to avoid the issue until fixed is to issue revcachegeometry true In the message box before resizing after adding controls. What I observed is that the cache distances were incorrectly updated when a control was added. When resiz...
by bwmilby
Tue Mar 16, 2021 12:45 pm
Forum: Talking LiveCode
Topic: Why is the geometry manager still borked in 2021?!
Replies: 93
Views: 43412

Re: Why is the geometry manager still borked in 2021?!

I am just a user like you in most respects. All code that I’ve put into the project via PR is purely donation work. What version did you test? What you describe does not make sense with how the GM works so I am missing a step somewhere. Adding an object to a card should not update any other object g...
by bwmilby
Tue Mar 16, 2021 1:46 am
Forum: Talking LiveCode
Topic: Why is the geometry manager still borked in 2021?!
Replies: 93
Views: 43412

Re: Why is the geometry manager still borked in 2021?!

I can't reproduce that problem. I just created a stack, added 3 widgets. First one pinned right, second pinned right/top, third scaled width. Resize works fine. Dragged 3 additional widgets and everything worked correctly.

Also, which version of LC? I tested 9.6.2rc2
by bwmilby
Tue Mar 16, 2021 1:00 am
Forum: Talking LiveCode
Topic: Why is the geometry manager still borked in 2021?!
Replies: 93
Views: 43412

Re: Why is the geometry manager still borked in 2021?!

I am probably the last person to post a fix to the GM. The initial issue almost seemed like a problem caused by the issue that was fixed (the object count got off when adding so references were not calculated correctly for new objects). Even before that code fix it was easy to avoid by manually cach...
by bwmilby
Mon Mar 08, 2021 7:19 pm
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Sort multidimensional array
Replies: 87
Views: 57947

Re: Sort multidimensional array

For other readers, I attach an example - arrays shown with tree view widgets, unfortunately I haven't figured out how to expand all in script so needs to be done manually (set the foldState doesn't seem to work... if you know how to expand all branches of the tree view in script do let me know!). F...
by bwmilby
Sun Mar 07, 2021 5:40 pm
Forum: Talking LiveCode
Topic: Stung by the Message Path! Lessons learnt..
Replies: 12
Views: 5047

Re: Stung by the Message Path! Lessons learnt..

If you have a project with dozens of stacks that are not all loaded at once, you can get into a state where the preOpenStack is not called if it is included in the card script. The test that I uploaded shows how this can happen. I’m not talking about the launch stack, but any other stack in the proj...
by bwmilby
Sun Mar 07, 2021 2:41 am
Forum: Talking LiveCode
Topic: Stung by the Message Path! Lessons learnt..
Replies: 12
Views: 5047

Re: Stung by the Message Path! Lessons learnt..

I just tested this and you can directly navigate to a specific card on an unopened stack. So as long as you know that you will never directly navigate to a specific card, you are safe putting the code in the first card. Stk A - list Stk B in the stack files, button script go card 2 of stack "StkB" S...
by bwmilby
Sun Mar 07, 2021 2:16 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: Need a different MobilePick than the generic LC picker. - Solved
Replies: 18
Views: 6785

Re: Need a different MobilePick than the generic LC picker.

On Android, when the user goes to scroll a group of selectable items, the item is selected during the scrolling process. With iOS, the selectable item is not able to be selected until the scroller has stopped (same code used in both platforms, just different platforms gives different behaviors to t...
by bwmilby
Sat Mar 06, 2021 11:30 pm
Forum: iOS Deployment
Topic: IOS Deployment
Replies: 11
Views: 6038

Re: IOS Deployment

Here are a couple of screen shots to help. First, create a new project in Xcode and save it somewhere convenient. You are only using this to have it generate the signing certificate that LC will use. Once the project is created, the tab to concentrate on is the "Signing" one. Xcode.png With your pho...

Go to advanced search