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

查看:22
本文介绍了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?

推荐答案

我发现的最佳解决方案是创建自己的滚动面板.滚动条环绕焦点面板.我已将 Mousedown、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天全站免登陆