移动按钮到在Flex

移动按钮到在Flex

本文介绍了移动按钮到在Flex Builder一个TabNavigator容器的标签格空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我有一个选项卡导航器在Adobe的Flex 3。

I have a layout question for Tab Navigators in Adobe Flex 3.

时可以插入一个按钮,侵入选项卡的网格空间?

Is it possible to insert a button that invades the grid space of the tabs?

我有一个选项卡导航器组件,我动态地添加子组件标签导航仪,我想挤片空间内的按钮。我不想按钮是另一个选项卡。我不希望使用的TabBar的标签。

I have a tab navigator component and I am dynamically adding sub components to tab navigator and I want squeeze a button inside the tab space. I don't want the button to be another tab. And I don't want to use a TabBar for the tabs.

该图说明了问题。

这是当前的布局我有

这是我想要的布局的实体模型(Photoshop处理)。我基本上要刮胡子一些像素关闭的布局。

This is a mockup (photoshopped) of the layout I want. I basically want to shave some pixels off the layout.

有没有办法给按钮向下推或手动覆盖MXXML或ActionScript其布局位置?

Is there a way to push the button down or manually override its layout position in MXXML or actionscript?

推荐答案

我会想,如果你把一个Canvas元素(它允许你绝对布局元素),而不是一个垂直框,因为它使用的是现在看来,你可以强制主页按钮,显示您希望它的方式,即:

I would think if you put the elements in a Canvas (which allows you to lay out elements absolutely) rather than a VBox as it appears you are using now, you could force the Home button to display the way you want it to, ie:

<mx:Canvas>
   <mx:Button top="5" right="5" />
   <mx:TabNavigator top="5" left="5" right="5" />
</mx:Canvas>

这篇关于移动按钮到在Flex Builder一个TabNavigator容器的标签格空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 19:28