像ubuntu unity的覆盖滚动条这样的组件
Is there a component like ubuntu unity's overlay scrollbar for Delphi?
See also this video: http://vimeo.com/20523493
I use mostly Delphi 2007 but I don't really mind about the version.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我见过的最接近的是 TMS Smooth Listbox 中的滚动行为。
它不会像示例图像那样“向外”,而是使用零屏幕空间(隐藏滚动条),直到您将鼠标悬停在该区域上,然后您必须向下移动鼠标并向上或向下“轻拂”内容,就像您使用 iPad 或 iPod-touch 一样。
TMS 控件附带完整的源代码,如果您对 GDI+ 有足够的了解,我相信您可以修改它们以按照上面显示的方式进行绘制。
第二种选择是实现您自己的单独控件和滚动视图容器。请注意,要获得这样的权利似乎很困难,而且用户大多更喜欢标准的 Windows 工作方式,并且会很快要求您提供配置选项来关闭您的创新,因此请务必在关闭开关中进行编码对于他们来说。
顺便说一句,这既是新派,又是旧派。 ubuntu 提出的细线和大拇指的图像/样式对我来说很熟悉,因为它类似于 OpenLook,拇指向左或向右移动一点,但由于狭窄而不太实用:
< img src="https://i.sstatic.net/SUejD.gif" alt="在此处输入图像描述">
我特别喜欢这张图片,它称之为“电梯”,在“电缆”上上升和下降:
The closest I have seen is the scrolling behaviour in the TMS Smooth Listbox.
It doesn't go "outboard" like your sample image, but instead it uses zero screen real-estate (hiding the scroll bar) until you mouse over the area, then you have to mouse down and "flick" the contents up or down, like you were using an iPad or iPod-touch.
The TMS controls come with full source code, and I believe you could probably modify them to paint the way you show above, if you know enough about GDI+.
A second alternative is to implement your own separate control and scrollview-container. Note that it's deceptively difficult to get something like this right, and that users will mostly prefer the standard windows way of working, and will quickly ask you for a configuration option to turn your innovations off, so be sure to code in an off-switch for them.
incidentally, this is so new-school, it's old school. The image/style for a thin line, and a big thumb, that ubuntu came up with is familiar to me, because it's similar to OpenLook, with the thumb moved a bit left or right, but less usable, because of the narrowness:
I particularly like this image which calls it an "elevator" which ascends and descends on a "cable":