开发者

flex - changing default cursor when executing copy on an item list

开发者 https://www.devze.com 2023-03-23 11:50 出处:网络
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 it

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!


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.

0

精彩评论

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