<?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: Flex HDividedBox/VDividedBox divider double-click event oddity</title> <atom:link href="http://www.dandev.com/2009/12/hdividedbox/feed/" rel="self" type="application/rss+xml" /><link>http://www.dandev.com/software/hdividedbox/</link> <description>Daniel&#039;s Dev Blog..ish</description> <lastBuildDate>Wed, 31 Aug 2011 03:17:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: Marble Daemon</title><link>http://www.dandev.com/software/hdividedbox/#comment-437</link> <dc:creator>Marble Daemon</dc:creator> <pubDate>Wed, 31 Aug 2011 03:17:00 +0000</pubDate> <guid
isPermaLink="false">http://www.dandev.com/?p=171#comment-437</guid> <description>The problem stems from the appearance of the vertical drag line upon user&#039;s mouse down on the divider. That element just floats above the divider, thus blocks any mouse event that occurs afterward (mouseUp). That&#039;s why Click and DoubleClick event is never fired from the divider.
When using &#039;liveDragging&#039;, we just forbid the drawing of the vertical drag line so the Click and DoubleClick events are fired normally.
One possible solution is to alter the behavior of mouseDown handler of the divider so that it will wait a certain amount of time before it actually starts drawing the vertical drag line. Any mouseUp event during that time will cancel the drawing of the vertical drag line.
Another alternative solution, in case you have the big tree on the left, is not to use the horizontal scrollbar of the tree. Instead, you can wrap the tree with a s:Group and a s:Scroller. So every time the HDividedBox redraws the left content, only the viewport of the s:Group is re-rendered, not the tree itself. That may helps.</description> <content:encoded><![CDATA[<p>The problem stems from the appearance of the vertical drag line upon user&#8217;s mouse down on the divider. That element just floats above the divider, thus blocks any mouse event that occurs afterward (mouseUp). That&#8217;s why Click and DoubleClick event is never fired from the divider.</p><p>When using &#8216;liveDragging&#8217;, we just forbid the drawing of the vertical drag line so the Click and DoubleClick events are fired normally.</p><p>One possible solution is to alter the behavior of mouseDown handler of the divider so that it will wait a certain amount of time before it actually starts drawing the vertical drag line. Any mouseUp event during that time will cancel the drawing of the vertical drag line.</p><p>Another alternative solution, in case you have the big tree on the left, is not to use the horizontal scrollbar of the tree. Instead, you can wrap the tree with a s:Group and a s:Scroller. So every time the HDividedBox redraws the left content, only the viewport of the s:Group is re-rendered, not the tree itself. That may helps.</p> ]]></content:encoded> </item> <item><title>By: Kenneth</title><link>http://www.dandev.com/software/hdividedbox/#comment-436</link> <dc:creator>Kenneth</dc:creator> <pubDate>Wed, 24 Aug 2011 11:38:19 +0000</pubDate> <guid
isPermaLink="false">http://www.dandev.com/?p=171#comment-436</guid> <description>Yes, it is true that doubleclicks are not fired from DividedBox - but not even single clicks are..
The problem for me is that we have a HDividedBox with a Tree in the left part - and this tree is really hard on the performance when liveDragging is set to true (because of the re-drawing)
So I really would like to know if anybody knows a way to get the click (-double as well) events fired - but without enabling liveDragging.
/KE</description> <content:encoded><![CDATA[<p>Yes, it is true that doubleclicks are not fired from DividedBox &#8211; but not even single clicks are..</p><p>The problem for me is that we have a HDividedBox with a Tree in the left part &#8211; and this tree is really hard on the performance when liveDragging is set to true (because of the re-drawing)</p><p>So I really would like to know if anybody knows a way to get the click (-double as well) events fired &#8211; but without enabling liveDragging.</p><p>/KE</p> ]]></content:encoded> </item> <item><title>By: roaldh</title><link>http://www.dandev.com/software/hdividedbox/#comment-431</link> <dc:creator>roaldh</dc:creator> <pubDate>Thu, 10 Mar 2011 10:37:39 +0000</pubDate> <guid
isPermaLink="false">http://www.dandev.com/?p=171#comment-431</guid> <description>Thank you very much! Very much wanted functionality!</description> <content:encoded><![CDATA[<p>Thank you very much! Very much wanted functionality!</p> ]]></content:encoded> </item> <item><title>By: zs180777</title><link>http://www.dandev.com/software/hdividedbox/#comment-426</link> <dc:creator>zs180777</dc:creator> <pubDate>Sat, 29 Jan 2011 13:08:41 +0000</pubDate> <guid
isPermaLink="false">http://www.dandev.com/?p=171#comment-426</guid> <description>Hi,
great post. How to handle the double click on the divider in HDividedBox and VDividedBox was exactly what i was looking for!
Works perfect.
Thanks.</description> <content:encoded><![CDATA[<p>Hi,<br
/> great post. How to handle the double click on the divider in HDividedBox and VDividedBox was exactly what i was looking for!<br
/> Works perfect.<br
/> Thanks.</p> ]]></content:encoded> </item> <item><title>By: Mark</title><link>http://www.dandev.com/software/hdividedbox/#comment-202</link> <dc:creator>Mark</dc:creator> <pubDate>Wed, 24 Feb 2010 14:52:38 +0000</pubDate> <guid
isPermaLink="false">http://www.dandev.com/?p=171#comment-202</guid> <description>Thanks so much.  Been stuck with this little problem for a few days.</description> <content:encoded><![CDATA[<p>Thanks so much.  Been stuck with this little problem for a few days.</p> ]]></content:encoded> </item> <item><title>By: admin</title><link>http://www.dandev.com/software/hdividedbox/#comment-201</link> <dc:creator>admin</dc:creator> <pubDate>Tue, 19 Jan 2010 19:05:40 +0000</pubDate> <guid
isPermaLink="false">http://www.dandev.com/?p=171#comment-201</guid> <description>Thanks for your reply Rocksoccer,
You&#039;re correct, I should have mentioned that you need to set doubleClickEnabled to true. I was more pointing out that if you -only- set the event it will not work as you might expect(like I did), and that you have to enable livedragging in order to capture it.
Regards,
-Daniel</description> <content:encoded><![CDATA[<p>Thanks for your reply Rocksoccer,</p><p>You&#8217;re correct, I should have mentioned that you need to set doubleClickEnabled to true. I was more pointing out that if you -only- set the event it will not work as you might expect(like I did), and that you have to enable livedragging in order to capture it.</p><p>Regards,<br
/> -Daniel</p> ]]></content:encoded> </item> <item><title>By: rocksoccer</title><link>http://www.dandev.com/software/hdividedbox/#comment-200</link> <dc:creator>rocksoccer</dc:creator> <pubDate>Tue, 19 Jan 2010 17:45:41 +0000</pubDate> <guid
isPermaLink="false">http://www.dandev.com/?p=171#comment-200</guid> <description>hi,
I think you miss one point You need to set the doubleClickEnabled of the BoxDivider to be true, otherwise it wont trigger the event listener at all.</description> <content:encoded><![CDATA[<p>hi,<br
/> I think you miss one point You need to set the doubleClickEnabled of the BoxDivider to be true, otherwise it wont trigger the event listener at all.</p> ]]></content:encoded> </item> </channel> </rss>
