Ext-GWT 可以为窗口最小化按下事件设置动画吗?

发布于 2024-08-15 03:15:25 字数 346 浏览 7 评论 0原文

查看 Ext-JS 的 Web 桌面示例 我明白了当窗口最小化或恢复时,有一个动画,其中透明矩形缩小到任务栏或增大到窗口位置。

当我查看 Ext-GWT 的相同演示时,没有动画:窗口只是消失然后重新出现。

有没有办法为 Ext-GWT 打开此动画,以及执行此操作的代码是什么。

Looking at the web desktop sample for Ext-JS I see that when a window is minimized or restored, that there is an animation where a transparent rectangle shrinks down to the task bar or grows up to the window location.

When I look at the same demo for Ext-GWT there is no animation: the window just vanishes and reappears.

Is there a way to turn this animation on for Ext-GWT, and what is the code to do it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

葬心 2024-08-22 03:15:25

我认为你能做到。问题是您必须

  • 捕获最小化事件,
  • 用代理替换渲染的窗口,
  • 同时移动并调整代理的大小
  • ,用停靠栏上的按钮替换最终的代理,

我会考虑遵循 extjs 实现作为指导。

事实上,它没有以演示形式呈现,这表明将其组合在一起需要相当多的工作。

I think you can do it. The catch is that you have to

  • catch the minimize event
  • replace your rendered window with a proxy
  • simultaneously move and resize your proxy
  • replace your final proxy with the button on the dock bar

I'd consider following the extjs implementation as a guide.

The fact that it isn't represented as a demo suggests that it takes quite a bit of work to put it together.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文