Re: [flexcoders] tabnavigator gets messed up

2015-07-01 Thread t...@tamborine.to [flexcoders]
Thanks.  I'm working on doing that.  I can't really post the code that's 
failing, it's part of an application that's far too big to post, but have built 
a smaller example and can't seem to get it to fail.

I had been setting the selectedChild/index manually and took that out but it 
still fails.  The code only manipulates the tab contents via mx:state settings. 
 So, it's frustrating in that I don't really do anything to manipulate tab 
contents (which would have potential to be my bug).

Re: [flexcoders] tabnavigator gets messed up

2015-06-30 Thread Abhinay Dronamraju abhinay.dronamr...@yahoo.com [flexcoders]
Show some code sample.

Sent from my iPhone

> On Jun 29, 2015, at 10:04 PM, t...@tamborine.to [flexcoders] 
>  wrote:
> 
> Using FB4 with sdk4.0.
> 
> My UI gets user details, then shows a tabbed interface.  Can view any tabs, 
> then get new user details.
> 
> When the 2nd (and subsequent users) are chosen, the tabbed interface then is 
> messed up with the details of the 3rd tab being displayed over the top of the 
> details of the default (1st) tab.  It's just a visual representation that 
> looks wrong but it's quite messy looking.
> 
> Any pointers on what might be causing this?
> 
> 
> 
> 


[flexcoders] tabnavigator gets messed up

2015-06-29 Thread t...@tamborine.to [flexcoders]
Using FB4 with sdk4.0.

My UI gets user details, then shows a tabbed interface.  Can view any tabs, 
then get new user details.

When the 2nd (and subsequent users) are chosen, the tabbed interface then is 
messed up with the details of the 3rd tab being displayed over the top of the 
details of the default (1st) tab.  It's just a visual representation that looks 
wrong but it's quite messy looking.

Any pointers on what might be causing this?
 



[flexcoders] TabNavigator skin

2010-08-25 Thread Christophe
Hello, 

How to draw a vertical gradient inside the panels of a TabNavigator ? 

Thank you,
Christophe Jacquelin,



[flexcoders] TabNavigator styles not being applied (flex4)

2010-07-07 Thread bhaq1972
Anyone know why styling is not being applied to this Flex4 example (a modified 
example from livedocs)?

thanks


http://ns.adobe.com/mxml/2009"; 
  xmlns:s="library://ns.adobe.com/flex/spark" 
  xmlns:mx="library://ns.adobe.com/flex/mx">
  
  
  

  
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";

.myTabs 
{
cornerRadius: 4;
fillColors: #99, #cc;
}
  

  

   




   
 
   

   
  
   

   
   
   


  




[flexcoders] TabNavigator

2010-05-21 Thread Richard Rodseth
Is there an event dispatched by TabNavigator when the *user* switches tabs?

"change" is dispatched when the selected change happens
programmatically (eg. because selectedChild is bound).


RE: [SPAM] Re: [SPAM] Re: [SPAM] [flexcoders] TabNavigator switches to second tab when revealed after a currentState change

2010-01-24 Thread Tracy Spratt
Sure.  States can be very useful, but I reserve them for more minor changes
the content of a component.  They are very powerful, but messy to code and
understand, compared to a viewstack.  And I do see occasional reports of
strange behaviors interactions with them.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Penny Laus
Sent: Saturday, January 23, 2010 6:01 PM
To: flexcoders@yahoogroups.com
Subject: [SPAM] Re: [SPAM] Re: [SPAM] [flexcoders] TabNavigator switches to
second tab when revealed after a currentState change

 

  

 

On Sun, Jan 24, 2010 at 1:40 AM, Tracy Spratt mailto:tr...@nts3rd.com> com> wrote:

  

A ViewStack is simply a way to switch between components.  It has no visible
presence of its own.  The children of a ViewStack can be anything (in some
container), including a full TabNavigator.  You can nest ViewStacks as
desired.

 

Thanks very much for your suggestions - it's working beautifully now. And,
as you say, there's no reason not to put a full TabNavigator within the
ViewStack.

Have a good weekend.

-- PL

 





Re: [SPAM] Re: [SPAM] [flexcoders] TabNavigator switches to second tab when revealed after a currentState change

2010-01-23 Thread Penny Laus
On Sun, Jan 24, 2010 at 1:40 AM, Tracy Spratt  wrote:

>
>
>  A ViewStack is simply a way to switch between components.  It has no
> visible presence of its own.  The children of a ViewStack can be anything
> (in some container), including a full TabNavigator.  You can nest ViewStacks
> as desired.
>
>
> Thanks very much for your suggestions - it's working beautifully now. And,
as you say, there's no reason not to put a full TabNavigator within the
ViewStack.

Have a good weekend.

-- PL


RE: [SPAM] Re: [SPAM] [flexcoders] TabNavigator switches to second tab when revealed after a currentState change

2010-01-23 Thread Tracy Spratt
A ViewStack is simply a way to switch between components.  It has no visible
presence of its own.  The children of a ViewStack can be anything (in some
container), including a full TabNavigator.  You can nest ViewStacks as
desired.

 

A side note on TavNavigator;  if you think you will ever want to dynamically
control the visible tabs, say based on user identity/permissions, I advise
TabBar + ViewStack.  To remove hide a tab in a TabNavigator, you have to
manipulate the childen directly.  If you use a TabBar, you can control its
content just by manipulating its dataProvider.  A hidden view will still be
in the ViewStack, but its tab will not be visible, thus the view will be
unavailable.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Penny Laus
Sent: Saturday, January 23, 2010 2:06 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] Re: [SPAM] [flexcoders] TabNavigator switches to second tab
when revealed after a currentState change

 

  

 

On Sat, Jan 23, 2010 at 5:28 PM, Tracy Spratt mailto:tr...@nts3rd.com> com> wrote:

  

For a change as significant as that, I suggest using ViewStack instead of
states.

Tracy,

Thanks very much for responding - I always read your postings with
attention.

In my case are you suggesting I put everything into a ViewStack and not use
states? So, I'd have something like

ViewStack 

   0 - My landing screen with the login/send password/add registration

  1 - 2 -3 My registration details

Am I right in thinking that I could use a TabBar to make ViewStack 1, 2 & 3
look and act like a TabNavigator?

Thanks for the help!

 





Re: [SPAM] [flexcoders] TabNavigator switches to second tab when revealed after a currentState change

2010-01-22 Thread Penny Laus
On Sat, Jan 23, 2010 at 5:28 PM, Tracy Spratt  wrote:

>
>
>  For a change as significant as that, I suggest using ViewStack instead of
> states.
>
> Tracy,

Thanks very much for responding - I always read your postings with
attention.

In my case are you suggesting I put everything into a ViewStack and not use
states? So, I'd have something like

ViewStack

   0 - My landing screen with the login/send password/add registration

  1 - 2 -3 My registration details

Am I right in thinking that I could use a TabBar to make ViewStack 1, 2 & 3
look and act like a TabNavigator?

Thanks for the help!


RE: [SPAM] [flexcoders] TabNavigator switches to second tab when revealed after a currentState change

2010-01-22 Thread Tracy Spratt
For a change as significant as that, I suggest using ViewStack instead of
states.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Penny Laus
Sent: Saturday, January 23, 2010 1:22 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] TabNavigator switches to second tab when
revealed after a currentState change

 

  

I've run into a funny problem in a registration application I'm
working on. The base state for this application is a TabNavigator with
three Canvas subelements. On its own, this works fine.

When the application loads, I switch away from the base state to a
screen to let the user login/get their password emailed/add a new
registration. If they want to add a new registration, currentState is
set back to "" to return to the base state - the full data entry form.

The funny part is that when the state changes, the selectedIndex of
the TabNavigator switches from 0 to 1. I've stepped through in the
debugger and before this line the (hidden) TabNavigator has an index
of 0.

this.currentState = ""; // Base state has input form

After this line, the TabNavigator has an index of 1.

If I explicitly reset the selectedIndex back to 0, the TabNavigator is
drawn with elements from the first two "pages" drawn on top of each
other. I can see that the Canvas for index 0 is drawn and the Canvas
for index 1 is drawn on top of that.

I've tried using a ViewStack instead of TabNavigator but, as you would
expect, it makes no difference.

I've been going around in circles for some time here without any
progress - is this problem ringing a bell? I didn't find anything like
it in the archives. I've tried with the 3.2 and 3.5 SDKs but the
behavior is the same in both cases.

I could skip the TabNavigator completely and do everything with
ViewStates but, honestly, I'd rather not. I find it simpler to work
with the TabNavigator in the visual designer. Then again, if it isn't
going to work right it's not really "eaiser" any more.

Thanks in advance for any help or suggestions.





[flexcoders] TabNavigator switches to second tab when revealed after a currentState change

2010-01-22 Thread Penny Laus
I've run into a funny problem in a registration application I'm
working on. The base state for this application is a TabNavigator with
three Canvas subelements. On its own, this works fine.

When the application loads, I switch away from the base state to a
screen to let the user login/get their password emailed/add a new
registration. If they want to add a new registration, currentState is
set back to "" to return to the base state - the full data entry form.

The funny part is that when the state changes, the selectedIndex of
the TabNavigator switches from 0 to 1. I've stepped through in the
debugger and before this line the (hidden) TabNavigator has an index
of 0.

this.currentState = ""; // Base state has input form

After this line, the TabNavigator has an index of 1.

If I explicitly reset the selectedIndex back to 0, the TabNavigator is
drawn with elements from the first two "pages" drawn on top of each
other. I can see that the Canvas for index 0 is drawn and the Canvas
for index 1 is drawn on top of that.

I've tried using a ViewStack instead of TabNavigator but, as you would
expect, it makes no difference.

I've been going around in circles for some time here without any
progress - is this problem ringing a bell? I didn't find anything like
it in the archives. I've tried with the 3.2 and 3.5 SDKs but the
behavior is the same in both cases.

I could skip the TabNavigator completely and do everything with
ViewStates but, honestly, I'd rather not. I find it simpler to work
with the TabNavigator in the visual designer. Then again, if it isn't
going to work right it's not really "eaiser" any more.

Thanks in advance for any help or suggestions.


Re: [flexcoders] TabNavigator Problem.

2010-01-19 Thread Tejas Patel
Done.
historyManagementEnabled property set to false has solve my problem.

Thanks Tibor.



From: Tejas Patel 
To: flexcoders@yahoogroups.com
Sent: Wed, 20 January, 2010 12:00:41 AM
Subject: Re: [flexcoders] TabNavigator Problem.

  
Thanks Tibor Ballai.

I set historyManagementEn abled to false. So text (app=e41e&7a01- 
selectedIndex= 0) is removed from URL.
But still '#' character is appear with application URL.






From: Tibor Ballai 
To: flexcod...@yahoogro ups.com
Sent: Tue, 19 January, 2010 10:59:18 PM
Subject: Re: [flexcoders] TabNavigator Problem.

  
Hi Tejas,

What you are seeing is Flex's default history management.
You can read about it here: 
http://livedocs. adobe.com/ flex/3/html/ help.html? content=deep_ linking_8. 
html

To disable it, you can set the TabNavigator' s historyManagementEn abled 
property to false.

Tibor.

www.tiborballai. com

