在 Flex 中的 spark TextInput 中添加搜索图标 [英] Add search icon inside spark TextInput in Flex

查看:22
本文介绍了在 Flex 中的 spark TextInput 中添加搜索图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在 spark TextInput 控件中添加搜索图标.有没有办法扩展 TextInput 控件并向其添加子项.

I want to add search icon inside the spark TextInput control. Is there a way by which I can extend the TextInput control and add a child to it.

谢谢

推荐答案

您不应该扩展 TextInput 本身.Spark 架构的主要力量是皮肤的可能性.您可以基于标准的 TextInputSkin 创建自己的皮肤,并在那里放置图标.我认为不会有任何问题.

You shouldn't extend TextInput itself. The main power of Spark architecture is skinning possibility. You can create your own skin based on standard TextInputSkin and place icon there. I think there will not any problems.

这篇关于在 Flex 中的 spark TextInput 中添加搜索图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