开发者

How to set the cursor in kEventControlSetCursor?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