Re: [flexcoders] Beta 2: TitleWindow.titleBar = No Double Clicking!

2006-03-30 Thread Manish Jethani
On 3/30/06, Scott Langeberg [EMAIL PROTECTED] wrote:

this.titleBar.doubleClickEnabled = true;
trace(dblclcickenable:
 +this.titleBar.doubleClickEnabled)
this.titleBar.addEventListener(MouseEvent.MOUSE_DOWN,
 onMouseDown);
this.titleBar.addEventListener(MouseEvent.DOUBLE_CLICK,
 onDoubleClick);

Try this workaround:

 this.titleBar.mouseChildren = false;

(This may have some unpleasant side-effects.)

Manish


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




Re: [flexcoders] Beta 2: TitleWindow.titleBar = No Double Clicking!

2006-03-30 Thread Scott Langeberg



Would this be the correct synax? It doesn't appear to work...:   this.titleBar.mouseChildren = false;   this.titleBar.doubleClickEnabled = true;   this.titleBar.addEventListener(MouseEvent.MOUSE_DOWN
, onMouseDown);this.titleBar.addEventListener(MouseEvent.DOUBLE_CLICK, onDoubleClick);   On 3/30/06, Manish Jethani 
[EMAIL PROTECTED] wrote:



On 3/30/06, Scott Langeberg [EMAIL PROTECTED] wrote:

 this.titleBar.doubleClickEnabled = true;
 trace(dblclcickenable:
 +this.titleBar.doubleClickEnabled)
 this.titleBar.addEventListener(MouseEvent.MOUSE_DOWN,
 onMouseDown);
 this.titleBar.addEventListener(MouseEvent.DOUBLE_CLICK,
 onDoubleClick);

Try this workaround:

 this.titleBar.mouseChildren = false;

(This may have some unpleasant side-effects.)

Manish






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



  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
.



  










-- : : ) Scott






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



  









Re: [flexcoders] Beta 2: TitleWindow.titleBar = No Double Clicking!

2006-03-30 Thread Manish Jethani
On 3/31/06, Scott Langeberg [EMAIL PROTECTED] wrote:

Would this be the correct synax? It doesn't appear to work...:

this.titleBar.mouseChildren = false;
this.titleBar.doubleClickEnabled = true;

this.titleBar.addEventListener(MouseEvent.MOUSE_DOWN , 
 onMouseDown);
this.titleBar.addEventListener(MouseEvent.DOUBLE_CLICK, 
 onDoubleClick);

You know what?  Override layoutChrome, call the superclass
implementation, and after that set the title bar's mouseChildren to
false.  Panel's layoutChrome sets it to true.

Manish


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





Re: [flexcoders] Beta 2: TitleWindow.titleBar = No Double Clicking!

2006-03-30 Thread Scott Langeberg



Again, You are the Man-ish!Here's what it looks like: /** * All this, to allow double-click!! */  protected override function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void {
   super.layoutChrome(unscaledWidth, unscaledHeight);  this.titleBar.mouseChildren = false;   } scott ;POn 3/30/06, 
Manish Jethani [EMAIL PROTECTED] wrote:



On 3/31/06, Scott Langeberg [EMAIL PROTECTED] wrote:

 Would this be the correct synax? It doesn't appear to work...:

 this.titleBar.mouseChildren = false;
 this.titleBar.doubleClickEnabled = true;

 this.titleBar.addEventListener(MouseEvent.MOUSE_DOWN , onMouseDown);
 this.titleBar.addEventListener(MouseEvent.DOUBLE_CLICK, onDoubleClick);

You know what? Override layoutChrome, call the superclass
implementation, and after that set the title bar's mouseChildren to
false. Panel's layoutChrome sets it to true.

Manish






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



  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
.



  










-- : : ) Scott






--
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] Beta 2: TitleWindow.titleBar = No Double Clicking!

2006-03-29 Thread Scott Langeberg



I'm unable to listen for doubleClick on the titleBar in my class that extends TitleWindow. I'm able to catch the mouseDown event, but not doubleClick:   this.titleBar.doubleClickEnabled = true;   trace(dblclcickenable: +this.titleBar.doubleClickEnabled)
   this.titleBar.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);this.titleBar.addEventListener(MouseEvent.DOUBLE_CLICK, onDoubleClick);Any ideas appreciated!: : ) Scott






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



  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] Beta 2: TitleWindow.titleBar = No Double Clicking!

2006-03-29 Thread Gordon Smith










I think the problem is that the TextField
displaying the title is actually getting the click (rather than the title bar
background) but it isn't doubleClickEnabled.



We're fixing the doubleClickEnabled setter
to recurse into children.



- Gordon











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Scott Langeberg
Sent: Wednesday, March 29, 2006
2:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Beta 2:
TitleWindow.titleBar = No Double Clicking!





I'm unable to listen for doubleClick on the titleBar in my class that
extends TitleWindow. 
I'm able to catch the mouseDown event, but not
doubleClick:

  
this.titleBar.doubleClickEnabled = true;
  
trace(dblclcickenable: +this.titleBar.doubleClickEnabled) 
  
this.titleBar.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown); 
  
this.titleBar.addEventListener(MouseEvent.DOUBLE_CLICK, onDoubleClick);

Any ideas appreciated!

: : ) Scott 







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



  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.