Adobe Dreamweaver Forums



Last 10 THreads :         Re: sRGB vs. Adobe (1998) RGB (Last Post : Ramón_G_Castañeda@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: sRGB vs. Adobe (1998) RGB (Last Post : Ramón_G_Castañeda@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: Optimal Scratch Disk (Last Post : Lundberg02@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: ColorSync Sucks (Last Post : Lundberg02@adobeforums.com - Replies : 0 - Views : 1 )           »          help me with adjustments layers in CS4 (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 2 - Views : 3 )           »          "Save As" crashes PS (Last Post : Rothrock@adobeforums.com - Replies : 2 - Views : 3 )           »          Flash Slide presentation and movieclip looping (Last Post : pivovar - Replies : 0 - Views : 1 )           »          Array of Queries (Last Post : Fetch - Replies : 5 - Views : 6 )           »          Re: 2.1 GB TIF size limit (Last Post : Buko - Replies : 0 - Views : 1 )           »          Re: Colour differences on the web (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 0 - Views : 1 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-04-2008, 09:02 AM
ForestDemon
 
Posts: n/a
Diggs:
Default How can I use a ButtonBar for a TabNavigator?

Don't ask me why they want <Previous><Next> navigation for a Tabbed view, but
it is what it is.

I need a <Previous><Next> ButtonBar on each of the inner tabs (and obviously
a <Next> and <Previous> ButtonBar for the first and last tabs respectively)
that navigate to the next or previous tab.

I'm assuming a ViewStack component, but lack in the knowledge to configure
such a component with reference to the ButtonBar, etc.

Any help is much appreciated.

Thanks folks...

-fd



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-04-2008, 09:02 AM
ericbelair
 
Posts: n/a
Diggs:
Default Re: How can I use a ButtonBar for a TabNavigator?

You should just create a component with two buttons, each of which dispatches a
custom event when clicked, and and include this component in each view. Then
add listeners for the events in the parent component of the TabNavigator,
updating the selectedIndex of the TabNavigator based on the button clicked.

Reply With Quote
  #3 (permalink)  
Old 11-04-2008, 09:02 AM
Greg Lafrance
 
Posts: n/a
Diggs:
Default Re: How can I use a ButtonBar for a TabNavigator?

And for the first and last views, you can set the visible and includeInLayout
properties of the Next and Previous buttons to false as appropriate. In this
case you would not have a ButtonBar, but instead two buttons. You could
probably have a ButtonBar, and change the dataProvider to not contain the Next
or Previous, but that could be messier.

Reply With Quote


  #4 (permalink)  
Old 11-04-2008, 09:02 AM
ForestDemon
 
Posts: n/a
Diggs:
Default Re: How can I use a ButtonBar for a TabNavigator?

Perfect!!!

That was the kind of input I needed to point me in the direction I need to go.

Thanks a ton guys...

-fd

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 11:41 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk