1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > 鼠标指针变成手形

鼠标指针变成手形

时间:2021-08-25 20:47:54

相关推荐

鼠标指针变成手形

useHandCursor="true" buttonMode="true"

mouseChildren="false"

有要使得在Button上出现手型的鼠标,你必须把buttonMode属性值设置成为true,并且把useHandCursor设置成为true. 对于其他组件你则必须把mouseChildren的属性值设置成为false。

mxml代码

<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="//mxml"

layout="vertical" width="300" height="200">

<mx:Button width="90%" height="50%" label="No Hand Cursor Button" />

<mx:Button width="90%" height="50%" label="Hand Cursor Button"

buttonMode="true" useHandCursor="true" />

<mx:Label width="100%" height="10%" text="label with hand cursor"

buttonMode="true" useHandCursor="true" mouseChildren="false"/>

</mx:Application>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。