If I am right, ControlBar is designed in way it would take 100% width of it's container (Panel, TitleWindow etc)
if it is the last child.

Add ControlBar instance in  the last.. It seems, you are doing the same...


-abdul

On 8/25/06, Doug Arthur <[EMAIL PROTECTED]> wrote:

I'm creating a popup with a progress bar and a cancel button, I want to add a controlBar container, but it's not padding the width of the container properly, any help would be great.

Below is the code:
   progressStatus = PopUpManager.createPopUp(Container(Application.application), TitleWindow, true);
   progressStatus.width = 300;
   progressStatus.styleName = "opaquePanel";
   progressStatus.title = 'Download in Progress:';
   bar.mode = 'manual';
   bar.label = 'Loading ' + currentIndex + ' of ' + totalOrders + '...';
   btnCancel.addEventListener(MouseEvent.CLICK, cancel);
    btnCancel.enabled = true;
   btnCancel.label = 'Cancel';
   var ctrlBar:ControlBar = new ControlBar();
   ctrlBar.percentWidth = 100;
   ctrlBar.addChild(btnCancel);
   progressStatus.addChild(ctrlBar);
   progressStatus.addChildAt (bar, 0);
   PopUpManager.centerPopUp(progressStatus);
   PopUpManager.bringToFront(progressStatus);


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to