Tejas Patel wrote:
> 
> I've used TabNavigator control in my flex application.
> When I run my application, looks perfect.
> But when i select any tab from TabNavigator control, Application URL 
> having some strange text.
> when i select second tab, it looks like this..
> http://localhost/ TestingControls- debug/TestingCon trols.html# app=e41e& 
> 7a01-selectedInd ex=1 
> <http://localhost/ TestingControls- debug/TestingCon trols.html# app=e41e& 
> 7a01-selectedInd ex=1>
>
> when i again select first tab, it looks like this..
> http://localhost/ TestingControls- debug/TestingCon trols.html# app=e41e& 
> 7a01-selectedInd ex=0 
> <http://localhost/ TestingControls- debug/TestingCon trols.html# app=e41e& 
> 7a01-selectedInd ex=0>
>
> Why this (#app=e41e&7a01- selectedIndex= 0) text comes with application URL?
> How to stop displaying this text?
>
>
>
>  - - - - - -
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage 
> <http://in.rd. yahoo.com/ tagline_yyi_ 1/*http:/ /in.yahoo. com/>.
> 



 The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
 


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

Re: [flexcoders] TabNavigator Problem.

2010-01-19 Thread Tejas Patel
Thanks Tibor Ballai.

I set historyManagementEnabled to false. So text (app=e41e&7a01- selectedIndex= 
0) is removed from URL.
But still '#' character is appear with application URL.






From: Tibor Ballai 
To: flexcoders@yahoogroups.com
Sent: Tue, 19 January, 2010 10:59:18 PM
Subject: Re: [flexcoders] TabNavigator Problem.

  
Hi Tejas,

What you are seeing is Flex's default history management.
You can read about it here: 
http://livedocs. adobe.com/ flex/3/html/ help.html? content=deep_ linking_8. 
html

To disable it, you can set the TabNavigator' s historyManagementEn abled 
property to false.

Tibor.

www.tiborballai. com

Tejas Patel wrote:
> 
> I've used TabNavigator control in my flex application.
> When I run my application, looks perfect.
> But when i select any tab from TabNavigator control, Application URL 
> having some strange text.
> when i select second tab, it looks like this..
> http://localhost/ TestingControls- debug/TestingCon trols.html# app=e41e& 
> 7a01-selectedInd ex=1 
> <http://localhost/ TestingControls- debug/TestingCon trols.html# app=e41e& 
> 7a01-selectedInd ex=1>
>
> when i again select first tab, it looks like this..
> http://localhost/ TestingControls- debug/TestingCon trols.html# app=e41e& 
> 7a01-selectedInd ex=0 
> <http://localhost/ TestingControls- debug/TestingCon trols.html# app=e41e& 
> 7a01-selectedInd ex=0>
>
> Why this (#app=e41e&7a01- selectedIndex= 0) text comes with application URL?
> How to stop displaying this text?
>
>
>
>  - - - - - -
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage 
> <http://in.rd. yahoo.com/ tagline_yyi_ 1/*http:/ /in.yahoo. com/>.
> 


 


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

Re: [flexcoders] TabNavigator Problem.

2010-01-19 Thread Tibor Ballai
Hi Tejas,

What you are seeing is Flex's default history management.
You can read about it here: 
http://livedocs.adobe.com/flex/3/html/help.html?content=deep_linking_8.html

To disable it, you can set the TabNavigator's historyManagementEnabled 
property to false.

Tibor.

www.tiborballai.com

Tejas Patel wrote:
>  
> I've used TabNavigator control in my flex application.
> When I run my application, looks perfect.
> But when i select any tab from TabNavigator control, Application URL 
> having some strange text.
> when i select second tab, it looks like this..
> http://localhost/TestingControls-debug/TestingControls.html#app=e41e&7a01-selectedIndex=1
>  
> 
>
> when i again select first tab, it looks like this..
> http://localhost/TestingControls-debug/TestingControls.html#app=e41e&7a01-selectedIndex=0
>  
> 
>
> Why this (#app=e41e&7a01-selectedIndex=0) text comes with application URL?
> How to stop displaying this text?
>
>
>
> 
> The INTERNET now has a personality. YOURS! See your Yahoo! Homepage 
> .
> 



[flexcoders] TabNavigator Problem.

2010-01-19 Thread Tejas Patel
I've used TabNavigator control in my flex application.
When I run my application, looks perfect.
But when i select any tab from TabNavigator control, Application URL having 
some strange text.
when i select second tab, it looks like this..
http://localhost/TestingControls-debug/TestingControls.html#app=e41e&7a01-selectedIndex=1

when i again select first tab, it looks like this..
http://localhost/TestingControls-debug/TestingControls.html#app=e41e&7a01-selectedIndex=0

Why this (#app=e41e&7a01-selectedIndex=0) text comes with application URL?
How to stop displaying this text?


  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

RE: [flexcoders] TabNavigator stacking order

2009-11-23 Thread Gregor Kiddie
Either write a custom TabNavigator which does it (I can't see any
properties or styles for it), or

Just use a Viewstack and TabBar yourself to do the same effect
(TabNavigator doesn't actually add much to just using them
individually).

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk  

 



[flexcoders] TabNavigator stacking order

2009-11-23 Thread Joel Stransky
By default, a TabNavigator adds its TabBar on top of the viewstack. Is there
a way to force it to draw it underneath the subcontainers?

-- 
--Joel Stransky
stranskydesign.com


[flexcoders] TabNavigator changes page (html) title

2009-11-18 Thread ynotob
I've added a TabNavigator to a flex application.

The application is launched from html that is generated by a java server page 
(main.jsp).  The generated html includes a html page title.  

Up until I added the TabNavigator to the application, the generated html page 
title would display as expected when the flex application is run in the browser.

Now that I've added a TabNavigator, the html page title shows as expected until 
the flex application shows the TabNavigator.  Then the page title changes to 
that of the jsp (main.jsp) along with the full url to main.jsp.

Any idea of how to stop the TabNavigator from changing my page title?

Tony



RE: [SPAM] [flexcoders] TabNavigator content refresh

2009-10-22 Thread Tracy Spratt
Have both (all, really) depend on a "model".  Use binding or ChangeWatcher
or event listeners to update whatever when a value in the model is updated.
Update the model from wherever, and all will be good.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of |Mirko
Sent: Thursday, October 22, 2009 7:01 AM
To: flexcoders@yahoogroups.com
Subject: [SPAM] [flexcoders] TabNavigator content refresh

 

  


Hi,

I have a TabNavigator with let's say two Tabs - TabA and TabB along with its
contents. Both tab contents read and change xml on which their both contents
depends. If i click TabA, then on TabB in which content i modify xml and
then return to TabA which also depends on that xml but change won't be
reflected like TabA content is not refreshed :/ So i am not sure how to
handle that, how can i accomplish that Tab content refreshes every time i
click on Tab?

Thanks,
Best regards
-- 
View this message in context: http://www.nabble.
<http://www.nabble.com/TabNavigator-content-refresh-tp26008039p26008039.html
> com/TabNavigator-content-refresh-tp26008039p26008039.html
Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] TabNavigator content refresh

2009-10-22 Thread |Mirko

Hi,

I have a TabNavigator with let's say two Tabs - TabA and TabB along with its
contents. Both tab contents read and change xml on which their both contents
depends. If i click TabA, then on TabB in which content i modify xml and
then return to TabA which also depends on that xml but change won't be
reflected like TabA content is not refreshed :/ So i am not sure how to
handle that, how can i accomplish that Tab content refreshes every time i
click on Tab?

Thanks,
Best regards
-- 
View this message in context: 
http://www.nabble.com/TabNavigator-content-refresh-tp26008039p26008039.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] TabNavigator - events children get on tab show

2009-08-14 Thread Tom Chiverton
If I have a component in a Tabnavigator what event does that component receive 
when the tab navigator changes to show it ? 
It's not FlexEvent.SHOW for instance...
-- 

Tom Chiverton
Developer

tom.chiver...@halliwells.com
3 Hardman Square, Manchester, M3 3EB



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
“partner” to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] TabNavigator changing from MXML to actionscript.

2009-08-12 Thread Wesley Acheson
Thanks thats good advise. I'll try to get it to work like that.

On Wed, Aug 12, 2009 at 10:04 PM, Tracy Spratt  wrote:

>
>
>  I typically solve this problem using a TabBar and a ViewStack.  The
> ViewStack has all the components and dataProvider for the TabBar is built
> according to the permissions, with only the allowed functions.  The
> dataProvider items have the index to the corresponding ViewStack child, and
> the change event handler sets the ViewStack.selectedIndex with the
> item.index value.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Wesley Acheson
> *Sent:* Wednesday, August 12, 2009 11:06 AM
> *To:* flexcoders
> *Subject:* [flexcoders] TabNavigator changing from MXML to actionscript.
>
>
>
>
>
> Hi I've an application already mostly written.
>
> *Background*:
>
> This application uses several custom components that extend or contain
> TabNavigators.
>
> A requrirement which I've missed is that if the user doesn't have
> permission to view a tab then the tab doesn't appear in the tab navigators.
>
> However tabs still appear even if the child elements they refer to are
> invisible.
>
> So I guess that I need to do something like this in my MXML files.
>
>
> http://www.adobe.com/2006/mxml";
> xmlns:component="com.example.test.*" CreationComplete="init()">
> ...
> //Normal stuff in here
> ...
> public var tab1:CustomComponent1;
> public var tab2:CustomComponent2;
> //etc
> ...
>
> private function init():void
> {
>   if (Permissions.hasPermission("viewTab1")
>   {
> tab1 = new CustomComponent1;
> ...
> // Set the properties that are normally specified in MXML
> // Add event listeners for all the events normally specified in mxml.
> // e.g. tab1.addEventListener(SaveEvent.SAVE, handleSave);
> // Do any bindings that are normally associated with the MXML
>   }
> }
>
> ...
> 
>
> *Questions:*
>
>1. How do I set up the bindings? I have seen
>
> http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_7.htmlhowever
>  this leaves me worried that binding will occur differently.  I'm
>particually worried that I'll get binding events occuring before the
>component is initialised which won't (As is normal in mxml) be swallowed by
>the framework. I don't even know where I'd put a try block for these 
> errors.
>2. Doing things in this way means that tabs the user has permission for
>but hasn't clicked on don't apply for deferred instanceiation. Is there any
>way to get this back.  (Normally the tab navigator only instances its
>children when the appropiate tab is selected).
>3. Creating the child after CreationComplete doesn't feel right to me.
>I guess I could overwrite create children in the above example but not when
>my MXML file contains a TabNavigator rather than is a TabNavigator which is
>also a situation elsewhere in the application. Is there a better way 
> arround
>this?  Creating a ChildDiscriptor object. Does doing things in this way 
> mean
>a blank component appears then its contents appear?
>
> Thanks in Advance,
> Wes
>
>
>
>
>
>
> 
>


RE: [flexcoders] TabNavigator changing from MXML to actionscript.

2009-08-12 Thread Tracy Spratt
I typically solve this problem using a TabBar and a ViewStack.  The
ViewStack has all the components and dataProvider for the TabBar is built
according to the permissions, with only the allowed functions.  The
dataProvider items have the index to the corresponding ViewStack child, and
the change event handler sets the ViewStack.selectedIndex with the
item.index value.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Wesley Acheson
Sent: Wednesday, August 12, 2009 11:06 AM
To: flexcoders
Subject: [flexcoders] TabNavigator changing from MXML to actionscript.

 

  

Hi I've an application already mostly written.

Background:

This application uses several custom components that extend or contain
TabNavigators.

A requrirement which I've missed is that if the user doesn't have permission
to view a tab then the tab doesn't appear in the tab navigators.

However tabs still appear even if the child elements they refer to are
invisible.

So I guess that I need to do something like this in my MXML files.  


http://www.adobe.
<http://www.adobe.com/2006/mxml> com/2006/mxml"
xmlns:component="com.example.test.*" CreationComplete="init()">
...
//Normal stuff in here
...
public var tab1:CustomComponent1;
public var tab2:CustomComponent2;
//etc
...

private function init():void
{
  if (Permissions.hasPermission("viewTab1")
  {
tab1 = new CustomComponent1;
...
// Set the properties that are normally specified in MXML
// Add event listeners for all the events normally specified in mxml.
// e.g. tab1.addEventListener(SaveEvent.SAVE, handleSave);
// Do any bindings that are normally associated with the MXML
  }
}

...


Questions:

1.  How do I set up the bindings? I have seen http://livedocs.
<http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_7.html>
adobe.com/flex/3/html/help.html?content=databinding_7.html however this
leaves me worried that binding will occur differently.  I'm particually
worried that I'll get binding events occuring before the component is
initialised which won't (As is normal in mxml) be swallowed by the
framework. I don't even know where I'd put a try block for these errors.
2.  Doing things in this way means that tabs the user has permission for
but hasn't clicked on don't apply for deferred instanceiation. Is there any
way to get this back.  (Normally the tab navigator only instances its
children when the appropiate tab is selected).
3.  Creating the child after CreationComplete doesn't feel right to me.
I guess I could overwrite create children in the above example but not when
my MXML file contains a TabNavigator rather than is a TabNavigator which is
also a situation elsewhere in the application. Is there a better way arround
this?  Creating a ChildDiscriptor object. Does doing things in this way mean
a blank component appears then its contents appear?

Thanks in Advance,
Wes










[flexcoders] TabNavigator changing from MXML to actionscript.

2009-08-12 Thread Wesley Acheson
Hi I've an application already mostly written.

*Background*:

This application uses several custom components that extend or contain
TabNavigators.

A requrirement which I've missed is that if the user doesn't have permission
to view a tab then the tab doesn't appear in the tab navigators.

However tabs still appear even if the child elements they refer to are
invisible.

So I guess that I need to do something like this in my MXML files.


http://www.adobe.com/2006/mxml";
xmlns:component="com.example.test.*" CreationComplete="init()">
...
//Normal stuff in here
...
public var tab1:CustomComponent1;
public var tab2:CustomComponent2;
//etc
...

private function init():void
{
  if (Permissions.hasPermission("viewTab1")
  {
tab1 = new CustomComponent1;
...
// Set the properties that are normally specified in MXML
// Add event listeners for all the events normally specified in mxml.
// e.g. tab1.addEventListener(SaveEvent.SAVE, handleSave);
// Do any bindings that are normally associated with the MXML
  }
}

...


*Questions:*

   1. How do I set up the bindings? I have seen
   
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_7.htmlhowever
this leaves me worried that binding will occur differently.  I'm
   particually worried that I'll get binding events occuring before the
   component is initialised which won't (As is normal in mxml) be swallowed by
   the framework. I don't even know where I'd put a try block for these errors.
   2. Doing things in this way means that tabs the user has permission for
   but hasn't clicked on don't apply for deferred instanceiation. Is there any
   way to get this back.  (Normally the tab navigator only instances its
   children when the appropiate tab is selected).
   3. Creating the child after CreationComplete doesn't feel right to me. I
   guess I could overwrite create children in the above example but not when my
   MXML file contains a TabNavigator rather than is a TabNavigator which is
   also a situation elsewhere in the application. Is there a better way arround
   this?  Creating a ChildDiscriptor object. Does doing things in this way mean
   a blank component appears then its contents appear?

Thanks in Advance,
Wes


Re: [flexcoders] TabNavigator SEO in Flex

2009-05-08 Thread Shabith Ishan
thanks GK.


On Fri, May 8, 2009 at 6:07 PM, Gregor Kiddie  wrote:

>
>
>  It’s the history management functions…
>
>
>
> You can turn this off in your application tag.
>
>
>
> Gk.
>
> *Gregor Kiddie*
> Senior Developer
> *INPS*
>
> Tel:   01382 564343
>
> Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ
>
> Registered Number: 1788577
>
> Registered in the UK
>
> Visit our Internet Web site at www.inps.co.uk
>
> The information in this internet email is confidential and is intended
> solely for the addressee. Access, copying or re-use of information in it by
> anyone else is not authorised. Any views or opinions presented are solely
> those of the author and do not necessarily represent those of INPS or any of
> its affiliates. If you are not the intended recipient please contact
> is.helpd...@inps.co.uk
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Shabith
> *Sent:* 08 May 2009 03:53
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] TabNavigator SEO in Flex
>
>
>
>
>
>
>
> Hi,
>
> I'm new to flex and new to this forum as well.
> I have a tab navigator. When i click on the certain tab my Web address
> is change to something like
>
> c:/demoapp/demoapp.html#app=6688&5286-selectedIndex=0
>
> what does this "app" means? Can I disable this in tab navigator? or
> else can I change this "app" to something.
>
> Thanks
>
> Shabith
>   
>


RE: [flexcoders] TabNavigator SEO in Flex

2009-05-08 Thread Gregor Kiddie
It's the history management functions...

 

You can turn this off in your application tag.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Shabith
Sent: 08 May 2009 03:53
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator SEO in Flex

 







Hi,

I'm new to flex and new to this forum as well.
I have a tab navigator. When i click on the certain tab my Web address
is change to something like

c:/demoapp/demoapp.html#app=6688&5286-selectedIndex=0

what does this "app" means? Can I disable this in tab navigator? or
else can I change this "app" to something.

Thanks

Shabith





[flexcoders] TabNavigator SEO in Flex

2009-05-08 Thread Shabith

Hi,

I'm new to flex and new to this forum as well.
I have a tab navigator. When i click on the certain tab my Web address
is change to something like

c:/demoapp/demoapp.html#app=6688&5286-selectedIndex=0

what does this "app" means? Can I disable this in tab navigator? or
else can I change this "app" to something.

Thanks

Shabith



[flexcoders] TabNavigator creationPolicy

2009-05-01 Thread Richard Rodseth
I have a TabNavigator with creationPolicy = "auto".
The immediate children are intermediate (superfluous) VBoxes containing the
actual components to be displayed.
Nevertheless actual component A's creationComplete fires even though it's
tab is not the active one.
What's up?


[flexcoders] TabNavigator data provider

2009-02-19 Thread lanekelly5
I have a ViewStack which I'm controlling with a LinkBar (via the 
dataProvider). I want to have a second TabNavigator (actually the 
google code SuperTabNavigator) controlling this same ViewStack. What I 
can't seem to figure out is how to assign a dataProvider to the 
TabNavigator. Are there any examples that show this? 

Thanks.



RE: [flexcoders] TabNavigator with multiline labels in tabs

2008-10-09 Thread Gregor Kiddie
I answered the same question last week. The response was...

 

"Yes, but it's convoluted! (Please, if there is an easier way to do
this, 

I'd be interested!) 

TabNavigator has a TabBar, which uses the Tab class to create its 

navigation items. 

You'd have to subclass Tab to create a version which included a button 

with 2 lines of text (That particular piece of info should be easy to 

find these days) 

You then have to subclass TabBar to set navItemFactory to the subclass 

of Tab.

Then subclass TabNavigator to get the tabBar to be your subclassed 

TabBar rather than the standard one. 

It's pretty straightforward, just messy."

 

((Thanks search coders for making it easy to find my own posts now!))

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of franzthues
Sent: 09 October 2008 15:17
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator with multiline labels in tabs

 

Hello everyone,

I'm a longtime Flash developer tackling his first Flex project.

The layout I'm implementing specifies two-line tab labels for the
TabNavigator, which doesn't seem to be supported by Flex per default.
I'm a bit confused as to how I would approach changing the
TabNavigator's tab texfields to multiline. 

I'd be very grateful for any input on this topic.

Thanks,
franz

 



[flexcoders] TabNavigator with multiline labels in tabs

2008-10-09 Thread franzthues
Hello everyone,

I'm a longtime Flash developer tackling his first Flex project.

The layout I'm implementing specifies two-line tab labels for the
TabNavigator, which doesn't seem to be supported by Flex per default.
I'm a bit confused as to how I would approach changing the
TabNavigator's tab texfields to multiline. 

I'd be very grateful for any input on this topic.


Thanks,
franz



RE: [flexcoders] TabNavigator with a two lines label

2008-09-29 Thread Gregor Kiddie
Yes, but it's convoluted! (Please, if there is an easier way to do this,
I'd be interested!)

TabNavigator has a TabBar, which uses the Tab class to create its
navigation items.

 

You'd have to subclass Tab to create a version which included a button
with 2 lines of text (That particular piece of info should be easy to
find these days)

You then have to subclass TabBar to set navItemFactory to the subclass
of Tab

Then subclass TabNavigator to get the tabBar to be your subclassed
TabBar rather than the standard one.

 

It's pretty straightforward, just messy.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: 29 September 2008 15:04
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator with a two lines label

 

Is it possible to have a TabNavigator with a label text in two lines?

Thanks

 



[flexcoders] TabNavigator with a two lines label

2008-09-29 Thread markgoldin_2000
Is it possible to have a TabNavigator with a label text in two lines?

Thanks



RE: [flexcoders] TabNavigator - have to click twice on tab to display page

2008-09-25 Thread Manu Dhanda

Hi Tracy,

It's really an issue with TabNavigator and we had faced it.
I won't say that I need to click the tab twice, but I need to switch back to
Tab1 and then come back to Tab2 to see the content on my 2nd Tab.

And yes, already tried with creationPolicy='all', but it din't worked.

-Manu.


Tracy Spratt wrote:
> 
> Are you programatically doing anything with the content of tab 2?
> 
>  
> 
> Do you understand about deferred instantiation and creationPolicy?
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of donald_d_hook
> Sent: Thursday, September 25, 2008 2:15 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] TabNavigator - have to click twice on tab to
> display page
> 
>  
> 
> I have a tab navigator with 3 tabs. Each tab has a canvas with 
> several components on it. when the page is displayed, you see the 1st 
> tab. When I navigate to the 2nd tab, I have to click the 2nd tab 
> twice in order to view the contents of the tab. It looks like the 
> first click on the 2nd tab goes back to the first tab, then the 2nd 
> click displays the contents of the 2nd tab.
> 
> Was wondering if anyone has experienced this behavior and wondering 
> what I am doing wrong.
> 
> Thanks in advance.
> 
>  
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TabNavigator---have-to-click-twice-on-tab-to-display-page-tp19675428p19681501.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] TabNavigator - have to click twice on tab to display page

2008-09-25 Thread Tracy Spratt
Are you programatically doing anything with the content of tab 2?

 

Do you understand about deferred instantiation and creationPolicy?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of donald_d_hook
Sent: Thursday, September 25, 2008 2:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator - have to click twice on tab to
display page

 

I have a tab navigator with 3 tabs. Each tab has a canvas with 
several components on it. when the page is displayed, you see the 1st 
tab. When I navigate to the 2nd tab, I have to click the 2nd tab 
twice in order to view the contents of the tab. It looks like the 
first click on the 2nd tab goes back to the first tab, then the 2nd 
click displays the contents of the 2nd tab.

Was wondering if anyone has experienced this behavior and wondering 
what I am doing wrong.

Thanks in advance.

 



Re: [flexcoders] TabNavigator - have to click twice on tab to display page

2008-09-25 Thread Sajid Hussain
I have this same issue with super tab navigator .I left this for my pending 
work but it seems to be genral fix like tab navigators on click event and 
settign up our required tab .
furhter this forum is full of gurus 


  

[flexcoders] TabNavigator - have to click twice on tab to display page

2008-09-25 Thread donald_d_hook
I have a tab navigator with 3 tabs.  Each tab has a canvas with 
several components on it.  when the page is displayed, you see the 1st 
tab.  When I navigate to the 2nd tab, I have to click the 2nd tab 
twice in order to view the contents of the tab.  It looks like the 
first click on the 2nd tab goes back to the first tab, then the 2nd 
click displays the contents of the 2nd tab.

Was wondering if anyone has experienced this behavior and wondering 
what I am doing wrong.

Thanks in advance.



[flexcoders] TabNavigator - have to click twice on tab to display page

2008-09-25 Thread donald_d_hook
I have a tab navigator with 3 tabs.  Each tab has a canvas with 
several components on it.  when the page is displayed, you see the 1st 
tab.  When I navigate to the 2nd tab, I have to click the 2nd tab 
twice in order to view the contents of the tab.  It looks like the 
first click on the 2nd tab goes back to the first tab, then the 2nd 
click displays the contents of the 2nd tab.

Was wondering if anyone has experienced this behavior and wondering 
what I am doing wrong.

Thanks in advance.



RE: [flexcoders] TabNavigator - how to make label a hyperlink that loads a specific module

2008-08-14 Thread Tracy Spratt
Use TabBar and ViewStack, you can then programatically determine what
any tab click does.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of djohnson29
Sent: Thursday, August 14, 2008 4:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator - how to make label a hyperlink that
loads a specific module

 


I have a regular TabNavigator like so:

 




// more tabs go here



Within each tab, at various times in the program, I change the url of
the moduleLoader to load a new module within this container. When I
navigate to another tab, and then go back to this tab, the last loaded
module is displaying.

I would like to have the functionality so that the Label of the Tab is
a hyperlink - that would always load the "top-level" module. In other
words, the tab label will always load a specific module.

How can I make this a hyperlink or a LinkButton when the label
property is actually part of the VBox? Not sure how to do this

Thanks




 



[flexcoders] TabNavigator - how to make label a hyperlink that loads a specific module

2008-08-14 Thread djohnson29

I have a regular TabNavigator like so:

 
 
  
 

 // more tabs go here




Within each tab, at various times in the program, I change the url of
the moduleLoader to load a new module within this container.  When I
navigate to another tab, and then go back to this tab, the last loaded
module is displaying.

I would like to have the functionality so that the Label of the Tab is
a hyperlink - that would always load the "top-level" module.  In other
words, the tab label will always load a specific module.

How can I make this a hyperlink or a LinkButton when the label
property is actually part of the VBox? Not sure how to do this

Thanks

 




RE: [flexcoders] TabNavigator - script tab selection

2008-07-23 Thread Alex Harui
Try setting the selectedIndex in a callLater

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ron_mori
Sent: Wednesday, July 23, 2008 9:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator - script tab selection

 

Using TabNavigator, my app defines 3 tabs:
1. List Products
2. Edit Product Form
3. New Product

As you would expect, the Flow s/b:
A. Select product from list brings it up in tab #2 for edit -and-
B. Select tab #3 brings a new product up in tab #2 for edit.

Flow A is fine - my class handles a ListEvent.ITEM_CLICK, set
SelectProduct to event's selectedItem and then set the selectedIndex
in my tabNavigator to show the edit panel.

Flow B is NOT fine - the class handles a IndexChangedEvent.CHANGE,
sets SelectProduct to new product and then sets the selectedIndex in
TabNav to 1 to show edit panel.

The problem is with Flow B - the correct TabNav panel (product edit)
is displayed but the New Product tab remains selected. My hunch is
the type of event and component redraw flow has something to do with
this.

the help & user group is always appreciated.

 



[flexcoders] TabNavigator - script tab selection

2008-07-23 Thread ron_mori
Using TabNavigator, my app defines 3 tabs:
1. List Products
2. Edit Product Form
3. New Product

As you would expect, the Flow s/b:
A. Select product from list brings it up in tab #2 for edit -and-
B. Select tab #3 brings a new product up in tab #2 for edit.

Flow A is fine - my class handles a ListEvent.ITEM_CLICK, set
SelectProduct to event's selectedItem and then set the selectedIndex
in my tabNavigator to show the edit panel.

Flow B is NOT fine - the class handles a IndexChangedEvent.CHANGE,
sets SelectProduct to new product and then sets the selectedIndex in
TabNav to 1 to show edit panel.

The problem is with Flow B - the correct TabNav panel (product edit)
is displayed but the New Product tab remains selected.  My hunch is
the type of event and component redraw flow has something to do with this.

the help & user group is always appreciated.



[flexcoders] Tabnavigator without the default tab enabled?

2008-07-15 Thread vipinck
Is it possible to have a tabnavigator component without the default
tab activated/highlighted? When in normal state all tabs should be
deselected state. I know this is unconventional for a TabNavigator.

-Vipin



Re: [flexcoders] (TabNavigator component )Error #1009Cannot access a property or method of a null object reference

2008-07-10 Thread Ray Zhang
thank u very much .


- Original Message 
From: Manu Dhanda <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, July 10, 2008 3:53:11 PM
Subject: Re: [flexcoders] (TabNavigator component )Error #1009Cannot access a 
property or method of a null object reference



Although I could not exactly understand like how you are proceeding with your
application. But as about this error, it is coming because you haven't
initialized something before you are trying to use it.
as in this case, 
this.day.title = "day schedule";
You might haven't initialized "this.day" to something(like new Date() or
whatever it is here) before using it in the above line.

