button图片source属性

本文解析了博客中关于名为'alert_set_normal'的按钮,其使用了不同状态下的图片资源,并详细介绍了source、normalimage、hotimage和pushedimage属性如何控制图片显示。重点在于图像的坐标管理和显示策略。
<Button name="alert_set_normal" clickreportid="AB0605" padding="5,4" width="18" height="18" keyboard="false" resourcetext="true" tooltip="预警" normalimage="res='res/price_warn/bell.png' source='0,0,18,18'" hotimage="res='res/price_warn/bell.png' source='18,0,36,18' " pushedimage="res='res/price_warn/bell.png' source='54,0,72,18'" bkcolor="$singleStock_panel_information_szx_bk" visible="false"/>

bell.png图片如下,大小为72×18
在这里插入图片描述
source:值为图片左上和右下角坐标
normalimage:正常显示图片,根据source值为第一张
hotimage:鼠标放上去显示图片,根据source值为第二张
pushedimage:鼠标点击显示图片,根据source值为第三张

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

vegetablesssss

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值