GWT中的自定义滚动条 [英] Custom Scrollbar in GWT

查看:97
本文介绍了GWT中的自定义滚动条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我建立的网站上放入我自己的图形,而不是依赖于操作系统的无聊滚动条。有没有办法在GWT这样做?

I would like to put in my own graphics instead of the OS dependent boring scrollbars for the website I'm building. Is there a way to do this in GWT?

推荐答案

我发现的最好的解决方案是创建自己的滚动面板。滚动条包围在焦点面板周围。我已经添加了moedown,mousemove和mouseout处理程序到焦点面板。记录鼠标移动并相应地移动内容。

The best solution i found is to create my own scroll panel. The scroll bar is wrapped around a Focus panel. I've added Mousedown, mousemove and mouseout handlers to the focus panel. Recording the mouse movements and moving the contents accordingly.

这篇关于GWT中的自定义滚动条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