How do I get the glorious Chart Widget to repaint on iOS

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bbalmerTotalFluency
Posts: 52
Joined: Mon Apr 06, 2020 1:19 pm
Location: Thailand
Contact:

How do I get the glorious Chart Widget to repaint on iOS

Post by bbalmerTotalFluency » Thu Jan 11, 2024 11:40 am

Updated - PROBLEM RE SOLVED. Answer here to save times for others.

Situation: The wonderful chart widget (which is awesome) has no repaint command. On macOSX if you change the data, the chart redraws itself. Very logical. On iOS it does not repaint itself.

I tried lots of stuff. In the end here is the only thing I have found that works so far.

put this command in the stack

command whateverNameYouLikeMineIsRedrawScreen
set the backgroundColor of card the currentCard of this stack to the backgroundColor of card the currentCard of this stack
end whateverNameYouLikeMineIsRedrawScreen

Then you have to SEND "whateverNameYouLikeMineIsRedrawScreen" to this stack. (in my case I put "in 10 milliseconds" at the end. I don't know if that is important or not.

Called directly from the card doesn't work for me. But this method works. The tip off for me was that the command "set the backgroundColor of card the currentCard of this stack to the backgroundColor of card the currentCard of this stack" worked from the msgBox.

Post Reply

Return to “iOS Deployment”