使用水平滚动条滚动面板 [英] Scrolling panel using horizontal scroll bar

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

问题描述

如何申请一个水平滚动条到面板?

How can I apply a horizontal scroll bar to a Panel?

我工作的2D瓷砖地图编辑器,我使用的面板来保存内容。当我的地图比我的面板,它只是熄灭,变得不可见,才有可能将自定义的滚动条?

I'm working on 2d tiled map editor and I'm using a Panel to hold the contents. When my map is bigger than my panel it just goes off and becomes invisible, would it be possible to apply custom scroll bars?

推荐答案

的的 面板 是从的 ScrollableControl 。因此,有一个属性<一href="http://msdn.microsoft.com/en-us/library/system.windows.forms.scrollablecontrol.autoscroll.aspx"相对=nofollow> 自动滚屏 。只需将其设置为,其余的将被自动地进行。

The Panel is derived from ScrollableControl. So there is a property AutoScroll. Just set it to true and the rest will be done automagically.

这篇关于使用水平滚动条滚动面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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