flex - 在项目列表上执行复制时更改默认光标
我正在尝试更改列表拖放的默认鼠标光标。 我试图使用 DragMananger 和 event.preventDefault() 来获取 COPY 光标 - 但得到了一个非常奇怪的光标行为(项目的放置指示器错误地呈现 - 等)因此我试图坚持默认 - 这工作正常 -但我现在在副本上的光标是一个简单的箭头,我想得到带有笑容的箭头。我如何更改默认值?
谢谢!
I am trying to change the default mouse cursor for a list drag and drop.
I was trying to get the COPY cursor using DragMananger and event.preventDefault()- but got a very weird cursor behavior (the items' drop indicator was wrongly presented - etc.) Therefor i am trying to stick to default - this works fine - but my cursor now on copy is a simple arrow, and i would like to get the arrow with the grin plus on it. How can i change the default?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有很多关于通过 Flex 创建和使用自定义光标的文档。 这是我自己的博客发布 和 关于该主题的播客。
如果您执行 Google 搜索,会出现更多信息。
如果您需要更改dragImage,可以通过在DragManager.doDrag 事件。 Google 还提供了很多关于 更改dragImage。
There is lots of documentation on creating and using custom cursors with Flex. Here is my own blog post and podcast on the topic.
If you perform a Google Search, lots more info comes up.
If you need to change the dragImage, you can do so by setting the dragImage property on the DragManager.doDrag event. Google also provides a lot of info on changing the dragImage.