Try to initialize it and then execute your application.

-Manu.

Ray Zhang wrote:
> 
> After the page is shown ,i have to do some logic handle (add ,edit) in the
> Panel week through popup a window.
> popup a window (PopUpManager. addPopUp)  in the  in the Panel week,and close
> the
> window (PopUpManager. removePopUp) .(Image 1,2  in the attach file)
> after that when I click the Panel day  , and it executes the code
> "this.day.title = "day schedule";"
> and then the following error happened.(Image  3  in the attach file)
> Error #1009Cannot access a property or method of a null object reference
> But I didn't popup  a window in Panel week , after the page is shown
> ,directy click the
> Panel day ,there isn't any error .
> BTW:i have set the creationPolicy= "all" property.
> does someone knows how to deal with the problem
> thank u!
> the relervent code is the following :
>  creationPolicy= "all" change="tabChange( event)" >
> 
>      .
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

-- 
View this message in context: http://www.nabble. com/%28TabNaviga 
tor-component- -%29Error- -1009Cannot- access-a- property- or-method- 
of-a-null- object-reference -tp18376134p1837 6993.html
Sent from the FlexCoders mailing list archive at Nabble..com.

 


  

Re: [flexcoders] (TabNavigator component )Error #1009Cannot access a property or method of a null object reference

