Switch button Widget non redrawing

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
trevix
Posts: 1082
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Switch button Widget non redrawing

Post by trevix » Thu Jul 18, 2019 4:14 pm

LC 9.5.0 (also on LC 9.0.4 RC3)
OSX 10.14.5
iOS 9.3
xCode 10.1

Sometime but not always, both on the simulator and on the hardware, the Switch button Widgets don't get redrawn, as you can see for the attache picture (the buttons are on the right side of the screen).

Finding the culprit looks very hard, for what I found. But it seems connected to the update of each value, like:

Code: Select all

set the hilite of widget "SwitchSingleButton" of group "GRsetting1" to true
PS: I tried both "set the hilite..." and set the hilight..." to no avail.

Thanks
Trevix
Simulator Screen Shot - iPad Air - 2019-07-18 at 17.02.31.png
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1082
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Switch button Widget non redrawing

Post by trevix » Thu Jul 18, 2019 8:13 pm

Update:
It depends on which iOS version i use.
Works on 11.2 Not on 9.3
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1082
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Switch button Widget non redrawing

Post by trevix » Fri Jul 19, 2019 9:31 am

More:
If I put a "wait 1 seconds" on the PreOpenstack (before setting the buttons), everything get drawn OK
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1082
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Switch button Widget non redrawing

Post by trevix » Fri Sep 27, 2019 5:02 pm

Still having the same problem with simulator 12.1 (OSX 10.14.6 and LC9.5 stable)
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

trevix
Posts: 1082
Joined: Sat Feb 24, 2007 11:25 pm
Contact:

Re: Switch button Widget non redrawing

Post by trevix » Fri Sep 27, 2019 5:08 pm

Same on iOS 11.2

Actually now works fine on hardware iOS 9.3 but not in the simulator
Trevix
OSX 14.6.1 xCode 15 LC 10 RC1 iOS 15> Android 7>

Post Reply