开发者

Philosophy of scroll bars

开发者 https://www.devze.com 2023-02-10 07:05 出处:网络
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 Quest

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 开发者_C百科Position which scroll to ?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号