2008-07-09 Thread Manu Dhanda

Although I could not exactly understand like how you are proceeding with your
application. But as about this error, it is coming because you haven't
initialized something before you are trying to use it.
as in this case, 
this.day.title = "day schedule";
You might haven't initialized "this.day" to something(like new Date() or
whatever it is here) before using it in the above line.

Try to initialize it and then execute your application.

-Manu.



Ray Zhang wrote:
> 
> After the page is shown ,i have to do some logic handle (add ,edit) in the
> Panel week through popup a window.
> popup a window (PopUpManager.addPopUp) in the  in the Panel week,and close
> the
> window (PopUpManager.removePopUp).(Image 1,2  in the attach file)
> after that when I click the Panel day  , and it executes the code
> "this.day.title = "day schedule";"
> and then the following error happened.(Image 3  in the attach file)
> Error #1009Cannot access a property or method of a null object reference
> But I didn't popup  a window in Panel week , after the page is shown
> ,directy click the
> Panel day ,there isn't any error .
> BTW:i have set the creationPolicy="all" property.
> does someone knows how to deal with the problem
> thank u!
> the relervent code is the following :
>  creationPolicy="all" change="tabChange(event)" >
> 
>     .
> 
> 
> 
> 
> 
> 
>   
>  
>  
>  
> 

-- 
View this message in context: 
http://www.nabble.com/%28TabNavigator-component--%29Error--1009Cannot-access-a-property-or-method-of-a-null-object-reference-tp18376134p18376993.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] TabNavigator children

2008-05-17 Thread Paul Andrews
Why would you have a TabNavigator - something that supports the tabbed 
interface paradigm, showing only one tab at a time, then go ahead and try 
and make it behave like something else?

Why don't you have a TabBar, then manage the displayed pages (containers) 
yourself? You can then dispose of the TabBar and still have the containers 
to work with.

Paul
- Original Message - 
From: "Daniel" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, May 17, 2008 5:43 PM
Subject: [flexcoders] TabNavigator children


> Hey guys,
>
> Maybe this is easy, but I just can't figure it out! I have a
> TabNavigator with a few tabs. At some point at run time I want to
> dispose the TabNavigator and draw the containers in its tabs. The
> problem is when I get the TabNavigator children and draw them on
> screen it draws only one tab (the tab is selected by the time). The
> unselected tabs exist, but are not drawn on screen. I've tried to
> explicitly setting the position and size of each of them without success.
>
> How can I draw all the tabs?
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>
> 



[flexcoders] TabNavigator children

2008-05-17 Thread Daniel
Hey guys,

Maybe this is easy, but I just can't figure it out! I have a
TabNavigator with a few tabs. At some point at run time I want to
dispose the TabNavigator and draw the containers in its tabs. The
problem is when I get the TabNavigator children and draw them on
screen it draws only one tab (the tab is selected by the time). The
unselected tabs exist, but are not drawn on screen. I've tried to
explicitly setting the position and size of each of them without success.

How can I draw all the tabs?



[flexcoders] TabNavigator and index out of bounds exception

2008-03-28 Thread Mark Bradley

Greetings,

I am trying to figure out how to get the TabNavigator to create it's  
children so they are accessible after I add the TabNavigator to it's  
parent through addChild().  However, I am getting an index out of  
bounds error because the TabBar children have not been created yet.   
Does anyone know how I can force creation of the TabBar children so I  
can assess them immediately?


Below is an example of the code that show my problem.

Thanks,

-Mark


http://www.adobe.com/2006/mxml";  
verticalGap="0" xmlns:local="*" height="100%" initialize="addTabs()" >



 




[flexcoders] TabNavigator & scrollbar space - BUG ?

2008-03-25 Thread bobpardoe1959
I have a TabNavigator and I add children to it in actionscript. Each
child has its style set to top=2, bottom=2, left=2, right=2.

When displayed the tabnavigator has a 20ish pixel gap on bottom and on
the right of the container area. Left and top are aligned correctly. 

It looks as if it is space reserved for scroll bars.

I have set the horizontalGap and verticalGap styles to be 0. I have
turned off the horizontal and vertical scroll policies, but still it
remains.

Is it me or is the Flex 3 measurement system less robust than Flex2 ?
I seem to be having all sorts of issues relating to the runtime
measurement of HBox and VBox components when sized by percent or styles.

Is anyone able explain what might be going on ?

Thanks

BOb



Re: [flexcoders] TabNavigator Question

2008-03-24 Thread Anuj Gakhar
great, that worked. thanks a lot. Now that it works, it looks so 
simplethanks again.

Doug McCune <[EMAIL PROTECTED]> wrote: try this 
example


http://www.adobe.com/2006/mxml";>

 


 




 


Doug


On Sun, Mar 23, 2008 at 10:38 AM, Anuj Gakhar <[EMAIL PROTECTED]> wrote:
  
Hi Alex, 
Do you mind showing me a little example of how to do this?
 That would be really great...

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
 To: flexcoders@yahoogroups.com
Sent: Thursday, March 20, 2008 5:28:29 PM
Subject: RE: [flexcoders] TabNavigator Question

 
   
  Wrap the TabNav in a Canvas, and place whatver you want in the open area
 
   

-
  
  From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On 
Behalf Of anujgakhar 
 Sent: Monday, March 17, 2008 2:59 PM
 
To: [EMAIL PROTECTED] ups.com
 Subject: [flexcoders] TabNavigator Question
   

 hi all, 
 
 I have a TabNavigator with 4 tabs in it. Each tab has got a HBox with
 a widt of 800. now when this shows up on the screen, it shows me 4
 tabs as expected. 
 
 My tabs are right aligned and I want to be able to utilize the empty
 space on the left side of the tabs for something more useful, is this
 even possible ? So just to be clear, a HBox of width 800 and 4 tabs on
 top would leave some empty space towards the left at the top of
 Box...can I put some control in that space...e.g. a slider control ? 
 
 I am just running out of ideas on this one...so thought I should ask
 here..
 
 any help would be appreciated.
   
  

 


 





   
-
Be a better friend, newshound, and  know-it-all with Yahoo! Mobile.  Try it 
now. 
 
  



 
 
   

   
-
Never miss a thing.   Make Yahoo your homepage.

Re: [flexcoders] TabNavigator Question

2008-03-23 Thread Doug McCune
try this example


http://www.adobe.com/2006/mxml";>












Doug

On Sun, Mar 23, 2008 at 10:38 AM, Anuj Gakhar <[EMAIL PROTECTED]> wrote:

>   Hi Alex,
> Do you mind showing me a little example of how to do this?
> That would be really great...
>
> - Original Message 
> From: Alex Harui <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Thursday, March 20, 2008 5:28:29 PM
> Subject: RE: [flexcoders] TabNavigator Question
>
>   Wrap the TabNav in a Canvas, and place whatver you want in the open area
>
>
>  --
>
> *From:* [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ]
> *On Behalf Of *anujgakhar
> *Sent:* Monday, March 17, 2008 2:59 PM
> *To:* [EMAIL PROTECTED] ups.com
> *Subject:* [flexcoders] TabNavigator Question
>
>
>
> hi all,
>
> I have a TabNavigator with 4 tabs in it. Each tab has got a HBox with
> a widt of 800. now when this shows up on the screen, it shows me 4
> tabs as expected.
>
> My tabs are right aligned and I want to be able to utilize the empty
> space on the left side of the tabs for something more useful, is this
> even possible ? So just to be clear, a HBox of width 800 and 4 tabs on
> top would leave some empty space towards the left at the top of
> Box...can I put some control in that space...e.g. a slider control ?
>
> I am just running out of ideas on this one...so thought I should ask
> here..
>
> any help would be appreciated.
>
>
>
> --
> Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it
> now.<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ>
> 
>


Re: [flexcoders] TabNavigator Question

2008-03-23 Thread Anuj Gakhar
Hi Alex, 
Do you mind showing me a little example of how to do this?
That would be really great...

- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, March 20, 2008 5:28:29 PM
Subject: RE: [flexcoders] TabNavigator Question








Wrap the TabNav in a Canvas, and place
whatver you want in the open area
   
 
From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com ] On Behalf 
Of anujgakhar
Sent: Monday, March 17, 2008 2:59PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] TabNavigatorQuestion
 
  
 hi all, 

I have a TabNavigator with 4 tabs in it. Each tab has got a HBox with
a widt of 800. now when this shows up on the screen, it shows me 4
tabs as expected. 

My tabs are right aligned and I want to be able to utilize the empty
space on the left side of the tabs for something more useful, is this
even possible ? So just to be clear, a HBox of width 800 and 4 tabs on
top would leave some empty space towards the left at the top of
Box...can I put some control in that space...e.g. a slider control ? 

I am just running out of ideas on this one...so thought I should ask
here..

any help would be appreciated.
 

















  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] tabnavigator and states

2008-03-13 Thread cool buddy

HI all,

Can some one please help me out on my problem with the use of tabnavigator and 
states. when i use currentState='' it doesn't go the base state but goes to the 
another page with index 1

i have defined in the actionscript to go the selected index to 0 ..but still it 
goes to 1..

Thanks,




  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: [flexcoders] TabNavigator weirdness

2008-03-06 Thread Sherif Abdou
just let me clarify me statment is an opinion but i really dont know why it 
doesnt get set at the beginning but this works



- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, March 6, 2008 11:03:05 PM
Subject: Re: [flexcoders] TabNavigator weirdness

this works, dispatch a fake event and change it, what happens is the 
TabNavigator either loses focus or the children are not garbage collected until 
there is a click or some form of interaction with it

http://www.adobe. com/2006/ mxml" 
layout="vertical" xmlns:lib="com.lib.*">



 











- Original Message 
From: dbronk <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Thursday, March 6, 2008 10:32:24 PM
Subject: [flexcoders] TabNavigator weirdness


I have a TabNavigator component that I completely reset the tabs
dynamically with the following code:

tabNav.removeAllChi ldren();
for each (var container:Container in myList )
{
tabNav.addChild( container)
}
tabNav.selectedInde x = 0;

So this successfully removes the existing tabs, then loops though my
ArrayCollection and adds a new set of tabs. It also shows the
contents of tabNav[0], but the tab that displays as selected is
whatever was currently selected. So if I originally displayed the
tabnav and clicked the 3rd tab, then clicked the button completely
outside of the tabnav that causes it to redisplay, it will correct
show the contents of tabnav[0], but visually it looks like the 3rd tab
is still selected.

I also tried tabNav.validateNow( ) and it doesn't work. To test I
added a button completely outside of the tabnav with
click="tabnav. selectedIndex= 0", works great.

So what am I not doing?

Thanks,
Dale







Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. 
 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

Re: [flexcoders] TabNavigator weirdness

