Page 1 of 1

Screen not updating

Posted: Wed Feb 17, 2016 2:38 pm
by mvillion
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

Re: Screen not updating

Posted: Thu Feb 18, 2016 8:02 am
by Simon
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

Re: Screen not updating

Posted: Thu Feb 18, 2016 2:38 pm
by mvillion
Well I be damned.

IT WORKS!!

Thanks