<?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/"
		>
<channel>
	<title>Comments on: Resizable TitleWindow in Flex 4</title>
	<atom:link href="http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/</link>
	<description>Programming under the influence of Flex</description>
	<lastBuildDate>Mon, 06 Sep 2010 05:21:55 -0400</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Kevin Lin</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1465</link>
		<dc:creator>Kevin Lin</dc:creator>
		<pubDate>Fri, 13 Aug 2010 22:54:21 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1465</guid>
		<description>&lt;a href=&quot;#comment-1464&quot; rel=&quot;nofollow&quot;&gt;@Larry Jenkins &lt;/a&gt; 
Thanks for the feedback! Your code looks great!</description>
		<content:encoded><![CDATA[<p><a href="#comment-1464" rel="nofollow">@Larry Jenkins </a><br />
Thanks for the feedback! Your code looks great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Jenkins</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1464</link>
		<dc:creator>Larry Jenkins</dc:creator>
		<pubDate>Fri, 13 Aug 2010 21:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1464</guid>
		<description>This is a great component.  Thanks!  I did find a bug that if you resize the dialog to be smaller than the components that it contains, it will often crash AIR.  The fix is to enforce a minimum size for the dialog.  In ResizableTitleWindow.as add:

    private var minWidth:Number  = 100;
    private var minHeight:Number = 100;

    public function setMinimumSize(newMinWidth:Number, newMinHeight:Number):void{
        if (newMinWidth  &gt; 0) {minWidth  = newMinWidth;}
        if (newMinHeight &gt; 0) {minHeight = newMinHeight;}}

In resizeHandle_mouseMoveHandler() add this before &quot;event.updateAfterEvent()&quot;:

    var newWidth:Number  = prevWidth  + (event.stageX - clickOffset.x);
    var newHeight:Number = prevHeight + (event.stageY - clickOffset.y);
    if (newWidth  &lt; minWidth)  {newWidth  = minWidth;}
    if (newHeight &lt; minHeight) {newHeight = minHeight;}
    width  = newWidth;
    height = newHeight;</description>
		<content:encoded><![CDATA[<p>This is a great component.  Thanks!  I did find a bug that if you resize the dialog to be smaller than the components that it contains, it will often crash AIR.  The fix is to enforce a minimum size for the dialog.  In ResizableTitleWindow.as add:</p>
<p>    private var minWidth:Number  = 100;<br />
    private var minHeight:Number = 100;</p>
<p>    public function setMinimumSize(newMinWidth:Number, newMinHeight:Number):void{<br />
        if (newMinWidth  &gt; 0) {minWidth  = newMinWidth;}<br />
        if (newMinHeight &gt; 0) {minHeight = newMinHeight;}}</p>
<p>In resizeHandle_mouseMoveHandler() add this before &#8220;event.updateAfterEvent()&#8221;:</p>
<p>    var newWidth:Number  = prevWidth  + (event.stageX &#8211; clickOffset.x);<br />
    var newHeight:Number = prevHeight + (event.stageY &#8211; clickOffset.y);<br />
    if (newWidth  &lt; minWidth)  {newWidth  = minWidth;}<br />
    if (newHeight &lt; minHeight) {newHeight = minHeight;}<br />
    width  = newWidth;<br />
    height = newHeight;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Lin</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1263</link>
		<dc:creator>Kevin Lin</dc:creator>
		<pubDate>Wed, 16 Jun 2010 17:17:02 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1263</guid>
		<description>&lt;a href=&quot;#comment-1228&quot; rel=&quot;nofollow&quot;&gt;@flo &lt;/a&gt; 
There&#039;s a bug for this. You can track it here: http://bugs.adobe.com/jira/browse/SDK-25598.

Thanks for the question!</description>
		<content:encoded><![CDATA[<p><a href="#comment-1228" rel="nofollow">@flo </a><br />
There&#8217;s a bug for this. You can track it here: <a href="http://bugs.adobe.com/jira/browse/SDK-25598" rel="nofollow">http://bugs.adobe.com/jira/browse/SDK-25598</a>.</p>
<p>Thanks for the question!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Lin</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1262</link>
		<dc:creator>Kevin Lin</dc:creator>
		<pubDate>Wed, 16 Jun 2010 17:15:50 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1262</guid>
		<description>&lt;a href=&quot;#comment-1159&quot; rel=&quot;nofollow&quot;&gt;@Matt &lt;/a&gt; 
I would approach it the same way that the close button is done in TitleWindow. Basically, you can extend or modify ResizableTitleWindow to have a &quot;helpButton&quot; skin part. You can then attach behavior to the helpButton&#039;s click event. Don&#039;t forget to include the skin part in the skin as well!

Thanks for your comment and questions!</description>
		<content:encoded><![CDATA[<p><a href="#comment-1159" rel="nofollow">@Matt </a><br />
I would approach it the same way that the close button is done in TitleWindow. Basically, you can extend or modify ResizableTitleWindow to have a &#8220;helpButton&#8221; skin part. You can then attach behavior to the helpButton&#8217;s click event. Don&#8217;t forget to include the skin part in the skin as well!</p>
<p>Thanks for your comment and questions!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Lin</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1261</link>
		<dc:creator>Kevin Lin</dc:creator>
		<pubDate>Wed, 16 Jun 2010 17:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1261</guid>
		<description>&lt;a href=&quot;#comment-1109&quot; rel=&quot;nofollow&quot;&gt;@Steve &lt;/a&gt; 
When you add a popup, the parent parameter is not the actual parent of the popup. Instead, the parent is the SystemManager and the PopUpManager just uses the parent to position the popup.

The third one should work. Try that one again? If it doesn&#039;t, send me more code. Thanks for your question!</description>
		<content:encoded><![CDATA[<p><a href="#comment-1109" rel="nofollow">@Steve </a><br />
When you add a popup, the parent parameter is not the actual parent of the popup. Instead, the parent is the SystemManager and the PopUpManager just uses the parent to position the popup.</p>
<p>The third one should work. Try that one again? If it doesn&#8217;t, send me more code. Thanks for your question!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: flo</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1228</link>
		<dc:creator>flo</dc:creator>
		<pubDate>Mon, 07 Jun 2010 13:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1228</guid>
		<description>Hello

Thanks for this code. I use this, and I have a probleme with the right click. The resizable title windows block the right click ont the element. 

Can I use the right click with this example ?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>Thanks for this code. I use this, and I have a probleme with the right click. The resizable title windows block the right click ont the element. </p>
<p>Can I use the right click with this example ?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1159</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 26 May 2010 20:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1159</guid>
		<description>Kevin,
Great work on the component. I am very new to Flex and have been stumped by a problem that I can&#039;t seem to figure out. Your example reminded me of it. What if I want to add more buttons to the title bar area of a spark title window? More descriptively, say I want a help button next to the close button that pops it&#039;s own title window on click? I was experimenting and got something to work by customizing a skin, but I&#039;m very curious to see someone else&#039;s take on the subject. 
In the past, I&#039;ve gotten it to work on the panel component but I was curious if it would work on the title window component as well.
Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Kevin,<br />
Great work on the component. I am very new to Flex and have been stumped by a problem that I can&#8217;t seem to figure out. Your example reminded me of it. What if I want to add more buttons to the title bar area of a spark title window? More descriptively, say I want a help button next to the close button that pops it&#8217;s own title window on click? I was experimenting and got something to work by customizing a skin, but I&#8217;m very curious to see someone else&#8217;s take on the subject.<br />
In the past, I&#8217;ve gotten it to work on the panel component but I was curious if it would work on the title window component as well.<br />
Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thilo</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1134</link>
		<dc:creator>Thilo</dc:creator>
		<pubDate>Mon, 24 May 2010 01:51:29 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1134</guid>
		<description>&lt;a href=&quot;#comment-1073&quot; rel=&quot;nofollow&quot;&gt;@Kevin Lin &lt;/a&gt; 

Thank you for the hint, Kevin! Pretty logical and it worked fine that way :)</description>
		<content:encoded><![CDATA[<p><a href="#comment-1073" rel="nofollow">@Kevin Lin </a> </p>
<p>Thank you for the hint, Kevin! Pretty logical and it worked fine that way <img src='http://flexponential.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1109</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Fri, 21 May 2010 18:49:22 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1109</guid>
		<description>I&#039;m trying to add a ResizableTitleWindow to a BorderContainer instead of using PopUpManager.addPopUp(rtw, this, false). I&#039;ve tried calling PopUpManager.addPopUp(rtw, borderContainer, false) and borderContainer.addElement(rtw). Neither of these work. Any ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to add a ResizableTitleWindow to a BorderContainer instead of using PopUpManager.addPopUp(rtw, this, false). I&#8217;ve tried calling PopUpManager.addPopUp(rtw, borderContainer, false) and borderContainer.addElement(rtw). Neither of these work. Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Lin</title>
		<link>http://flexponential.com/2010/01/10/resizable-titlewindow-in-flex-4/comment-page-1/#comment-1073</link>
		<dc:creator>Kevin Lin</dc:creator>
		<pubDate>Wed, 19 May 2010 17:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://flexponential.com/?p=392#comment-1073</guid>
		<description>&lt;a href=&quot;#comment-1061&quot; rel=&quot;nofollow&quot;&gt;@Thilo &lt;/a&gt; 
Thanks for your question! Try using the same namespace as your TitleWindow for the layout. They should be the same.</description>
		<content:encoded><![CDATA[<p><a href="#comment-1061" rel="nofollow">@Thilo </a><br />
Thanks for your question! Try using the same namespace as your TitleWindow for the layout. They should be the same.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