2008-03-06 Thread Sherif Abdou
this works, dispatch a fake event and change it, what happens is the 
TabNavigator either loses focus or the children are not garbage collected until 
there is a click or some form of interaction with it

http://www.adobe.com/2006/mxml"; 
layout="vertical" xmlns:lib="com.lib.*">















- Original Message 
From: dbronk <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, March 6, 2008 10:32:24 PM
Subject: [flexcoders] TabNavigator weirdness

I have a TabNavigator component that I completely reset the tabs
dynamically with the following code:

tabNav.removeAllChi ldren();
for each (var container:Container in myList )
{
tabNav.addChild( container)
}
tabNav.selectedInde x = 0;

So this successfully removes the existing tabs, then loops though my
ArrayCollection and adds a new set of tabs. It also shows the
contents of tabNav[0], but the tab that displays as selected is
whatever was currently selected. So if I originally displayed the
tabnav and clicked the 3rd tab, then clicked the button completely
outside of the tabnav that causes it to redisplay, it will correct
show the contents of tabnav[0], but visually it looks like the 3rd tab
is still selected.

I also tried tabNav.validateNow( ) and it doesn't work. To test I
added a button completely outside of the tabnav with
click="tabnav. selectedIndex= 0", works great.

So what am I not doing?

Thanks,
Dale


 


  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

[flexcoders] TabNavigator weirdness

2008-03-06 Thread dbronk
I have a TabNavigator component that I completely reset the tabs
dynamically with the following code:

tabNav.removeAllChildren();
for each (var container:Container in myList )
{
tabNav.addChild(container)
}
tabNav.selectedIndex = 0;

So this successfully removes the existing tabs, then loops though my
ArrayCollection and adds a new set of tabs.  It also shows the
contents of tabNav[0], but the tab that displays as selected is
whatever was currently selected.  So if I originally displayed the
tabnav and clicked the 3rd tab, then clicked the button completely
outside of the tabnav that causes it to redisplay, it will correct
show the contents of tabnav[0], but visually it looks like the 3rd tab
is still selected.

I also tried tabNav.validateNow() and it doesn't work.  To test I
added a button completely outside of the tabnav with
click="tabnav.selectedIndex=0", works great.

So what am I not doing?

Thanks,
Dale



Re: [flexcoders] Tabnavigator crashes ALL tweens

2008-02-10 Thread Sherif Abdou
i guess you can always do a profile and maybe see if there is a loop somewhere 
or what is going on in the memmory. 


- Original Message 
From: raymondjp <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, February 10, 2008 7:31:31 PM
Subject: [flexcoders] Tabnavigator crashes ALL tweens


Hi all,

I have (after days of troubleshooting) figured out the the use of a
tabnavigator component in my applications is causing any further use of
a tween (even the opening of a combobox) to crash flash player and the
browser.

I can use the tweens successfully up until the point that i click on
another tab in the tabnavigator then the player grinds to a halt and
becomes unresponsive.

I have created an entirely separate test application and have been
unable to replicate the results. Does anyone have any advice on where to
look (in my code) or have experienced something similar?

Both apps are Flex 2, Cairngorm 2.2.

Many thanks for any help or direction

Justin





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

[flexcoders] Tabnavigator crashes ALL tweens

2008-02-10 Thread raymondjp

Hi all,

I have (after days of troubleshooting) figured out the the use of a
tabnavigator component in my applications is causing any further use of
a tween (even the opening of a combobox) to crash flash player and the
browser.

I can use the tweens successfully up until the point that i click on
another tab in the tabnavigator then the player grinds to a halt and
becomes unresponsive.

I have created an entirely separate test application and have been
unable to replicate the results. Does anyone have any advice on where to
look (in my code) or have  experienced something similar?

Both apps are Flex 2, Cairngorm 2.2.

Many thanks for any help or direction

Justin




Re: Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread tpokrajcic

wow, it works.
i can't express how much i'm glad it's not a bug :)
thnx people,

tomislav




Jerome Clarke wrote:
> 
> After looking through the source code to how it works... it is not a bug
> :p... my mistake
> 
> What's happening is the tab navigator doesn't create all the children
> because the property "creationPolicy" is set to "auto" the Flex framework
> checks to see if the property "target" is true ( in your case text1, text2
> and text3 and others )... because they are not true ( basically not
> initialized/created yet ) it sets it to it's parent ( of course the parent
> is the TitleWindow ) and because you are setting the property "visible" to
> false... that's what gives you the illusion that it just crashes :p... and
> this also leads to a memory leak
> 
> solution is to set the property "creationPolicy" on your tab navigator to
> "all"
> 
> oh well... learned from my mistake :p
> 
> hope it helps like others have above me
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TabNavigator%2BStates%3DCrash-tp15136291p15145785.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread tpokrajcic

TitleWindow closes instead of changing state. Silently, no exceptions thrown.



Tom Chiverton-2 wrote:
> 
> On Monday 28 Jan 2008, tpokrajcic wrote:
>> In some cases something just crashes (like here)
> 
> Just to be clear, are you seeing an actual crash (of player or browser), a
> run 
> time exception, or something just not working ? 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/TabNavigator%2BStates%3DCrash-tp15136291p15138981.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread Muzak
read up on creationPolicy.
http://livedocs.adobe.com/flex/201/langref/mx/core/Container.html#creationPolicy


- Original Message - 
From: "tpokrajcic" <[EMAIL PROTECTED]>
To: 
Sent: Monday, January 28, 2008 3:33 PM
Subject: [flexcoders] TabNavigator+States=Crash


> 
> I made a simple example of TitleWindow with TabNavigator and 2 states.
> Please check it out (source view available) at:
> 
> http://www.svemir.net/flex/tabs_and_states/
> 
> Window crashes after pressing button for state change. But if you walk a bit
> over tabs (click Tab2 and Tab3) window changes state.
> I'm I doing something wrong or it's time to fill a bug?
> 
> Tomislav 
> -- 
> View this message in context: 
> http://www.nabble.com/TabNavigator%2BStates%3DCrash-tp15136291p15136291.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
>


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread Tom Chiverton
On Monday 28 Jan 2008, tpokrajcic wrote:
> In some cases something just crashes (like here)

Just to be clear, are you seeing an actual crash (of player or browser), a run 
time exception, or something just not working ? 

-- 
Tom Chiverton
Helping to administratively streamline enterprise-class interfaces
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread tpokrajcic

I generally had a lot of pain with states during past few weeks...
This is a very simple example that doesn't work, and I have many others.
In some cases something just crashes (like here), sometimes state changes
don't apply everywhere and sometimes component coordinates get messed up (it
seems to me as coordinate root is not referenced to parent container but to
grandparent container).

But in all my cases there's one common denominator - TabNavigator.

My bad luck is that my app has bunch of this TabbedWindows, and if there are
more than 2 tabs I'm sweating... 


Tomislav
-- 
View this message in context: 
http://www.nabble.com/TabNavigator%2BStates%3DCrash-tp15136291p15138143.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread Jerome Clarke
I think what he's saying is...

you press the button "Open window" and then press the button "Change state"
and the window closes straight away...

However if you press the "Open window" button and then click to Tab 2 and
then Tab 3 and then press the "Change state" button... then the label in
each tab changes to a text input field...

the bug is it's closes the flex window after you press the "Change state"
button without clicking through the tabs ( I had to select 2 different tabs
before the "Change state" button worked correctly )


Re: [flexcoders] TabNavigator+States=Crash

2008-01-28 Thread Tom Chiverton
On Monday 28 Jan 2008, tpokrajcic wrote:
> Window crashes after pressing button for state change. But if you walk a

Not here (FireFox, Linux, latest released debug player).

-- 
Tom Chiverton
Helping to continuously differentiate strategic e-markets
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] TabNavigator+States=Crash

2008-01-28 Thread tpokrajcic

I made a simple example of TitleWindow with TabNavigator and 2 states.
Please check it out (source view available) at:

http://www.svemir.net/flex/tabs_and_states/

Window crashes after pressing button for state change. But if you walk a bit
over tabs (click Tab2 and Tab3) window changes state.
I'm I doing something wrong or it's time to fill a bug?

Tomislav 
-- 
View this message in context: 
http://www.nabble.com/TabNavigator%2BStates%3DCrash-tp15136291p15136291.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] TabNavigator button customisation

2008-01-23 Thread Dale Fraser
Try this

 

http://www.flexibleexperiments.com/Flex/ExtendedTabNavigator/Sample.html

 

Regards

Dale Fraser

 

http://learncf.com

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hmmmbeer3
Sent: Thursday, 24 January 2008 10:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator button customisation

 

Hi,

what is the best way to achieve customisation of the Button assoicated 
with a Tab Page? As a first step, I would like to be able to put a 
red 'x' on the right end with a click event handler to close that tab.

Cheers,

Radek

 



Re: [flexcoders] TabNavigator button customisation

2008-01-23 Thread Sherif Abdou
u mean like this?
http://flexlib.googlecode.com/svn/trunk/examples/SuperTabNavigator/SuperTabNavigator_Sample.swf
the source code is there too, superTabNaviagtor
http://code.google.com/p/flexlib/wiki/ComponentList


- Original Message 
From: hmmmbeer3 <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, January 23, 2008 5:49:34 PM
Subject: [flexcoders] TabNavigator button customisation

Hi,

what is the best way to achieve customisation of the Button assoicated 
with a Tab Page? As a first step, I would like to be able to put a 
red 'x' on the right end with a click event handler to close that tab.

Cheers,

Radek





  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

[flexcoders] TabNavigator button customisation

2008-01-23 Thread hmmmbeer3
Hi,

what is the best way to achieve customisation of the Button assoicated 
with a Tab Page?  As a first step, I would like to be able to put a 
red 'x' on the right end with a click event handler to close that tab.

Cheers,

Radek



[flexcoders] TabNavigator and States problem

2008-01-02 Thread tpokrajcic
I have a TitleWindow and a TabNavigator inside with several tabs based
on Canvas.
There are two states - "Base State" and "Edit". TitleWindow goes to
"Edit" state upon click on "Edit" button.

Now a problem:
After clicking on a button, state of current tab changes to Edit, but
when I click other tabs, they're in Base State. 
Actually, after switching tabs I can see in a blink of an eye that
other tab somehow changed state from Edit back to Base State, but when
I place breakpoints in UIComponent state handling functions I can't
catch any state changing there...
And more strange is that the first tab always has a correct state, no
matter on what tab I was when clicking button.
Anyone experienced something like this?


Tomislav






[flexcoders] TabNavigator : Is there a way to set corner Radius to only bottom corners?

2007-12-30 Thread thebeginnersmind
Is there a way to set cornerRadius of Tab Navigator to only bottom left and 
bottom right 
corners ( and not 4 of them)  ?

 (The below code in css sets cornerRadius to all 4 corners.)

TabNavigator {

cornerRadius: 10;

}

Thanks!!



Re: [flexcoders] TabNavigator no child selected

2007-11-18 Thread Rico Leuthold
I tried that. The problem is the tabBar (where I have to change the  
border color as well) which is not acessible from the TabNavigator.
The only way I found so far is to change the styleName property of  
the TabNavigator, but this is an extremly slow action (around two  
seconds).


tanks_rico


On 15.11.2007, at 18:39, Alex Harui wrote:



You could try changing skins/styles on the inactive one.



From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of rleuthold

Sent: Thursday, November 15, 2007 12:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator no child selected



Hi,

Is it possible to set a TabNavigator to have no child selected with  
Action Script. I need it, cause
there are two tabNavigators in my App and I want to have the  
"selected skin" (red border) only

active in one of the TabNavigators.

Thank's

_rico






...
Rico Leuthold
[EMAIL PROTECTED]
+41(0)76 512 05 50
...




RE: [flexcoders] TabNavigator no child selected

2007-11-15 Thread Alex Harui
You could try changing skins/styles on the inactive one.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rleuthold
Sent: Thursday, November 15, 2007 12:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator no child selected

 

Hi,

Is it possible to set a TabNavigator to have no child selected with
Action Script. I need it, cause 
there are two tabNavigators in my App and I want to have the "selected
skin" (red border) only 
active in one of the TabNavigators.

Thank's

_rico

 



[flexcoders] TabNavigator no child selected

2007-11-15 Thread rleuthold
Hi,

Is it possible to set a TabNavigator to have no child selected with Action 
Script. I need it, cause 
there are two tabNavigators in my App and I want to have the "selected skin" 
(red border) only 
active in one of the TabNavigators.

Thank's

_rico



Re: [flexcoders] TabNavigator hide/show tabs

2007-11-07 Thread Scott Melby
You may be better off using the SuperTabBar 
 
component from flexlib.


hth
Scott

Scott Melby
Founder, Fast Lane Software LLC
http://www.fastlanesw.com



nasawebguy wrote:


I want to show/hide tabs based on user permissions. Permissions work
fine on combo boxes, etc. But not tabs. What I do on the combos is
simply set myCB.visible = true, if they have permissions to see it.

