Yippee! Awesome, thanks guys, added a height and width and it worked a treat.
F --- In [email protected], "ben.clinkinbeard" <[EMAIL PROTECTED]> wrote: > > > Is the size of the label actually being set? > > My guess would be no. Raw children are not automatically sized like > normal children are so if its not being explicitly sized its probably > got a width and height of 0. > > HTH, > Ben > > > > --- In [email protected], "Daniel Freiman" <FreimanCQ@> wrote: > > > > Is the size of the label actually being set? > > > > - Daniel Freiman > > > > On Fri, May 30, 2008 at 11:18 AM, fb6668 <fiona@> wrote: > > > > > Hi, I've extended the Panel container, and would now like to add a > > > second text field to the header. > > > > > > I currently have code which has added am expand/contract button to the > > > header, using: > > > > > > rawChildren.addChild(btStateUp); > > > rawChildren.addChild(btStateDown); > > > > > > but when I try to add a label, as follows, nothing is displayed: > > > > > > in createChildren(): > > > > > > lblTotal = new Label(); > > > lblTotal.text = "£200**"; > > > rawChildren.addChild(lblTotal); > > > > > > and in updateDisplayList(): > > > > > > lblTotal.move(unscaledWidth - lblTotal.width - 10, y); > > > > > > Can anyone shed any light why it's not showing? I can include the > > > whole script if required, but it's based on MaxRestorePanel which is > > > in the FlexGrocer app. > > > > > > Thanks! > > > > > > > > > > > >

