[flexcoders] F2B3: useHandCursor property of Text control
Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesnt seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? __._,_.___ -- 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] F2B3: useHandCursor property of Text control
I have the exact same problem, anddo not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesnt seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id="txtItem" text="The quick brown fox jumps over the lazy dog. " buttonMode="true" selectable="false" useHandCursor="true" / What am I missing? __._,_.___ -- 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] F2B3: useHandCursor property of Text control
Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: I have the exact same problem, anddo not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? -- What goes up, does come down. __._,_.___ -- 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] F2B3: useHandCursor property of Text control
Hi Mike, Thanks for looking into this. I tried your suggestion, but the cursor still turns back into an arrow when it gets over the text field. My code is below; if I did not correctly follow your suggestion, please let me know where I went wrong: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox width=400 height=700 buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: I have the exact same problem, anddo not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? -- What goes up, does come down. __._,_.___ -- 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] F2B3: useHandCursor property of Text control
Never mind my last post I had missed the creationComplete attribute in the Application tag. It works now! Thanks Mike! From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] wrote: I have the exact same problem, anddo not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? -- What goes up, does come down. __._,_.___ -- 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] F2B3: useHandCursor property of Text control
Title: Re: [flexcoders] F2B3: useHandCursor property of Text control Manish Jenathi blogged about this a while back, but Im not seeing the blog entry anymore. Anyway, the following works, and I believe is the recommended approach: mx:Text width=100% text=hello useHandCursor=true buttonMode=true mouseChildren=false / Per Manishs explanation (as best I remember), the component needs to know that it has no mouseChildren to listen for. -Peter On 6/9/06 10:26 AM, Jim Robson [EMAIL PROTECTED] wrote: Hi Mike, Thanks for looking into this. I tried your suggestion, but the cursor still turns back into an arrow when it gets over the text field. My code is below; if I did not correctly follow your suggestion, please let me know where I went wrong: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox width=400 height=700 buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have the exact same problem, and do not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? / \ PETER BAIRD 888/ \888 User Experience Consultant 88/ / \88 Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8 275 Grove St. Newton, MA / /888\ \ Office: 617.219.2126 | Cell: 617.803.6804 \8\ AIM: pbaird00 | Y!IM: pbaird00 __._,_.___ -- 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] F2B3: useHandCursor property of Text control
opps, Jim, looked at your last name :) MikeOn 6/9/06, Michael Schmalle [EMAIL PROTECTED] wrote: AH!!! That was one other thing I was going to try!!! mouseChildren. I couldn't get why it would matter. That is what you get for trying to multi-task. Rob, I gave it my best ;-) Peace, MikeOn 6/9/06, Peter Baird [EMAIL PROTECTED] wrote: Manish Jenathi blogged about this a while back, but I'm not seeing the blog entry anymore. Anyway, the following works, and I believe is the recommended approach: mx:Text width=100% text=hello useHandCursor=true buttonMode=true mouseChildren=false / Per Manish's explanation (as best I remember), the component needs to know that it has no mouseChildren to listen for. -Peter On 6/9/06 10:26 AM, Jim Robson [EMAIL PROTECTED] wrote: Hi Mike, Thanks for looking into this. I tried your suggestion, but the cursor still turns back into an arrow when it gets over the text field. My code is below; if I did not correctly follow your suggestion, please let me know where I went wrong: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox width=400 height=700 buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have the exact same problem, and do not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? / \ PETER BAIRD 888/ \888 User Experience Consultant 88/ / \88 Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8 275 Grove St. Newton, MA / /888\ \ Office: 617.219.2126 | Cell: 617.803.6804 \8\ AIM: pbaird00 | Y!IM: pbaird00 -- What goes up, does come down. -- What goes up, does come down. __._,_.___ -- 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] F2B3: useHandCursor property of Text control
Peter: That works perfectly, and its not even a workaround! Thanks very much! Jim From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Peter Baird Sent: Friday, June 09, 2006 11:01 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Manish Jenathi blogged about this a while back, but Im not seeing the blog entry anymore. Anyway, the following works, and I believe is the recommended approach: mx:Text width=100% text=hello useHandCursor=true buttonMode=true mouseChildren=false / Per Manishs explanation (as best I remember), the component needs to know that it has no mouseChildren to listen for. -Peter On 6/9/06 10:26 AM, Jim Robson [EMAIL PROTECTED] wrote: Hi Mike, Thanks for looking into this. I tried your suggestion, but the cursor still turns back into an arrow when it gets over the text field. My code is below; if I did not correctly follow your suggestion, please let me know where I went wrong: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox width=400 height=700 buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have the exact same problem, and do not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? / \ PETER BAIRD 888/ \888 User Experience Consultant 88/ / \88 Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8 275 Grove St. Newton, MA / /888\ \ Office: 617.219.2126 | Cell: 617.803.6804 \8\ AIM: pbaird00 | Y!IM: pbaird00 __._,_.___ -- 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] F2B3: useHandCursor property of Text control
No problem, Mike, it happens all the time. The price I pay for having a first name embedded in my last name. J From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 11:07 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control opps, Jim, looked at your last name :) Mike On 6/9/06, Michael Schmalle [EMAIL PROTECTED] wrote: AH!!! That was one other thing I was going to try!!! mouseChildren. I couldn't get why it would matter. That is what you get for trying to multi-task. Rob, I gave it my best ;-) Peace, Mike On 6/9/06, Peter Baird [EMAIL PROTECTED] wrote: Manish Jenathi blogged about this a while back, but I'm not seeing the blog entry anymore. Anyway, the following works, and I believe is the recommended approach: mx:Text width=100% text=hello useHandCursor=true buttonMode=true mouseChildren=false / Per Manish's explanation (as best I remember), the component needs to know that it has no mouseChildren to listen for. -Peter On 6/9/06 10:26 AM, Jim Robson [EMAIL PROTECTED] wrote: Hi Mike, Thanks for looking into this. I tried your suggestion, but the cursor still turns back into an arrow when it gets over the text field. My code is below; if I did not correctly follow your suggestion, please let me know where I went wrong: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox width=400 height=700 buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have the exact same problem, and do not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? / \ PETER BAIRD 888/ \888 User Experience Consultant 88/ / \88 Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8 275 Grove St. Newton, MA / /888\ \ Office: 617.219.2126 | Cell: 617.803.6804 \8\ AIM: pbaird00 | Y!IM: pbaird00 -- What goes up, does come down. -- What goes up, does come down. __._,_.___ -- 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] F2B3: useHandCursor property of Text control
AH!!! That was one other thing I was going to try!!! mouseChildren. I couldn't get why it would matter. That is what you get for trying to multi-task. Rob, I gave it my best ;-) Peace, MikeOn 6/9/06, Peter Baird [EMAIL PROTECTED] wrote: Manish Jenathi blogged about this a while back, but I'm not seeing the blog entry anymore. Anyway, the following works, and I believe is the recommended approach: mx:Text width=100% text=hello useHandCursor=true buttonMode=true mouseChildren=false / Per Manish's explanation (as best I remember), the component needs to know that it has no "mouseChildren" to listen for. -Peter On 6/9/06 10:26 AM, Jim Robson [EMAIL PROTECTED] wrote: Hi Mike, Thanks for looking into this. I tried your suggestion, but the cursor still turns back into an arrow when it gets over the text field. My code is below; if I did not correctly follow your suggestion, please let me know where I went wrong: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox width=400 height=700 buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Friday, June 09, 2006 9:48 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] F2B3: useHandCursor property of Text control Hi, 1) the internal textfield has no useHandCursor property, this kills one hack. 2) Text control has no border, so there is nothing to hit when you set the component's useHandCursor to true. 3) The internal textfield is eating the event 4) wrap it with a VBOX or the like This does work ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml layout=vertical creationComplete=onInit(event) mx:Script ![CDATA[ private function onInit(event:Event):void { txtItem.mx_internal::textField.mouseEnabled = false; } ]] /mx:Script mx:VBox buttonMode=true useHandCursor=true mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. selectable=false / /mx:VBox /mx:Application Adjust to what you need but, there is a hack here. Peace, Mike On 6/9/06, Jean-Luc ESSER [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have the exact same problem, and do not have a solution. If you put handCursor on a Box where you text resides, it does not work either. Best, JL - Original Message - From: Jim Robson mailto:[EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, June 09, 2006 3:18 PM Subject: [flexcoders] F2B3: useHandCursor property of Text control Per the docs, the useHandCursor property is inherited from the Sprite class. However, it doesn't seem to work on the Text control. When set to true, the mouse cursor remains an arrow instead of changing to a button when over the text field: mx:Text id=txtItem text=The quick brown fox jumps over the lazy dog. buttonMode=true selectable=false useHandCursor=true / What am I missing? / \ PETER BAIRD 888/ \888 User Experience Consultant 88/ / \88 Adobe Consulting | Adobe Systems, Inc 8/ /8\ \8 275 Grove St. Newton, MA / /888\ \ Office: 617.219.2126 | Cell: 617.803.6804 \8\ AIM: pbaird00 | Y!IM: pbaird00 -- What goes up, does come down. __._,_.___ -- 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. __,_._,___