I tried things like setting the tab canvas to true/false. Didn't do
anything.
I tried myTabCanvas.visible = false/true. Didn't do anything.
I tried myTabNav.getChildAt(1).visible=false/true. Didn't do anything.
I tried myTabNav.removeChildAt(2), etc. Didn't do anything.

I know the permissions-side works because I use it with other
component. I simple use an if/else to set visible= true/false.

I have four tabs. MyTab, MyTeamTab,MySubRegionTab, MyRegionTab. If the
user is team admin, he sees the team tab, etc. If the user is not an
admin at all, they just see one MyTab.

In general, I'm looking for what to fill in something like this..
if (adminTeam == true) {
show teamTab
}
else {
don't show teamTab
}

Any suggestions?

Also, does creationPolicy on the TabNavigator impact how this would
work? If it does, what should it be set to? creationPolicy has bitten
me before.:)

Thanks,
Don

 


[flexcoders] TabNavigator hide/show tabs

2007-11-07 Thread nasawebguy
I want to show/hide tabs based on user permissions. Permissions work
fine on combo boxes, etc. But not tabs. What I do on the combos is
simply set myCB.visible = true, if they have permissions to see it. 

I tried things like setting the tab canvas to true/false. Didn't do
anything.
I tried myTabCanvas.visible = false/true. Didn't do anything.
I tried myTabNav.getChildAt(1).visible=false/true.  Didn't do anything.
I tried myTabNav.removeChildAt(2), etc. Didn't do anything.

I know the permissions-side works because I use it with other
component. I simple use an if/else to set visible= true/false.

I have four tabs. MyTab, MyTeamTab,MySubRegionTab, MyRegionTab. If the
user is team admin, he sees the team tab, etc. If the user is not an
admin at all, they just see one MyTab. 

In general, I'm looking for what to fill in something like this..
if (adminTeam == true) {
show teamTab
} 
else {
don't show teamTab
}

Any suggestions?

Also, does creationPolicy on the TabNavigator impact how this would
work? If it does, what should it be set to? creationPolicy has bitten
me before.:)

Thanks,
Don



Re: [flexcoders] TabNavigator with Local tag ..

2007-10-22 Thread Abdul Qabiz
Hi,

While building RIA using Flex or AJAX, we think in terms of views instead of
pages. We can consider each tab is a different view, each view could be a
separate (or same) component/module...

We can create views either by using inline tags or using components
(actionscript or mxml).

f.ex:

## Example.mxml - A MXML component

http://www.adobe.com/2006/mxml";>



## YourApp.mxml

http://www.adobe.com/2006/mxml"; xmlns:local="*">


   
  




Note the xmlns:local="*", that allows inclusion of mxml components in your
application under some namespace.

-- 
-abdul
---
http://abdulqabiz.com/blog/
---


On 10/23/07, Tom Preet <[EMAIL PROTECTED]> wrote:
>
>   Hi All,
>
> In my app am using the TabNavigator control for displaying Tabs. When I
> click on click on each tab I've to open an mxml page with in a tab.
>
> for this am using like
>
>  x="11"  paddingTop="0">
>  paddingTop="0">
>
>   
> here Example is the mxml page calling using local tag.
>
> Since am using Local tag, am getting a error like "Display Child Object
> Error"
>
> Instead of using local tag is there any other alternative for this to
> achive it.
>
> Thanks,
> Preet.
>
>
>  
>


[flexcoders] TabNavigator with Local tag ..

2007-10-22 Thread Tom Preet
Hi All,

In my app am using the TabNavigator control for displaying Tabs. When I
click on click on each tab I've to open an mxml page with in a tab.

for this am using like



   
  
here Example is the mxml page calling using local tag.

Since am using Local tag, am getting a error like "Display Child Object
Error"

Instead of using local tag is there any other alternative for this to achive
it.

Thanks,
Preet.


RE: [flexcoders] TabNavigator and includeInlayout

2007-10-19 Thread Alex Harui
includeInLayout is a flag on UIComponent and therefore Canvas and just
about everything as to whether its parent container should include it in
its layout algorithm, which is why only HBox, VBox, etc will actuall
examine the flag on its children.

 

Navigators do not examine this flag, and use visibility to hide the
unselected child, so there's no easy way to hide things from the
navigators we ship.  SuperTabNavigator does, I believe, so check it out.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Friday, October 19, 2007 8:00 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] TabNavigator and includeInlayout

 

Where does it say this in the docs?  Does it mean that these the
includeInLayout property is only heeded for children of those types of
containers?  Because that would make more sense.

- Dan Freiman

On 10/19/07, johantrax <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:

I'm having some trouble understanding the 'why' of the restriction on
the includeInLayout-property

As Stated in the livedocs, includeInLayout only applies to:
* Box, or any of its subclasses: HBox, VBox, DividedBox,
HDividedBox, VdividedBox, Grid, GridItem, GridRow, ControlBar, and
ApplicationControlBar,
* Form
* Tile and its subclass, Legend
* ToolBar
But then again, includeInLayout is a property of UIComponent.

Why aren't we allowed to hide a Canvas, ... ?

Or even better, when using a Box inside a TabNavigator (most likely
within any viewStack) this setting just gets ignored.

I do realise I could use addChild and RemoveChild for my tab inside
the navigator. However, consider the following:
A TabNavigator, a buttonbar with a button for each tab. A click on a
button changes includeInLayout and visible properties for the
corresponding tab.
What I expect is, that on clicking a button, the corresponding tab is
'removed' from the navigator. When making the tab visible again, it
shows up at the same position as before.

So why don't use removeChildAt() ?
Say I have 4 tabs, and I removed tab2. Next I want to remove the tab
originally at index3, but now at index2. Removing the third tab, ends
in removing the tab that was originally 4th...

And why don't use addChildAt() ?
State I somehow managed to remove the tabs 2-4 of a navigator of 5
tabs. Now I want to show(re-add) the original 4th tab. This tab should
be set 'in place' again. However when using addChildAt(3), you'll get
an indexOutOfBoundsException, since only tab 1 and 5 are present. What
leaves you a tabnavigator with numChildren of 2...

Any thought on solving this one?
--Johan

 

 



Re: [flexcoders] TabNavigator and includeInlayout

2007-10-19 Thread Daniel Freiman
Where does it say this in the docs?  Does it mean that these the
includeInLayout property is only heeded for children of those types of
containers?  Because that would make more sense.

- Dan Freiman

On 10/19/07, johantrax <[EMAIL PROTECTED]> wrote:
>
>   I'm having some trouble understanding the 'why' of the restriction on
> the includeInLayout-property
>
> As Stated in the livedocs, includeInLayout only applies to:
> * Box, or any of its subclasses: HBox, VBox, DividedBox,
> HDividedBox, VdividedBox, Grid, GridItem, GridRow, ControlBar, and
> ApplicationControlBar,
> * Form
> * Tile and its subclass, Legend
> * ToolBar
> But then again, includeInLayout is a property of UIComponent.
>
> Why aren't we allowed to hide a Canvas, ... ?
>
> Or even better, when using a Box inside a TabNavigator (most likely
> within any viewStack) this setting just gets ignored.
>
> I do realise I could use addChild and RemoveChild for my tab inside
> the navigator. However, consider the following:
> A TabNavigator, a buttonbar with a button for each tab. A click on a
> button changes includeInLayout and visible properties for the
> corresponding tab.
> What I expect is, that on clicking a button, the corresponding tab is
> 'removed' from the navigator. When making the tab visible again, it
> shows up at the same position as before.
>
> So why don't use removeChildAt() ?
> Say I have 4 tabs, and I removed tab2. Next I want to remove the tab
> originally at index3, but now at index2. Removing the third tab, ends
> in removing the tab that was originally 4th...
>
> And why don't use addChildAt() ?
> State I somehow managed to remove the tabs 2-4 of a navigator of 5
> tabs. Now I want to show(re-add) the original 4th tab. This tab should
> be set 'in place' again. However when using addChildAt(3), you'll get
> an indexOutOfBoundsException, since only tab 1 and 5 are present. What
> leaves you a tabnavigator with numChildren of 2...
>
> Any thought on solving this one?
> --Johan
>
>  
>


[flexcoders] TabNavigator and includeInlayout

2007-10-19 Thread johantrax
I'm having some trouble understanding the 'why' of the restriction on
the includeInLayout-property

As Stated in the livedocs, includeInLayout only applies to:
* Box, or any of its subclasses: HBox, VBox, DividedBox,
HDividedBox, VdividedBox, Grid, GridItem, GridRow, ControlBar, and
ApplicationControlBar,
* Form
* Tile and its subclass, Legend
* ToolBar
But then again, includeInLayout is a property of UIComponent.

Why aren't we allowed to hide a Canvas, ... ?

Or even better, when using a Box inside a TabNavigator (most likely
within any viewStack) this setting just gets ignored.

I do realise I could use addChild and RemoveChild for my tab inside
the navigator. However, consider the following:
A TabNavigator, a buttonbar with a button for each tab. A click on a
button changes includeInLayout and visible properties for the
corresponding tab.
What I expect is, that on clicking a button, the corresponding tab is
'removed' from the navigator. When making the tab visible again, it
shows up at the same position as before.

So why don't use removeChildAt() ?
Say I have 4 tabs, and I removed tab2. Next I want to remove the tab
originally at index3, but now at index2. Removing the third tab, ends
in removing the tab that was originally 4th...

And why don't use addChildAt() ?
State I somehow managed to remove the tabs 2-4 of a navigator of 5
tabs. Now I want to show(re-add) the original 4th tab. This tab should
be set 'in place' again. However when using addChildAt(3), you'll get
an indexOutOfBoundsException, since only tab 1 and 5 are present. What
leaves you a tabnavigator with numChildren of 2...

Any thought on solving this one?
--Johan



Re: [flexcoders] tabNavigator - dynamic tabs?

2007-09-24 Thread Scott - FastLane
Have you looked at SuperTabNavigator in FlexLib 
?


hth
Scott

byte.sensei wrote:


I have a tabNavigator with 3 mx:Canvas tabs, each containing a dataGrid
for a different user/customer. Above the tabNavigator you can select
up to 3 different users/customers, and this populates the associated
grid in the tabNavigator. Pretty straightforward -- *except* that I
don't want the tabs in the tabNavigator to be visible until you've
selected a user/customer above.

I tried setting the visible property of my mx:Canvas containers, but
the tab still shows up regardless of whether the child is visible or
not.

Is there a way to prevent tabs in the tabNavigator from showing up? I
could always dynamically add/remove the child mx:Canvas objects via
actionscript, but in this case it's always 0-3 and I'd rather just
create 3 mx:Canvas objects in MXML and then show/hide them as needed.

I'm just baffled that visible="false" on the mx:Canvas child objects
doesn't take away the tab in the tabNavigator! Is this by design?

 




[flexcoders] tabNavigator - dynamic tabs?

2007-09-24 Thread byte.sensei
I have a tabNavigator with 3 mx:Canvas tabs, each containing a dataGrid 
for a different user/customer.  Above the tabNavigator you can select 
up to 3 different users/customers, and this populates the associated 
grid in the tabNavigator.  Pretty straightforward -- *except* that I 
don't want the tabs in the tabNavigator to be visible until you've 
selected a user/customer above.  

I tried setting the visible property of my mx:Canvas containers, but 
the tab still shows up regardless of whether the child is visible or 
not.

Is there a way to prevent tabs in the tabNavigator from showing up? I 
could always dynamically add/remove the child mx:Canvas objects via 
actionscript, but in this case it's always 0-3 and I'd rather just 
create 3 mx:Canvas objects in MXML and then show/hide them as needed.

I'm just baffled that visible="false" on the mx:Canvas child objects 
doesn't take away the tab in the tabNavigator! Is this by design?  





Re: [flexcoders] TabNavigator/ToggleButtonBar Style conflict

2007-05-31 Thread Derek Vadneau

Thank you for the workaround, it will work great for my project.

Now, I can maybe understand that it's perhaps not a bug but it definitely is
a shortcoming of the style system and docs.

There is no mention of Tab in the docs. I had to go look for the class in
the SDK just to know how you got that.

Also, other than searching through the component code, the only method given
for setting the styles on the components is what I gave. In fact I got that
from the Adobe style explorer app.

