开发者

C# - Pan cursor

开发者 https://www.devze.com 2022-12-22 00:31 出处:网络
I\'m implementing panning of a large image in a PictureBox control, and I have no problem setting the appropriate directional pan cursors. However, I can\'t s开发者_开发技巧eem to find the image used

I'm implementing panning of a large image in a PictureBox control, and I have no problem setting the appropriate directional pan cursors. However, I can't s开发者_开发技巧eem to find the image used for the origin of the pan (a circle with arrows inside of it).

Where can I find it?


I think the image that you are looking is not included in the framework. Every app uses their own cursor for that (AFAIK). The closest you can get is using Cursors.SizeAll as Hans Passant already told you:

this.Cursor = Cursors.SizeAll;


I found some documentation about the scroll cursor origin. Putting a window in "reader mode" by calling DoReaderMode() will plant the scroll origin icon and scroll the window.

Doc page mentioning the scroll origin icon (near the bottom of the page):

http://msdn.microsoft.com/en-us/library/bb545459.aspx

Doc page for DoReaderMode():

msdn.microsoft.com/en-us/library/bb775599(VS.85).aspx

0

精彩评论

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

关注公众号