计时器吃了鼠标点击 [英] Timer eats mouseclick
问题描述
计时器运行时,第一次鼠标单击丢失.方案中,程序有两个按钮.只需在点击时更改其背景颜色即可.按钮2改变其颜色,设置计时器并退出.但是如果点击鼠标 当计时器开启时,在表格中的第一个方框或任何地方,我们只注意到第二个按钮的边框稍有变化.
When the timer is running, the first mouse click is lost. Scenario, program has two buttons. One just alternates its background color on click. Button two alternates its color, sets a timer and exits. But if a mouse click is made while the timer is on, at box one or anywhere in the form, we just notice a slight change to the border of button two. how can we raise an event or something in box two code to overcome this?
推荐答案
您的描述有些混乱,因此,您可能想发布一个简短的示例代码来重现该错误,以便我们进行测试或发现问题. :)
Your description is a little confusing so, you may want to post a short example code that will reproduce the error so we can test it or maybe spot a problem. :)
这篇关于计时器吃了鼠标点击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!