XULRunner 在初始启动时不隐藏忙碌指示器
wxWebConnect 是一个库,它使 XULRunner 能够嵌入并在 wxWidgets 应用程序中使用。然而,当我在 Windows Vista 上的应用程序(或 wxWebConnect 提供的测试应用程序)中使用它时,我发现当我启动应用程序时,它会显示旋转的忙碌光标,而当您将鼠标悬停在它上面时,却不会'如果不移动它,旋转的光标就会停留。当您移动光标时,它会立即恢复为普通的指针光标。我发现这确实让人分心,因为我认为在旋转光标消失之前没有任何意义,所以我仍在等待它“完成”,而实际上似乎没有什么可以完成。在我看来,当它不再忙碌时,它不应该继续显示忙碌的光标。
有谁知道可能导致此问题的原因或我该如何解决它?
wxWebConnect is a library which enables XULRunner to be embedded and used in wxWidgets applications. However, when I use it in my application (or in the test application provided with wxWebConnect) on Windows Vista, I find that when I start up my application it shows the spinning busy cursor, and while you keep your mouse over it and don't move it the spinning cursor stays. The instant you move the cursor it drops back to an ordinary pointer cursor. I find this really distracting since I assume there's no point doing anything until the spinning cursor goes away, and so I am still waiting for it to "finish" when in fact it seems there is nothing to finish. It seems to me it shouldn't stay showing the busy cursor when it is no longer busy.
Does anyone know what might cause this or how I can fix it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我终于找到了解决这个问题的方法。
第一次调用 OpenURI() 后,只需在主应用程序框架上使用 SetCursor(wx.StockCursor(wx.CURSOR_POINTER)) ,普通指针光标就会出现并保持不动,直到鼠标移动。
在 wxWebConnect 代码而不是应用程序代码中修复它仍然很好,但我认为由于还没有答案,这是我能得到的最好结果。
I have finally found a workaround for this problem.
Just use SetCursor(wx.StockCursor(wx.CURSOR_POINTER)) on the main application frame after calling OpenURI() for the first time, and the normal pointer cursor will come up and stay up until the mouse is moved.
It would still be nice to fix it in wxWebConnect code rather than application code, but I think as there have been no answers forthcoming this is the best I will get.