[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread alinmircea_s
After reading your second post with the .addChild I guess this would be helpful. Here it is http://www.adobe.com/2006/mxml"; creationComplete="addTI()" >

[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread gmoniey22
No offense taken...in fact, I appreciate your help. I will start playing around with it. Thanks again. --- In flexcoders@yahoogroups.com, "alinmircea_s" wrote: > > --- In flexcoders@yahoogroups.com, "gmoniey22" wrote: > > > > Thanks for the reply...I come from a Java background, so creating a

[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread gmoniey22
Thanks for your reply...I tried do something similar. As a test case, I just tried to add a label after the tabs have been created. I tried the following: var l:Label = new Label(); l.text = "TEST"; myTabs.addChild(l); This compiled fine...but when I ran it, nothing showed up. Where would I add

[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread alinmircea_s
In case anyone needs a more detailed explanation the need for getTabAt(tabN.numChildren-1). We cannot access tabN.tabBar because of it's protected attribute so we cannot directly get the tabBar's width. That is why we are getting the last-tab's button instance x + witdh , It's the exact width o

[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread alinmircea_s
--- In flexcoders@yahoogroups.com, "gmoniey22" wrote: > > Thanks for the reply...I come from a Java background, so creating a custom > component is not "scary" so to speak...I was just hoping there may be an > easier way to do it directly to the TabNavigator instance. > > Also, out of curiosity

[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread Tim Hoff
Another way: -TH --- In flexcoders@yahoogroups.com, "gmoniey22" wrote: > > Thanks for the reply...I come from a Java background, so creating a custom component is not "scary" so to speak...I was just hoping there may be an easier way to do it directly to the TabNavigator instan

[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread gmoniey22
Thanks for the reply...I come from a Java background, so creating a custom component is not "scary" so to speak...I was just hoping there may be an easier way to do it directly to the TabNavigator instance. Also, out of curiosity, why do you not recommend the spacer?

[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread alinmircea_s
If your component is static and will never change , children will never get removed and no new children will be added you could try an absolute positioning. I do not recommend spacer tho. On the other hand you could try to make your own component , you say that you are new to flex so I guess th

[flexcoders] Re: Possible to add a textinput to a TabNavigator (next to the tabs)

2009-03-17 Thread valdhor
http://livedocs.adobe.com/flex/3/langref/mx/controls/Spacer.html --- In flexcoders@yahoogroups.com, "gmoniey22" wrote: > > Hi, > > I am rather new to flex, so I apologize in advance if the answer is obvious. > > I have a TabNavigator and I want to place a textinput box all the way to the > ri