是否可以为Spark的DropDownList添加“按钮”功能? (即,您从列表中选择一个项目,然后单击“主按钮”以发送事件)。
这可以通过基于DropDownListSkin创建自定义皮肤并通过按钮替换标签来实现:
<s:Label id="labelDisplay" verticalAlign="middle" maxDisplayedLines="1"
mouseEnabled="false" mouseChildren="false"
left="7" right="30" top="2" bottom="2" width="75" verticalCenter="1" />
欢迎任何反馈,我在定制皮肤方面没有经验。
或许我应该
override mx_internal function openButton_buttonDownHandler()