Thanks Dan.

mark


--- In [email protected], "Daniel Freiman" <[EMAIL PROTECTED]> wrote:
>
> controlBar does not seem to be automatically added as a child within the
> Panel class.  You need to do it explicitly at the end of
createChildren().
> And as a preemptive reminded, make sure controlBar is the last child
added
> if you want it docked.
> 
> - Dan
> 
> On 10/6/06, 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
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>






--
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/
 



Reply via email to