<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Resizable, Minimizable, Maximizable TitleWindow</title>
	<atom:link href="http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/feed/" rel="self" type="application/rss+xml" />
	<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/</link>
	<description>Random rants and tips about NETCF, WinCE, Emacs, Powershell etc.</description>
	<lastBuildDate>Wed, 09 Dec 2009 14:31:15 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: raluca</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3220</link>
		<dc:creator>raluca</dc:creator>
		<pubDate>Tue, 03 Nov 2009 15:33:10 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3220</guid>
		<description>I get the same error like gualivchenko.
I used the compiled swf.
Can you pls help me to solve it out?</description>
		<content:encoded><![CDATA[<p>I get the same error like gualivchenko.<br />
I used the compiled swf.<br />
Can you pls help me to solve it out?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anon</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3218</link>
		<dc:creator>Anon</dc:creator>
		<pubDate>Thu, 22 Oct 2009 02:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3218</guid>
		<description>I tracked down the issue with PopUpManager.centerPopUp():

Quick solution:
At the bottom of function setEffects() in ResizableTitleWindow.as, change this line:
        currentState = &quot;normal&quot;;
to this:
        setCurrentState(&quot;normal&quot;, false);

Explanation:
The property setter for currentState calls setCurrentState with the second parameter set to &#039;true&#039;, meaning &#039;play transition when changing states&#039;. During the process of running PopUpManager.centerPopUp(), the setEffects() function is called, and thus setCurrentState is called, with the instruction to play the transition.
centerPopUp() then triggers a validation cycle. As part of the validation cycle, the transition effects are triggered. This includes a &#039;Move&#039; effect, and the destination of the move is (0,0): the default and then-current position of the window, as centerPopUp hasn&#039;t yet done its centering measurements.

centerPopUp then goes on to calculate the new position of the window, and sets its coordinates appropriately.

However, the transition that was triggered runs asynchronously, so a few milliseconds later the &#039;move&#039; effect finishes and proceeds to set the coordinates of the window back to (0,0). By the time the window displays, this has been done.

The solution, then, is to tell UIComponent not to play the transition when setting the initial state, by making the change shown above.

Looking at the UIComponent code, I&#039;m guessing this problem might be limited to Flex 4, which is what I&#039;m using.</description>
		<content:encoded><![CDATA[<p>I tracked down the issue with PopUpManager.centerPopUp():</p>
<p>Quick solution:<br />
At the bottom of function setEffects() in ResizableTitleWindow.as, change this line:<br />
        currentState = &#8220;normal&#8221;;<br />
to this:<br />
        setCurrentState(&#8220;normal&#8221;, false);</p>
<p>Explanation:<br />
The property setter for currentState calls setCurrentState with the second parameter set to &#8216;true&#8217;, meaning &#8216;play transition when changing states&#8217;. During the process of running PopUpManager.centerPopUp(), the setEffects() function is called, and thus setCurrentState is called, with the instruction to play the transition.<br />
centerPopUp() then triggers a validation cycle. As part of the validation cycle, the transition effects are triggered. This includes a &#8216;Move&#8217; effect, and the destination of the move is (0,0): the default and then-current position of the window, as centerPopUp hasn&#8217;t yet done its centering measurements.</p>
<p>centerPopUp then goes on to calculate the new position of the window, and sets its coordinates appropriately.</p>
<p>However, the transition that was triggered runs asynchronously, so a few milliseconds later the &#8216;move&#8217; effect finishes and proceeds to set the coordinates of the window back to (0,0). By the time the window displays, this has been done.</p>
<p>The solution, then, is to tell UIComponent not to play the transition when setting the initial state, by making the change shown above.</p>
<p>Looking at the UIComponent code, I&#8217;m guessing this problem might be limited to Flex 4, which is what I&#8217;m using.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kris</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3212</link>
		<dc:creator>Kris</dc:creator>
		<pubDate>Mon, 21 Sep 2009 11:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3212</guid>
		<description>When a title window is minimized &amp; if I try to drag the minimized window out of the Task Manager it just disappears &amp; never returns. 
Is there any way to freeze its movements inside the task manager ?</description>
		<content:encoded><![CDATA[<p>When a title window is minimized &amp; if I try to drag the minimized window out of the Task Manager it just disappears &amp; never returns.<br />
Is there any way to freeze its movements inside the task manager ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PvR</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3207</link>
		<dc:creator>PvR</dc:creator>
		<pubDate>Wed, 26 Aug 2009 08:59:07 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3207</guid>
		<description>Hi

Is there a version of the code around with the improvements mentioned above ?

Thanks !

Piet</description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>Is there a version of the code around with the improvements mentioned above ?</p>
<p>Thanks !</p>
<p>Piet</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: handoyo</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3206</link>
		<dc:creator>handoyo</dc:creator>
		<pubDate>Mon, 17 Aug 2009 04:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3206</guid>
		<description>Hi,thanks for the component.Is it possible to change your TitleWindow style?Thanks..</description>
		<content:encoded><![CDATA[<p>Hi,thanks for the component.Is it possible to change your TitleWindow style?Thanks..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Rabinowitz</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3205</link>
		<dc:creator>Henry Rabinowitz</dc:creator>
		<pubDate>Thu, 13 Aug 2009 17:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3205</guid>
		<description>Thanks for making this useful component.  When I make a component derived from it, and use PopUpManager.centerPopUp(), it shows up instead in the upper left corner of the parent Application.  Do you know why this might be?
--Henry</description>
		<content:encoded><![CDATA[<p>Thanks for making this useful component.  When I make a component derived from it, and use PopUpManager.centerPopUp(), it shows up instead in the upper left corner of the parent Application.  Do you know why this might be?<br />
&#8211;Henry</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tatini</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3193</link>
		<dc:creator>Tatini</dc:creator>
		<pubDate>Thu, 25 Jun 2009 09:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3193</guid>
		<description>Can you send the source code please ,it will be helpful for us.</description>
		<content:encoded><![CDATA[<p>Can you send the source code please ,it will be helpful for us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3187</link>
		<dc:creator>Tiago</dc:creator>
		<pubDate>Mon, 08 Jun 2009 11:48:21 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3187</guid>
		<description>Hello I would like to know how to show the minimize and maximize icons ne because I conceguindo ... would someone send me an example that is running?</description>
		<content:encoded><![CDATA[<p>Hello I would like to know how to show the minimize and maximize icons ne because I conceguindo &#8230; would someone send me an example that is running?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gualivchenko</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3173</link>
		<dc:creator>gualivchenko</dc:creator>
		<pubDate>Mon, 11 May 2009 12:53:01 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3173</guid>
		<description>I&#039;m trying to use it as a component too, but it throws me the following error:

Error #1034: Type Coercion failed: cannot convert _mywebsite_mx_managers_SystemManager@43d80a1 to mx.core.IUIComponent.
	at ResizableTitleWindow/createChildren()[C:\depot\flex\components\ResizableTitleWindow\src\ResizableTitleWindow.as:467]
	at mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5262]
	at mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2524]
	at com.mns.boxinbox.client.ui.components.feeds::FeedReaderComponent/initialize()[C:\mns-rep\mns\boxinbox\flex_src\com\mns\boxinbox\client\ui\components\feeds\FeedReaderComponent.mxml:0]
	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:1625]
	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:1675]
	at mx.managers::SystemManager/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:1225]
	at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:263]
	at mx.managers::PopUpManager$/addPopUp()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:169]

The code I use to show the component is:
var component:MyComponent = new MyComponent();
var parent:DisplayObject = Sprite(Application.application);
if (parent is UIComponent) {
	        			component.moduleFactory = UIComponent(parent).moduleFactory;
}
PopUpManager.addPopUp(component, parent, false);

It seems like is trying to do some conversion but on the system manager. If I use the TitleWindow bundled with flex, it works. Any ideas?

Thanks.</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use it as a component too, but it throws me the following error:</p>
<p>Error #1034: Type Coercion failed: cannot convert _mywebsite_mx_managers_SystemManager@43d80a1 to mx.core.IUIComponent.<br />
	at ResizableTitleWindow/createChildren()[C:\depot\flex\components\ResizableTitleWindow\src\ResizableTitleWindow.as:467]<br />
	at mx.core::UIComponent/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:5262]<br />
	at mx.core::Container/initialize()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\Container.as:2524]<br />
	at com.mns.boxinbox.client.ui.components.feeds::FeedReaderComponent/initialize()[C:\mns-rep\mns\boxinbox\flex_src\com\mns\boxinbox\client\ui\components\feeds\FeedReaderComponent.mxml:0]<br />
	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:1625]<br />
	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:1675]<br />
	at mx.managers::SystemManager/addChild()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\SystemManager.as:1225]<br />
	at mx.managers::PopUpManagerImpl/addPopUp()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\PopUpManagerImpl.as:263]<br />
	at mx.managers::PopUpManager$/addPopUp()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\PopUpManager.as:169]</p>
<p>The code I use to show the component is:<br />
var component:MyComponent = new MyComponent();<br />
var parent:DisplayObject = Sprite(Application.application);<br />
if (parent is UIComponent) {<br />
	        			component.moduleFactory = UIComponent(parent).moduleFactory;<br />
}<br />
PopUpManager.addPopUp(component, parent, false);</p>
<p>It seems like is trying to do some conversion but on the system manager. If I use the TitleWindow bundled with flex, it works. Any ideas?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: caoxiaolong</title>
		<link>http://nisheet.wordpress.com/2007/03/06/resizableminimizablemaximizable-titlewindow/#comment-3164</link>
		<dc:creator>caoxiaolong</dc:creator>
		<pubDate>Fri, 01 May 2009 11:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://nisheet.wordpress.com/2007/03/25/resizableminimizablemaximizable-titlewindow/#comment-3164</guid>
		<description>I use it as component,but how can I use PopUpManager to load this ResizableTitleWindow??????</description>
		<content:encoded><![CDATA[<p>I use it as component,but how can I use PopUpManager to load this ResizableTitleWindow??????</p>
]]></content:encoded>
	</item>
</channel>
</rss>
