Ted Roche wrote on 2017-06-20:
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()?
Ted,
Thank you.
I did try the Timer thing. A BindEvent solution. A combination of the two. The Mouse over the control, press the spacebar, everything triggers, move the mouse and the ghost appeared.
The Button.Click() calls a method on the Form. That was the only line of code in it.
Tried the LockScreen around the call in the Button.Click(). The ghost still appeared.
Tracy Pearson PowerChurch Software