Philosophy of scroll bars

こ雲淡風輕ζ 提交于 2019-12-02 15:43:29

问题


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 ?


回答1:


What is Philosophy of works of scroll bars ...

In short: Do what is least surprising. In your case this means copy whatever scrolling behaviour your users are already familiar with.



来源:https://stackoverflow.com/questions/5000591/philosophy-of-scroll-bars

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!