Screen not updating

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mvillion
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 107
Joined: Sun Feb 24, 2013 12:29 pm

Screen not updating

Post by mvillion » Wed Feb 17, 2016 2:38 pm

Hi

I have a stack that has gone weird.

The problem in simple terms.
I have a card with a button. The button displays a group. A button on the group (that is now displayed) hides the group - showing the card again.
It works perfectly on the Mac IDE but when built as a stand alone application the screen does not update - the button (which is not visible) works.

I have used the technique a number of times in my app and every time I have the same problem.

Something else. If I put a piece of code like
answer "I got here"
into the script, the screen draws the picture [and then the 'answer' dialog box (so I know the code is working - And the fact the button work ever thought it is not visible)

It all used to work then the stack just seemed to go weird on me.

I wish there was a stack rebuild feature as I have had stacks go weird on me before.
I have not idea how to get past this as the code DID work and then it just went weird!!!

Matt

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Screen not updating

Post by Simon » Thu Feb 18, 2016 8:02 am

Hi Matt,
Just throw in a "wait 0 millisecond with messages", this allows the processor to catch up.
Start with placing it where you have your answer command, not sure if that's the right place but somewhere around there.
The wait allows the screen to refresh.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

mvillion
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 107
Joined: Sun Feb 24, 2013 12:29 pm

Re: Screen not updating

Post by mvillion » Thu Feb 18, 2016 2:38 pm

Well I be damned.

IT WORKS!!

Thanks

Post Reply