And if I had a TabBar component in my project (I don't but bare with me) it
would take on the style I set with Tab, which I would expect, but not
necessarily want.

When I explicitly set a style for a component I expect that it takes on that
style. I understand what you mean by TypeSelectors and inheritance, but that
just means the style system (or code implementing it) might be flawed. When
I set a style for ToggleButtonBar, I would expect ALL instances of
ToggleButtonBar to take on that style. However, in the case of the
TabNavigator (and any other component that contains other components) when
there is a way to explicitly affect a child instance within, that should be
honoured.

Going back to my code, I would expect that the text in each TabNavigator tab
might be red (because of the ToggleButtonBar styles), but they aren't. Only
the first and last are. And I would expect that the cornerRadius set by the
TabNavigator style be honoured. If I set the cornerRadius as you mention in
mytoggleButtonBarFirstButtonStyle, I would expect the TabNavigator style to
override that style. Why? Because that style was explicitly set for the
TabNavigator's children.

A simplified example, but just to show where my head is at: Take an HTML
page with CSS. If I have a list item of an unordered list and specify a
style for li to be color:#FF and font-weight:bold, the text would be red
and bold. If I set a particular list item to use a class style where the
color is #FF, that one list item would be blue and bold. That would be
my expectation anyhow.

Hopefully you get my meaning.

Thanks for you time!



On 5/31/07, Michael Schmalle <[EMAIL PROTECTED]> wrote:


  Hi,

The reason it doesn't work is because TypeSelectors order in inheritance.

Tab {
cornerRadius: 20;
}

Solves your Problem. This is not a bug.

Since you are setting a firstButtonStyleName on an actual selector,
TabNavigator will not pick it up since it is undefined to begin with and now
defined on the super class TypeSelector of TabBar.

If you set

.mytoggleButtonBarFirstButtonStyle {color: #FF;cornerRadius: 0;}

You will see that changes the radius of the first tab button.

Peace, Mike


On 5/31/07, Derek Vadneau <[EMAIL PROTECTED]> wrote:
>
>   Code follows...
>
> Setting styles for ToggleButtonBar overrides styles set for buttons of
> TabNavigator.
>
> The TabNavigator uses the ToggleButtonBar (actually, TabBar, which
> extends ToggleButtonBar) for the "tabs".
>
> What happens is if I set styles for the TabNavigator tabs, they are
> ignored if I also set styles for the ToggleButtonBar.
>
> Here is the code:
>
> 
> http://www.adobe.com/2006/mxml"; xmlns="*"
> layout="absolute">
> 
> TabNavigator {
> cornerRadius: 0;
> tabStyleName: "myTabButtonStyle";
> firstTabStyleName: "myTabFirstButtonStyle";
> lastTabStyleName: "myTabLastButtonStyle";
> selectedTabTextStyleName: "myTabSelectedButtonStyle";
> }
> .myTabButtonStyle {cornerRadius: 20;}
> .myTabFirstButtonStyle {cornerRadius: 20;}
> .myTabLastButtonStyle {cornerRadius: 20;}
> .myTabSelectedButtonStyle {cornerRadius: 20;}
>
> ToggleButtonBar {
> buttonStyleName: "mytoggleButtonBarButtonStyle";
> firstButtonStyleName: "mytoggleButtonBarFirstButtonStyle";
> lastButtonStyleName: "mytoggleButtonBarLastButtonStyle";
> selectedButtonTextStyleName: "mytoggleButtonBarSelectedButtonStyle";
> }
> .mytoggleButtonBarButtonStyle {color: #FF;}
> .mytoggleButtonBarFirstButtonStyle {color: #FF;}
> .mytoggleButtonBarLastButtonStyle {color: #FF;}
> .mytoggleButtonBarSelectedButtonStyle {color: #FF;}
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>
> All I'm trying to do is set the cornerRadius of the tabs to be some
> value - I've exagerrated the value here and left out style properties
> for the ToggleButtonBar buttons just so it's obvious what's going on.
>
> The outside TabNavigator only has one tab and that takes on the style
> of the TabNavigator selectedTab style. The inner TabNavigator shows
> that the first and last buttons take on the ToggleButtonBar styles but
> the middle button takes on the TabNavigator style.
>
> If you comment out the ToggleButtonBar styles the TabNavigator styles
> are applied properly.
>
> As a workaround I can specify the styleName of the ToggleButtonBar I'm
> using so that the style is specific to that instance rather than
> global to all components.
>
> I would classify this as a bug, unless someone can convince me why
> this is expected behaviour.
>
> --
>
> Derek Vadneau
>



-

Re: [flexcoders] TabNavigator/ToggleButtonBar Style conflict

2007-05-31 Thread Michael Schmalle

Hi,

The reason it doesn't work is because TypeSelectors order in inheritance.

Tab {
   cornerRadius: 20;
}

Solves your Problem. This is not a bug.

Since you are setting a firstButtonStyleName on an actual selector,
TabNavigator will not pick it up since it is undefined to begin with and now
defined on the super class TypeSelector of TabBar.

If you set

.mytoggleButtonBarFirstButtonStyle {color: #FF;cornerRadius: 0;}

You will see that changes the radius of the first tab button.

Peace, Mike

On 5/31/07, Derek Vadneau <[EMAIL PROTECTED]> wrote:


  Code follows...

Setting styles for ToggleButtonBar overrides styles set for buttons of
TabNavigator.

The TabNavigator uses the ToggleButtonBar (actually, TabBar, which
extends ToggleButtonBar) for the "tabs".

What happens is if I set styles for the TabNavigator tabs, they are
ignored if I also set styles for the ToggleButtonBar.

Here is the code:


http://www.adobe.com/2006/mxml"; xmlns="*"
layout="absolute">

TabNavigator {
cornerRadius: 0;
tabStyleName: "myTabButtonStyle";
firstTabStyleName: "myTabFirstButtonStyle";
lastTabStyleName: "myTabLastButtonStyle";
selectedTabTextStyleName: "myTabSelectedButtonStyle";
}
.myTabButtonStyle {cornerRadius: 20;}
.myTabFirstButtonStyle {cornerRadius: 20;}
.myTabLastButtonStyle {cornerRadius: 20;}
.myTabSelectedButtonStyle {cornerRadius: 20;}

ToggleButtonBar {
buttonStyleName: "mytoggleButtonBarButtonStyle";
firstButtonStyleName: "mytoggleButtonBarFirstButtonStyle";
lastButtonStyleName: "mytoggleButtonBarLastButtonStyle";
selectedButtonTextStyleName: "mytoggleButtonBarSelectedButtonStyle";
}
.mytoggleButtonBarButtonStyle {color: #FF;}
.mytoggleButtonBarFirstButtonStyle {color: #FF;}
.mytoggleButtonBarLastButtonStyle {color: #FF;}
.mytoggleButtonBarSelectedButtonStyle {color: #FF;}

















All I'm trying to do is set the cornerRadius of the tabs to be some
value - I've exagerrated the value here and left out style properties
for the ToggleButtonBar buttons just so it's obvious what's going on.

The outside TabNavigator only has one tab and that takes on the style
of the TabNavigator selectedTab style. The inner TabNavigator shows
that the first and last buttons take on the ToggleButtonBar styles but
the middle button takes on the TabNavigator style.

If you comment out the ToggleButtonBar styles the TabNavigator styles
are applied properly.

As a workaround I can specify the styleName of the ToggleButtonBar I'm
using so that the style is specific to that instance rather than
global to all components.

I would classify this as a bug, unless someone can convince me why
this is expected behaviour.

--

Derek Vadneau
 





--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.


[flexcoders] TabNavigator/ToggleButtonBar Style conflict

2007-05-31 Thread Derek Vadneau
Code follows...

Setting styles for ToggleButtonBar overrides styles set for buttons of
TabNavigator.

The TabNavigator uses the ToggleButtonBar (actually, TabBar, which
extends ToggleButtonBar) for the "tabs".

What happens is if I set styles for the TabNavigator tabs, they are
ignored if I also set styles for the ToggleButtonBar.

Here is the code:


http://www.adobe.com/2006/mxml"; xmlns="*"
layout="absolute">

TabNavigator {
   cornerRadius: 0;
   tabStyleName: "myTabButtonStyle";
   firstTabStyleName: "myTabFirstButtonStyle";
   lastTabStyleName: "myTabLastButtonStyle";
   selectedTabTextStyleName: "myTabSelectedButtonStyle";
}
.myTabButtonStyle {cornerRadius: 20;}
.myTabFirstButtonStyle {cornerRadius: 20;}
.myTabLastButtonStyle {cornerRadius: 20;}
.myTabSelectedButtonStyle {cornerRadius: 20;}

ToggleButtonBar {
   buttonStyleName: "mytoggleButtonBarButtonStyle";
   firstButtonStyleName: "mytoggleButtonBarFirstButtonStyle";
   lastButtonStyleName: "mytoggleButtonBarLastButtonStyle";
   selectedButtonTextStyleName: "mytoggleButtonBarSelectedButtonStyle";
}
.mytoggleButtonBarButtonStyle {color: #FF;}
.mytoggleButtonBarFirstButtonStyle {color: #FF;}
.mytoggleButtonBarLastButtonStyle {color: #FF;}
.mytoggleButtonBarSelectedButtonStyle {color: #FF;}

















All I'm trying to do is set the cornerRadius of the tabs to be some
value - I've exagerrated the value here and left out style properties
for the ToggleButtonBar buttons just so it's obvious what's going on.

The outside TabNavigator only has one tab and that takes on the style
of the TabNavigator selectedTab style. The inner TabNavigator shows
that the first and last buttons take on the ToggleButtonBar styles but
the middle button takes on the TabNavigator style.

If you comment out the ToggleButtonBar styles the TabNavigator styles
are applied properly.

As a workaround I can specify the styleName of the ToggleButtonBar I'm
using so that the style is specific to that instance rather than
global to all components.

I would classify this as a bug, unless someone can convince me why
this is expected behaviour.

-- 

Derek Vadneau


RE: [flexcoders] TabNavigator selectedIndex property

2007-05-31 Thread Alex Harui
Might be timing.  Try setting selectedIndex either before or after
adding children or maybe later via callLater

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of james.tundra
Sent: Wednesday, May 30, 2007 5:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TabNavigator selectedIndex property

 

Hey all,

I've run into a problem when trying to set the selectedIndex property
on a TabNavigator. The TabNavigator is set in mxml, however I am
adding and removing children with AS3 at runtime depending on what
node the user clicks in a Tree control (hope that makes sense). The
children are doing what they are supposed to (i.e. attaching and
removing, and getting initialised with whatever data I pass to them).
But when the selectedIndex is, say, 3 and then the user clicks a tree
node forcing the TabNavigator to remove and reload children, I am
trying to reset the selectedIndex property back to 0 (to show the
first tab) - this part works, that tabnavigator shows the right tab,
but the tab button that appears selected is still the old property (3
in this scenario). 

So is this a display problem or the way that I am adding/removing
children? I have tried invalidateDisplayList() and callLater, but
nothing seems to help. Hope someone has some insight...

Cheers.

 



[flexcoders] TabNavigator selectedIndex property

2007-05-31 Thread james.tundra
Hey all,

I've run into a problem when trying to set the selectedIndex property
on a TabNavigator. The TabNavigator is set in mxml, however I am
adding and removing children with AS3 at runtime depending on what
node the user clicks in a Tree control (hope that makes sense).  The
children are doing what they are supposed to (i.e. attaching and
removing, and getting initialised with whatever data I pass to them).
 But when the selectedIndex is, say, 3 and then the user clicks a tree
node forcing the TabNavigator to remove and reload children, I am
trying to reset the selectedIndex property back to 0 (to show the
first tab) - this part works, that tabnavigator shows the right tab,
but the tab button that appears selected is still the old property (3
in this scenario). 

So is this a display problem or the way that I am adding/removing
children?  I have tried invalidateDisplayList() and callLater, but
nothing seems to help.  Hope someone has some insight...

Cheers.



[flexcoders] TabNavigator and Text

2007-04-23 Thread Matt
I'm dynamically creating content with ActionScript and I create a
TabNavigator (set creationPolicy to 'all') and then add Boxes with
Text HTML content in each. My problem is that the first time I go to
each tab it takes a minute for the content to render but after that it
works fine. Is there any way I can tell it to pre-render so it looks
correct the first time it's selected?



RE: [flexcoders] TabNavigator focus issues

2007-04-12 Thread Alex Harui
Tabs that haven't been looked at don't have their children created yet
for performance reasons.  I think many folks use a pull-down strategy.
You keep a central notion of what the current item is and each view
widget binds to it.  



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of freefallsv
Sent: Thursday, April 12, 2007 7:41 AM
To: [EMAIL PROTECTED]
Subject: [flexcoders] TabNavigator focus issues



I'm having the following issue. I have a layout of data seperated into 
4 tabs. The first three hold different sections of data for the same 
product. All product data is recieved from the CFC and stored as an 
ArrayCollection. The fourth tab contains a TileList that is populated 
from that ArrayCollection. When an item is selected on tab 4, I want 
it to update the fields on the other 3 tabs.

When I had everything on one tab, this was working fine. After 
seperating it into 3 tabs, I started getting errors. I started 
removing set statements from the function and was able to discover that 
if I only tried to set the text value of fields in first tab in the 
stack, it worked fine. If I changed the order of the stack and tried 
to update those fields instead, they would update fine. 

So what am I missing? how do I get it to update the fields in tabs 
other than the top one in the stack?

Thanks.



 


[flexcoders] TabNavigator focus issues

2007-04-12 Thread freefallsv
I'm having the following issue.  I have a layout of data seperated into 
4 tabs.  The first three hold different sections of data for the same 
product.  All product data is recieved from the CFC and stored as an 
ArrayCollection.  The fourth tab contains a TileList that is populated 
from that ArrayCollection.  When an item is selected on tab 4, I want 
it to update the fields on the other 3 tabs.

When I had everything on one tab, this was working fine.  After 
seperating it into 3 tabs, I started getting errors.  I started 
removing set statements from the function and was able to discover that 
if I only tried to set the text value of fields in first tab in the 
stack, it worked fine.  If I changed the order of the stack and tried 
to update those fields instead, they would update fine.  

So what am I missing?  how do I get it to update the fields in tabs 
other than the top one in the stack?

Thanks.



[flexcoders] TabNavigator & Filtering with Comparator class

2007-03-20 Thread ajudah987
I am using a tabnavigator with a Canvas and then a TileList in it.
I have a horizontal slider similiar to the Flex store to filter 
products based upon price. 

My challenge is that when i adjust the slider the Comparator class 
adjusts the alpha of just the items visible in the tilelist. It does 
not filter the items when u scroll down the list.

As well it filters all visible items except the first item.

Does anyone have any ideas on how to address this?

Thanks in advance

Ammo987




[flexcoders] TabNavigator - reset to the first tab

2007-03-04 Thread maticpel
Hi,
how can I set the tabIndex to 0, if the dataProvider changes ?

Example: http://www.ubuntuusers.de/paste/8035/

If you click on the second tab and then button "5 Seiten" you see the
content of the first tab but the second tab is always selected. 

Thanks,
Flayoo 



[flexcoders] TabNavigator - reset to the first tab

2007-03-04 Thread Flayoo

Hi,
how can I set the tabIndex to 0, if the dataProvider changes ?








I tried:

public function init ():void
{
tab.selectedIndex = 0
Log.Debug("Index "+ tab.selectedIndex);
}

But this doesn´t work because "tab.selectedIndex" is always "0"

Thanks,
Flayoo





[flexcoders] TabNavigator Tab BackgroundImage

2007-01-31 Thread cgiamett2
I have been doing a lot of looking around and cannot come across how to 
add a BackgroundImage to tabs in a TabNavigator.

I have seen buttons added, etc. Is there a simple way to just add an 
image to tabs?



Re: [flexcoders] TabNavigator and SWFLoaders problem

2006-12-14 Thread Angus Johnson

Hi Nick,

I don't if this will help you but one thing that I found with loaded swf's
is that if you explicitly set height and width on the loader and then
attempt to apply percentWidth or percentHeight it will fail to render.

If i set height=100, width=100 then percentWidth=50 and percentHeight=50 I
end up with height=0 and width=100... if you follow that :). Something a bit
odd there I think but I don't fully understand how things are sized.

So maybe your tabNavigator is applying percent measurements to a loader
where you have explicit width / height???

You should be able to see these properties in debug.

hth
Angus



On 15/12/06, durnelln <[EMAIL PROTECTED]> wrote:


  Hi all,

I've been lurking on this list for a few weeks but I've now run into
a problem and need some help myself...

My application's main screen consists of a number of windows, each of
which is a Flex application in its own right. The layout of the main
screen is configurable from an external file which I parse at runtime
and create the corresponding controls/sub-applications using
Actionscript. Each sub-applications is loaded in a SWFLoaders which
has been sized appropriately and added to the configured container.
Once the screen is built I then tell all the SWFLoaders to load their
content.

This has all been working fine until now. What I want to do is have
a TabNavigator on the main screen with several tabs - each tab
containing a sub-application so that the user can flip between them.
What I am doing is creating a SWFLoader on each tab (within a canvas)
and setting their widths and heights to 100% (to fill the tab
whatever its size may be).

The sub-application on the first tab (i.e. the one visible at
startup) is fine - it fills the tab as planned. However, the sub-
applications on the subsequent tabs do not appear - UNLESS their
widths and heights are set explicitly (e.g. width="200"
height="100"). However this breaks my ability to change the size of
the tabs and still have the contents fill them. Nothing changes if I
set the TabNavigator or canvas creationPolicy to "all" either.

Any ideas anyone? Is this a bug?

I cannot post my entire application as it is getting pretty huge :-)
However I have created an example application which shows a similar
problem:


http://www.adobe.com/2006/mxml";
layout="absolute" applicationComplete="doStuff()">


















This application creates a TabNavigator with 3 tabs - all of which
contain a SWFLoader which loads BlueBox.swf. BlueBox.swf is simply
an empty application with a blue border and background so I can see
how large it is once loaded (see below).

Tabs 1 and 3 are identical - i.e. they both contain a SWFLoader sized
to 100%. However the one on tab 3 does not get sized/loaded
properly. The SWFLoader on tab 2 is very similar but its SWFLoader
uses explicit widths and heights (which seem to work).

Here is my BlueBox.swf:


http://www.adobe.com/2006/mxml";
layout="absolute" backgroundGradientColors="[#ff, #ff]"
borderColor="#ff" borderStyle="solid" borderThickness="2">


Thanks for your help (if you've managed to stay awake through all
that!)

Nick.

 



[flexcoders] TabNavigator and SWFLoaders problem

2006-12-14 Thread durnelln
Hi all,

I've been lurking on this list for a few weeks but I've now run into 
a problem and need some help myself...

My application's main screen consists of a number of windows, each of 
which is a Flex application in its own right.  The layout of the main 
screen is configurable from an external file which I parse at runtime 
and create the corresponding controls/sub-applications using 
Actionscript.  Each sub-applications is loaded in a SWFLoaders which 
has been sized appropriately and added to the configured container.  
Once the screen is built I then tell all the SWFLoaders to load their 
content.

This has all been working fine until now.  What I want to do is have 
a TabNavigator on the main screen with several tabs - each tab 
containing a sub-application so that the user can flip between them.  
What I am doing is creating a SWFLoader on each tab (within a canvas) 
and setting their widths and heights to 100% (to fill the tab 
whatever its size may be).

The sub-application on the first tab (i.e. the one visible at 
startup) is fine - it fills the tab as planned.  However, the sub-
applications on the subsequent tabs do not appear - UNLESS their 
widths and heights are set explicitly (e.g. width="200" 
height="100").  However this breaks my ability to change the size of 
the tabs and still have the contents fill them.  Nothing changes if I 
set the TabNavigator or canvas creationPolicy to "all" either.

Any ideas anyone?  Is this a bug?

I cannot post my entire application as it is getting pretty huge :-)  
However I have created an example application which shows a similar 
problem:


http://www.adobe.com/2006/mxml"; 
layout="absolute" applicationComplete="doStuff()">


















This application creates a TabNavigator with 3 tabs - all of which 
contain a SWFLoader which loads BlueBox.swf.  BlueBox.swf is simply 
an empty application with a blue border and background so I can see 
how large it is once loaded (see below).

Tabs 1 and 3 are identical - i.e. they both contain a SWFLoader sized 
to 100%.  However the one on tab 3 does not get sized/loaded 
properly.  The SWFLoader on tab 2 is very similar but its SWFLoader 
uses explicit widths and heights (which seem to work).

Here is my BlueBox.swf:


http://www.adobe.com/2006/mxml"; 
layout="absolute" backgroundGradientColors="[#ff, #ff]" 
borderColor="#ff" borderStyle="solid" borderThickness="2">


Thanks for your help (if you've managed to stay awake through all 
that!)

Nick.




Re: [flexcoders] tabnavigator transitions

2006-12-03 Thread Yiðit Boyar
what i meant was choosing the effect to be played @ runtime, according to user 
commands.
in other words; i want to control played transitions... assume tab2 is opened; 
when the user clicks tab3, 
diffrent (predifined) transition effects will be played. but when the user 
cliks tab4 from tab2, standart transition effect will be played.

so to conclude; i need a function; that is triggered in tabchange and it will 
decide which container will use which transition effect..

so 2 problems: 
-a trigger event (i already have, which i use to call inner containers 
functions)
-dynamically setting the transition effect of a container.. (this also seems 
available but i could not tried yet)

- Original Message 
From: Dustin Mercer <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Sunday, December 3, 2006 9:46:00 AM
Subject: RE: [flexcoders] tabnavigator transitions









  



Choose the Transition effect?  Do you mean use a different effect 
than the fade, or change the effect at runtime?  If you want something other 
than fade, you can use any of the available effect, Zoom, Rotate, Move, ect...  
If you are wondering if you can change it during runtime, I believe it's 
possible, although I haven't done it.  It shouldn't be much more than setting 
the showEffect or hideEffect during runtime.  Sorry if I misunderstood your 
question, but hopefully that is what you were looking for.



 _ _ __



From: [EMAIL PROTECTED] ups.com on behalf of Yiðit Boyar

Sent: Sat 12/2/2006 2:34 PM

To: [EMAIL PROTECTED] ups.com

Subject: Re: [flexcoders] tabnavigator transitions



hmm, now i got the logic. (but did not try)

i did not used to know that i could add these effects to child containers,

thanks a lot...

in addition, is there a way to choose the transition effect?



- Original Message 

From: Dustin Mercer 

To: [EMAIL PROTECTED] ups.com

Sent: Saturday, December 2, 2006 11:55:35 PM

Subject: RE: [flexcoders] tabnavigator transitions



Yigit,



You can try to use the hide and show effects on the child containers of the 
TabNavigator. The TabNavigator will play these effects when it changes. Here is 
some small pseudo code... You can use any of the Flex events in place of the 
fade affect. Note this was coded in Outlook, so not sure if it compiles, just 
wanted to throw something together for you.























 _ _ __



From: [EMAIL PROTECTED] ups.com <mailto:flexcoders% 40yahoogroups. com>  on 
behalf of Yiðit Boyar

Sent: Sat 12/2/2006 11:06 AM

To: [EMAIL PROTECTED] ups.com <mailto:flexcoders% 40yahoogroups. com> 

Subject: [flexcoders] tabnavigator transitions



after being a coder for years, i've always been away from design... but now i 
need to do some transition efect to my tabnavigator; but i could not find any 
example; can anyone please help me? (i need an example transition code that 
works on tabnavigator)

i need:

1: basic transition effect between tab changes for the tabnavigator

2: some special effect that i trigger between specific changes. (is this 
possible; i mean while passing from tab0 to tab4 , i want to play a special 
effect)



thanks for your helps..



Yigit Boyar



 _ _ __



Everyone is raving about the all-new Yahoo! Mail beta. <http://us.rd. 
yahoo.com/ evt=42297/ *http://advision .webevents. yahoo.com/ mailbeta 
<http://us.rd. yahoo.com/ evt=42297/ *http://advision .webevents. yahoo.com/ 
mailbeta> > 



 _ _ _ _ __

Do You Yahoo!?

Tired of spam? Yahoo! Mail has the best spam protection around 

http://mail. yahoo.com 






  
















 

Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

RE: [flexcoders] tabnavigator transitions

2006-12-02 Thread Dustin Mercer
Choose the Transition effect?  Do you mean use a different effect than the 
fade, or change the effect at runtime?  If you want something other than fade, 
you can use any of the available effect, Zoom, Rotate, Move, ect...  If you are 
wondering if you can change it during runtime, I believe it's possible, 
although I haven't done it.  It shouldn't be much more than setting the 
showEffect or hideEffect during runtime.  Sorry if I misunderstood your 
question, but hopefully that is what you were looking for.



From: flexcoders@yahoogroups.com on behalf of Yiðit Boyar
Sent: Sat 12/2/2006 2:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] tabnavigator transitions



hmm, now i got the logic. (but did not try)
i did not used to know that i could add these effects to child containers,
thanks a lot...
in addition, is there a way to choose the transition effect?

- Original Message 
From: Dustin Mercer <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, December 2, 2006 11:55:35 PM
Subject: RE: [flexcoders] tabnavigator transitions



Yigit,

You can try to use the hide and show effects on the child containers of the 
TabNavigator. The TabNavigator will play these effects when it changes. Here is 
some small pseudo code... You can use any of the Flex events in place of the 
fade affect. Note this was coded in Outlook, so not sure if it compiles, just 
wanted to throw something together for you.











 _ _ __

From: [EMAIL PROTECTED] ups.com <mailto:flexcoders%40yahoogroups.com>  on 
behalf of Yiðit Boyar
Sent: Sat 12/2/2006 11:06 AM
To: [EMAIL PROTECTED] ups.com <mailto:flexcoders%40yahoogroups.com> 
Subject: [flexcoders] tabnavigator transitions

after being a coder for years, i've always been away from design... but now i 
need to do some transition efect to my tabnavigator; but i could not find any 
example; can anyone please help me? (i need an example transition code that 
works on tabnavigator)
i need:
1: basic transition effect between tab changes for the tabnavigator
2: some special effect that i trigger between specific changes. (is this 
possible; i mean while passing from tab0 to tab4 , i want to play a special 
effect)

thanks for your helps..

Yigit Boyar

 _ _ __

Everyone is raving about the all-new Yahoo! Mail beta. <http://us.rd. 
yahoo.com/ evt=42297/ *http://advision .webevents. yahoo.com/ mailbeta 
<http://us.rd.yahoo.com/evt=42297/*http://advision.webevents.yahoo.com/mailbeta>
 > 





__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 
<>

  1   2   >