滚动条哲学 [英] Philosophy of scroll bars
问题描述
可能重复:结果
的滚动条
请假设我想设计自己文本编辑器。只是想记事本。
不使用任何的的RichTextBox LIKE或其他控制的修改在C ++中。
主手柄仅仅是C ++中的窗口或用户控件在C#。
的问题是在这里滚动选项,我怎么能执行,当用户
是打字滚动。
我在这里的意思是垂直滚动。什么是C ++窗口或
C#用户控件的滚动条作品的哲学?
Please suppose I want to design my own text editor . simply like notepad. Without using any richtextbox or other controls LIKE EDIT in C++. Main Handle is just a window in C++ or usercontrol in C#. The Question is here for scrolling option , how can I perform scrolling when user is typing. I mean vertical scrolling here . What is Philosophy of works of scroll bars in C++ windows or C# user controls ?
我应该清除(用户控件或窗口)当用户达到结束的(用户控件或窗口),然后把尖上的(用户控件或窗口)的开始
Should I Clear the (Usercontrol or Window) When User reaches to end of (Usercontrol or Window) and then Put caret on start of (Usercontrol or Window) ?
什么用拇指或手滚动滚动?我如何才能找到的文本位置而滚动?
What about scrolling with thumb or hand scrolling ? How can I find the Text Position which scroll to ?
推荐答案
在这样我采取类似的态度,语言的情况。考虑你的听众,共同使用模式 - 这将引导你在正确的方向。它可能不会给你一种哲学,但你将能够作出决定哪些是最重要的。
In situations like this I take a similar attitude to language. Consider your audience and common usage patterns - that will steer you in the right direction. It may not give you a philosophy, but you will be able to make decisions which is most important.
所以,看其他文本编辑器,并确定哪些用户是舒服哪些用户会期望。使用Microsoft Word或Visual Studio为指导,将是一个相当安全的赌注。从标准的做法偏离的风险更高;如果你想尝试一些过激,确保你让其他人尝试并确认您的创新
So, look at other text editors and determine what users are comfortable with and what users will expect. Using Microsoft Word or Visual Studio as a guide is going to be a pretty safe bet. Deviating from standard practice is more risky; if you want to try something radical, make sure you get other people to try it and confirm your innovation.
建议的一个具体片:不要做像谷歌什么Wave的滚动条! :P
One concrete piece of advice: Don't do anything like Google Wave's scrollbars! :P
这篇关于滚动条哲学的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!