Page 1 of 1

Handler not finishing after go to card

Posted: Fri May 24, 2013 12:21 pm
by Proct0r
Hi all, another day another query :)

I have a handler with a breakpoint immediately following a 'go to card 1' command that never triggers (and nor does the code following it). My issue is that the code following the breakpoint is supposed to refresh a data grid on card 1 and, to avoid needless suffering (lessons/m/datagrid/l/7340-what-sorts-of-things-should-i-not-do-in-order-to-avoid-needless-suffering), you should apparently never try to draw a data grid that isn't visible on screen.

Any suggestions?

Re: Handler not finishing after go to card

Posted: Fri May 24, 2013 1:02 pm
by Dixie
Hi...

Then why not update your datagrid before you leave the card... maybe something like..

on mouseUp
lock screen
-- do your refresh stuff
go card 1
unlock screen
end mouseUp

mmm... the code button does nor seem to be working in the forum...

Dixie

Re: Handler not finishing after go to card

Posted: Fri May 24, 2013 1:43 pm
by Proct0r
Wouldn't that still be refreshing the data grid before displaying it?

Oddly enough the problem seems to have fixed itself anyway... Perhaps I just needed that restart hehe
Thanks for replying though.

Re: Handler not finishing after go to card

Posted: Fri May 24, 2013 3:23 pm
by Dixie
No, it would refresh and then go to card 1... you wouldn't see the refresh happen as the screen would be locked