Tracey,
Thank you for your response. I will look to implement the solution you described. Sincerely, Andy _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, September 23, 2008 3:54 PM To: [email protected] Subject: RE: [flexcoders] Issue with TabBar Label Control I do not see anything wrong with your code. Maybe strip out everything but the empty canvases and see if that changes the behavior. But I feel obliged to advise against proceeding down this path. Using the ViewStack as a dataProvider seems to be a handy shourtcut, but if you ever want to do anyting a bit more complex, like hiding or disabling a view, this approach will cause you trouble. You will find yourself buried in addChild/removeChild code, just to control your UI. Instead, create a separate dataProvider to drive the tab bar, and manipulate that directly to control tab bar UI and thus access to the viewstack. I suspect that will also fix your current problem, whatever it is. Tracy _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of ajpapada Sent: Tuesday, September 23, 2008 2:42 PM To: [email protected] Subject: [flexcoders] Issue with TabBar Label Control Hello Everyone, I've come across a strange issue involving the TabBar control. My TabBar controls the active child container of a ViewStack container and receives the value of lableField from the child container. When looking at the panel in design mode in FlexBuilder, the labels on the tabbar show up just fine, however, once it is compiled, the labels do not show. I've been trying different things to determine the reason but have come up short. Below is the posted code. If anyone sees anything that I am doing incorrectly, can you please point me in the right direction? Thanks, Andy <mx:TabBar id="tb_catalogStack" dataProvider="catalogStack" iconField="" labelField="@label" height="25" itemClick="tb_catalogStackChange(event)" fontFamily="Arial" right="481" width="269" y="39" enabled="true"> </mx:TabBar> <mx:ViewStack id="catalogStack" width="740" height="100%" y="63" x="10"> <mx:Canvas label="Models" id="tab_models" width="740" height="100%"> <mx:TextInput x="70" y="5" width="120" id="txti_modelSearch" enter="searchParts()" maxChars="15"/> <mx:Button x="195" y="5" label="Search" width="80" id="btn_search" click="searchParts()"/> <mx:Button x="280" y="5" label="Print Parts" click="printThis_model()" width="80" id="btn_print1"/> <mx:Label x="10" y="8" text="Model No" id="lb_modelNo"/> <mx:VBox x="10" y="30" height="100%" verticalGap="0"> <mx:Canvas label="ModelsGrid" width="720" height="100%"> <mx:DataGrid x="0" y="0" width="100%" height="100%" dataProvider="{catalogArray}" rowHeight="16" headerHeight="16" textIndent="-4" paddingBottom="-1" paddingLeft="-1" paddingRight="-1" paddingTop="-1" allowMultipleSelection="true" id="dg_model" draggableColumns="false" click="modelChangeHandle(event)"> <mx:columns> <mx:DataGridColumn headerText="Model No" dataField="MODELNO" width="150"/> <mx:DataGridColumn headerText="Description" dataField="DESC"/> <mx:DataGridColumn dataField="BOMNO" visible="false"/> </mx:columns> </mx:DataGrid> </mx:Canvas> <mx:Label id="lb_rowCount" text="0 Results Found" width="100%" paddingLeft="-2" paddingTop="2"/> </mx:VBox> </mx:Canvas> <mx:Canvas label="Functional" id="tab_functional" width="770" height="95%"> <mx:Button x="10" y="5" label="Print Parts" height="21" fontWeight="normal" click="printThis_functional()" width="80" id="btn_print2"/> <mx:VBox x="10" y="30" height="100%" verticalGap="0"> <mx:Canvas label="FunctionalGrid" width="720" height="100%"> <mx:DataGrid x="0" y="0" width="100%" height="100%" dataProvider="{functionalArray}" rowHeight="16" headerHeight="16" textIndent="-4" paddingBottom="-1" paddingLeft="-1" paddingRight="-1" paddingTop="-1" allowMultipleSelection="true" id="dg_modelFunctional" draggableColumns="false" click="functionalChangeHandle(event)"> <mx:columns> <mx:DataGridColumn headerText="Key" textAlign="center" dataField="KEYNO" width="40"/> <mx:DataGridColumn headerText="Qty" textAlign="center" dataField="QTY" width="30"/> <mx:DataGridColumn headerText="Part No" textAlign="left" id="funcPartNO" dataField="PARTNO" width="105" rendererIsEditor="true" itemRenderer="pages.components.PartLink"/> <mx:DataGridColumn headerText="Description" dataField="PARTDS"/> <mx:DataGridColumn headerText="List Price" textAlign="right" dataField="PARTLP" width="70"/> <mx:DataGridColumn headerText="Sub Part No" textAlign="left" dataField="PARTAI" width="105"/> <mx:DataGridColumn headerText="Std Pk" textAlign="center" dataField="PARTPK" width="45"/> <mx:DataGridColumn headerText="Appl Note" textAlign="center" dataField="MEMO" width="56" itemRenderer="pages.components.ApplNotesButton"/> <mx:DataGridColumn headerText="Part Note" textAlign="center" dataField="PARTNT" width="54" itemRenderer="pages.components.NotesButton"/> </mx:columns> </mx:DataGrid> </mx:Canvas> <mx:Label id="lb_rowCount2" text="0 Results Found" width="100%" paddingLeft="-2" paddingTop="2"/> </mx:VBox> <mx:Button x="620" y="5" label="Add to Clipboard" height="21" width="110" id="btn_clipboard1" click="clipboardAdded()"/> <mx:Button x="500" y="5" id="btn_additionalInfo" label="Additional Pricing" height="21" fontWeight="normal" click="showAdditionalInfo()"/> <mx:LinkButton x="95" y="8" textAlign="left" id="lb_selectedSubText1" click="goToParts(event)" alpha="0.0" visible="false" /> </mx:Canvas> <mx:Canvas label="Non-Functional" id="tab_nonfunctional" width="770" height="95%"> <mx:Button x="10" y="5" label="Print Parts" height="21" click="printThis_nonFunctional()" width="80" id="btn_print3"/> <mx:VBox x="10" y="30" height="100%" verticalGap="0"> <mx:Canvas label="Non-FunctionalGrid" width="720" height="100%" x="10" y="30"> <mx:DataGrid x="0" y="0" width="100%" height="100%" dataProvider="{nonFuncArray}" rowHeight="16" headerHeight="16" textIndent="-4" paddingBottom="-1" paddingLeft="-1" paddingRight="-1" paddingTop="-1" allowMultipleSelection="true" id="dg_modelNonFunctional" draggableColumns="false" click="nonfunctionalChangeHandle(event)"> <mx:columns> <mx:DataGridColumn headerText="Key" textAlign="center" dataField="KEYNO" width="40"/> <mx:DataGridColumn headerText="Qty" textAlign="center" dataField="QTY" width="30"/> <mx:DataGridColumn headerText="Part No" textAlign="left" dataField="PARTNO" width="105" rendererIsEditor="true" itemRenderer="pages.components.PartLink"/> <mx:DataGridColumn headerText="Description" dataField="PARTDS"/> <mx:DataGridColumn headerText="List Price" textAlign="right" dataField="PARTLP" width="70"/> <mx:DataGridColumn headerText="Sub Part No" dataField="PARTAI" textAlign="left" width="105"/> <mx:DataGridColumn headerText="Std Pk" dataField="PARTPK" textAlign="center" width="45"/> <mx:DataGridColumn headerText="Appl Note" dataField="MEMO" textAlign="center" width="56" itemRenderer="pages.components.ApplNotesButton"/> <mx:DataGridColumn headerText="Part Note" dataField="PARTNT" textAlign="center" width="54" itemRenderer="pages.components.NotesButton"/> </mx:columns> </mx:DataGrid> </mx:Canvas> <mx:Label id="lb_rowCount3" text="Non-Functional" width="100%" paddingLeft="-2" paddingTop="2"/> </mx:VBox> <mx:Button x="620" y="5" label="Add to Clipboard" height="21" width="110" id="btn_clipboard2" click="clipboardAdded2()"/> <mx:Button x="500" y="5" id="btn_additionalInfo2" label="Additional Pricing" height="21" fontWeight="normal" click="showAdditionalInfo()"/> <mx:LinkButton x="95" y="8" textAlign="left" id="lb_selectedSubText2" click="goToParts(event)" alpha="0.0" visible="false" /> </mx:Canvas> </mx:ViewStack> <mx:Label id="lb_selectedText" color="#ff0000" fontWeight="bold" text="" width="450" paddingTop="2" x="188" y="13"/>

