OldHawk

菜地一块,欢迎拍砖
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Flex

关于Adobe Flex的使用心得
摘要:The following example demonstrates how to use embedded images in a List control so that each item in the list displays a little icon based on a certain property in the data provider. You’ll also notice that we set the textIndent style to give the label a bit more padding from the icon. Finally, we create three non-interactive Button controls beneath the list as a sort of “legend” for the icons 阅读全文

posted @ 2008-01-11 22:06 OldHawk 阅读(1021) 评论(0) 推荐(0) 编辑

摘要:making the ComboBox control display icons also should be pretty trivial. Well, after about 2 minutes of analyzing the documentation, it turns out it is pretty simple. The trick was to set the iconField property on the ComboBox instance’s dropdown property, which is a reference to the combo box’s internal List control 阅读全文

posted @ 2008-01-11 22:01 OldHawk 阅读(1466) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can create a simple ComboBox item renderer which displays multiline items in the ComboBox control’s drop down menu 阅读全文

posted @ 2008-01-11 21:48 OldHawk 阅读(1413) 评论(0) 推荐(0) 编辑

摘要:The following example pops up a custom context menu when the user right-clicks on an item in an data grid. After selecting the custom item (”View item…”) from the context menu an Alert control is displayed showing the selected item’s properties 阅读全文

posted @ 2008-01-11 18:30 OldHawk 阅读(1236) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can alternate item colors in a Flex Tree control by setting the alternatingItemColors style to an array of colors 阅读全文

posted @ 2008-01-11 10:46 OldHawk 阅读(511) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can alternate item colors based on the item’s depth in a Flex Tree control by setting the depthColors style to an array of colors 阅读全文

posted @ 2008-01-11 10:43 OldHawk 阅读(388) 评论(0) 推荐(0) 编辑

摘要:The following example shows you how you can override a specific node’s icon in a Flex Tree control ysing the Tree class’s setItemIcon() method. 阅读全文

posted @ 2008-01-11 10:37 OldHawk 阅读(825) 评论(0) 推荐(0) 编辑

摘要:The following example shows you how you can reorder nodes in a Flex Tree control by setting the dragEnabled, dropEnabled, and dragMoveEnabled properties 阅读全文

posted @ 2008-01-11 10:32 OldHawk 阅读(294) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can add custom context menu commands to a RichTextEditor control in Flex by setting the contextMenu property 阅读全文

posted @ 2008-01-11 10:13 OldHawk 阅读(474) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can customize the appearance of the title in an Alert control in Flex by setting the titleStyleName style 阅读全文

posted @ 2008-01-11 10:07 OldHawk 阅读(367) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can customize the appearance of the message text in an Alert control in Flex by setting the messageStyleName style 阅读全文

posted @ 2008-01-11 10:02 OldHawk 阅读(345) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can customize the appearance of the buttons in an Alert control in Flex by setting the buttonStyleName style 阅读全文

posted @ 2008-01-11 09:57 OldHawk 阅读(320) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can customize the appearance of the status message in an Alert control in Flex by setting the statusStyleName style and status property 阅读全文

posted @ 2008-01-11 09:55 OldHawk 阅读(331) 评论(0) 推荐(0) 编辑

摘要:The following code is a brief example of sorting a Flex XMLListCollection using the Sort and SortField classes, and the XMLListCollection.sort property. We also look at filtering the XMLCollection using a custom filter function 阅读全文

posted @ 2008-01-10 18:09 OldHawk 阅读(511) 评论(0) 推荐(0) 编辑

摘要:The following example shows how you can use the itemDoubleClick event to open the selected Tree node in Flex 阅读全文

posted @ 2008-01-10 17:27 OldHawk 阅读(613) 评论(0) 推荐(0) 编辑

摘要:Lately I've been thinking of trees. Maybe it's because it is autumn in the northern hemisphere. So it seems an appropriate time to talk about Flex Tree controls. I'm going to publish a small series on the Flex 2.0 Tree component as there is a lot of ground to cover. In this series I'll present information on Tree dataProviders, itemRenderers, and drag-and-drop 阅读全文

posted @ 2008-01-10 10:03 OldHawk 阅读(863) 评论(0) 推荐(0) 编辑

摘要:如上,当有新的内容加入到textarea时,它的滚动条就会自动滚动到最底部,你可以在某一个方法中不停地往textarea里面追加内容 阅读全文

posted @ 2008-01-08 15:20 OldHawk 阅读(4787) 评论(0) 推荐(0) 编辑

摘要:如何修改默认的Alert窗口与Tooltip提示的样式? 阅读全文

posted @ 2007-12-06 16:30 OldHawk 阅读(4582) 评论(2) 推荐(0) 编辑

摘要:而在某些时候,可能需要在mx script中动态改变icon属性,这个时候显示有些麻烦,比如设置一个Panel的icon属性,Panel.icon=null是可以正确去掉Panel的icon图片,而设置icon图片时,可以使用下面的办法 阅读全文

posted @ 2007-12-06 14:17 OldHawk 阅读(2157) 评论(3) 推荐(0) 编辑