开发者

How to set the cursor in kEventControlSetCursor?

开发者 https://www.devze.com 2022-12-24 13:53 出处:网络
I want to be able to change the appearance of the mouse cursor as it moves over various hot spots in my view\'s and it seems t开发者_如何转开发o me that I should be doing that in the kEventControlSetC

I want to be able to change the appearance of the mouse cursor as it moves over various hot spots in my view's and it seems t开发者_如何转开发o me that I should be doing that in the kEventControlSetCursor handler (which I can get). The function "SetCursor" is deprecated, which leads to the question, what do I call to actually change the cursor?

And is there some standard list of cursors I can use? Things like horizontal and vertical arrows? I beam?


Use SetThemeCursor or SetAnimatedThemeCursor, which are both part of the Appearance Manager.

And is there some standard list of cursors I can use? Things like horizontal and vertical arrows? I beam?

The standard cursors, including those, are all you can use in the Appearance Manager; it provides no way to set a custom cursor.

The modern replacement for all three functions is Cocoa's NSCursor, which provides standard cursors and supports custom cursors.

0

精彩评论

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