On Tue, Jun 20, 2017 at 12:13 PM, Tracy Pearson tracy@powerchurch.com wrote:
Has anyone noted this behavior?
Yes, iirc from decades ago. You're running code in a Button.Click() event, and the button has default behaviors of repainting as a DownPicture and executing the code, and then repainting the UpPicture, so it can get redrawn even as the rug (in this case the pageframe) is pulled out from underneath it.
Does anyone have a workaround?
Now, for the tough part. This part I don't recall. I'm thinking you could do something like call a PageFrame custom method passing the desired page, sets a timer for a tenth of a second to reset the ActivePage and return to the button. Once it's done repainting, the page should switch. But that's really hacky.
Or maybe just try NODEFAULT in the Button.Click()
Or LockScreen()?