[flexcoders] ControlBar not visible in Flex 4.6

2012-03-12 Thread Dave Glasser
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.


Re: [flexcoders] ControlBar not visible in Flex 4.6

2012-03-12 Thread Alex Harui
Post a small test case.


On 3/12/12 9:28 AM, Dave Glasser dglas...@pobox.com wrote:






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.





--
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] ControlBar not visible in Flex 4.6

2012-03-12 Thread Dave Glasser
Alex,

Thanks very much for responding, however, I've figured it out. 


I was adding my control bar as the last child in the constructor of my class, 
which subclasses TitleWindow. That triggered a call to 
Panel.createComponentsFromDescriptors(). That called 
Panel.setControlBar(myControlBar) as it should, and removed the controlBar from 
the container's regular child list and added it to the rawChildren. Since this 
happens in the constructor, my class is not yet added to the display list. 


After my class instance is added to the display list, the 
Panel.createChildren() method gets called, which again calls 
createComponentsFromDescriptors(). This time, since the last container child 
was not a ControlBar, it calls setControlBar(null).

The fix was to add the control bar as a child in my class's createChildren() 
method, after super.createChildren() has been called.

This is a Flex bug, IMHO.




 From: Alex Harui aha...@adobe.com
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com 
Sent: Monday, March 12, 2012 1:34 PM
Subject: Re: [flexcoders] ControlBar not visible in Flex 4.6
 

 Re: [flexcoders] ControlBar not visible in Flex 4.6 


Post a small test case.


On 3/12/12 9:28 AM, Dave Glasser dglas...@pobox.com wrote:



 
 
   

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.

   



-- 
Alex Harui
Flex SDK Team
Adobe Systems, Inc.
http://blogs.adobe.com/aharui
 




Re: [flexcoders] ControlBar not visible in Flex 4.6

2012-03-12 Thread claudiu ursica
You need to put your stuff inside controlBarContent array.

C




 From: Dave Glasser dglas...@pobox.com
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.

 

Re: [flexcoders] ControlBar not visible in Flex 4.6

2012-03-12 Thread Dave Glasser
I'm using a subclass of mx.containers.Panel. There is no controlBarContent 
array.




 From: claudiu ursica the_bran...@yahoo.com
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 dglas...@pobox.com
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] ControlBar on Panel not positioned correctly when added from ActionScript

2007-03-16 Thread scott_flex

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] ControlBar at the top of a panel?

2007-01-16 Thread Alex MacCaw
Just wondering, is it possible to make a ControlBar appear at the top of
a panel, rather than at the bottom?

Alex
attachment: Green_awareness3.jpg


[flexcoders] ControlBar

2006-09-08 Thread gustavo.saume
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/

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





Re: [flexcoders] ControlBar

2006-09-08 Thread Abdul Qabiz



If control-bar is not last child of Panel in MXML, it is rendererd as normal children. Which means, ControlBar as control-bar in Panel is special case and handled differently.If you want to add control-bar to Panel using ActionScript, you need to follow these steps:-
1) Add controlBar instance as last child in Panel2) call createComponentsFromDescriptors () method of Panel.ex: var controlBar:ControlBar = new ControlBar (); var button:Button = new Button ();
 button.label =Hey; controlBar.addChild (button); panel.addChild (controlBar); panel.createComponentsFromDescriptors (); That works but I learnt above by looking into Panel source code and by recalling things from ApplicationControlBar development process..
So please keep looking at other things also, may be there is better way.-abdulOn 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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] ControlBar

2006-09-08 Thread Rogerio Gonzalez



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:Scriptmx:Panel id=Test mx:Label text=Testing/
/mx:Panel/mx:ApplicationRegardsRogerioOn 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








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] ControlBar added in script display issues...

2006-08-28 Thread Abdul Qabiz



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...
-abdulOn 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



[flexcoders] ControlBar added in script display issues...

2006-08-24 Thread Doug Arthur




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
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



Re: [flexcoders] ControlBar in top of Panel?

2005-10-12 Thread Manish Jethani
On 9/19/05, delaquae [EMAIL PROTECTED] wrote:
 The documentation says that Control Bars should be on the bottom of a
 Panel, but they seem to work fine at the top of a Panel as well.  I
 set the headerHeight to 0 and placed a Control Bar at the top so that
 I could have buttons in a pseudo-header. Are there any current or
 future gottcha's with this approach?

You can place a ControlBar anywhere in an application but it only
works as intended when placed at the bottom of a Panel.  By as
intended I mean that it should be docked to the bottom and should be
kind of like chrome rather than a content child (for example, it
shouldn't scroll off the view when there's too many children to fit
into the Panel).


 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

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