[flexcoders] Re: ControlBar not visible in Flex 4.6
Sorry for the reply I hit the send to early in my email before actually reading the whole content. C --- In flexcoders@yahoogroups.com, Dave Glasser dglasser@... wrote: I'm using a subclass of mx.containers.Panel. There is no controlBarContent array. From: claudiu ursica the_braniak@... To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Monday, March 12, 2012 3:23 PM Subject: Re: [flexcoders] ControlBar not visible in Flex 4.6 You need to put your stuff inside controlBarContent array. C From: Dave Glasser dglasser@... To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Monday, March 12, 2012 5:28 PM Subject: [flexcoders] ControlBar not visible in Flex 4.6 I have an app originally developed in Flex 3.3, which I'm in the process of migrating to Flex 4.6. I don't want to have to rewrite everything using Spark components and containers. I have a mx.containers.TitleWindow with a mx.containers.ControlBar added as the last child. It shows up as expected in Flex 3.3, but it's not there in Flex 4.6. Does anyone know what I need to do to get it to show up in Flex 4.6, without rewriting everything using Spark components? I tried compiling with the halo theme, but that didn't work.
[flexcoders] Re: ControlBar on Panel not positioned correctly when added from ActionScript
I figured out my issue... I needed to add my ControlBar to the panel in the initialize event handler not the creation complete. Not sure exactly why but when i add the control bar in the initialize event handler it correctly positions the control bar to the bottom of my panel. --Soctt --- In flexcoders@yahoogroups.com, scott_flex [EMAIL PROTECTED] wrote: This should be simple but i'm fighting the position of a ControlBar that's on a Panel control when add via actionscript, not mxml. The control bar is not correctly displayed at the bottom of the panel. IE... if the other child components cause the scroll bars to appear, I have to scroll to view the control bar as well... it should be always visible and stationary. This works properly if i add the control bar in with mxml as the last element but not when using actionscript... even if i add it via actionscript in the creationComplete of the panel to ensure it's the last child added. --Scott
[flexcoders] Re: ControlBar
Thanks everybody... i've solve it using the addChild method... but it has to be the last child in order to work properly. --- In flexcoders@yahoogroups.com, Rogerio Gonzalez [EMAIL PROTECTED] wrote: How about this way: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute initialize=init(); mx:Script ![CDATA[ import mx.controls.Button; import mx.containers.ControlBar; private function init():void{ var btnSave:Button = new Button(); btnSave.label = TestButton var cntrl:ControlBar = new ControlBar(); cntrl.addChild(btnSave); this.Test.addChild(cntrl) } ]] /mx:Script mx:Panel id=Test mx:Label text=Testing/ /mx:Panel /mx:Application Regards Rogerio On 9/8/06, gustavo.saume [EMAIL PROTECTED] wrote: Hello all, is there a way to create a controlBar in a script and assign it to a Panel?? i´ve tryed the following with not success: mx:Panel xmlns:mx=http://www.adobe.com/2006/mxml; initialize=init (); layout=vertical width=100% height=100% mx:Script ![CDATA[ import mx.controls.Button; import mx.containers.HBox; import mx.containers.ControlBar; private function init():void { var btnSave:Button = new Button(); var cntrl:ControlBar = new ControlBar(); cntrl.addChild(btnSave); this.controlBar = cntrl; } ]] /mx:Script /mx:Panel -- 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/ * 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/