开发者

Adding icons to nativemenu items in air application

开发者 https://www.devze.com 2023-01-16 05:05 出处:网络
I have a native menu with items and it is displayed as a pop up menu, i would like to add icons to the native menu items in an air application using flex3. How can i do that?

I have a native menu with items and it is displayed as a pop up menu, i would like to add icons to the native menu items in an air application using flex3. How can i do that? Thanks in 开发者_开发百科advance.

bagi


Here is a pretty simple logic:

1) You can access core properties, like icon or iconField look http://blog.flexexamples.com/2008/01/24/displaying-icons-in-a-flex-popupbutton-control/ http://amarghosh.blogspot.com/2010/01/icons-in-flex-menubar.html

or

2) Override itemRenderer with your own, and set up images via data node, e.g. http://blog.flexexamples.com/2007/09/25/creating-a-custom-combobox-item-renderer-in-flex/

0

精彩评论

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