Okay, I worked with it for several hours before posting, but of course 20 minutes after I ask the question I get the answer from collegue. Even though I had set the protected property equal to an instance of ControlBar I still need to add the control bar as a child:
addChild(DisplayObject(controlBar)) Sorry for the noise, mark --- In [email protected], "Mark" <[EMAIL PROTECTED]> wrote: > > I've extended Panel and based on numerous post here on FlexCoders I > believe I've added the ControlBar correctly, but it just doesn't > appear. Here is my very simple example: > > package com.mh.controls > { > import mx.containers.Panel; > import mx.containers.ControlBar; > import mx.controls.Label; > import mx.controls.CheckBox; > > public class TestPanel extends Panel > { > public function TestPanel() > { > super(); > title = "testing"; > } > > protected override function createChildren():void > { > super.createChildren(); > > controlBar = new ControlBar(); > > var lbl:Label = new Label(); > lbl.text = "testing ctrl bar"; > ControlBar(controlBar).addChild(lbl); > > var chkBox:CheckBox = new CheckBox(); > ControlBar(controlBar).addChild(chkBox); > > createComponentsFromDescriptors(); > } > > } > } > > The end result is a panel, but with no control bar. The interesting > thing is that if I didn't call createComponentsFromDescriptors at the > end, the bottom of the panel would have no padding. > > Thanks in advance for any help! > > mark > -- 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/

