Re: [flexcoders] Re: How do I prevent the user from selecting text in a text area component?
Good form would tell you to extend the TextArea to get access to the UITextField which i believe has a selectable property. Bad form would tell you to use mx_internal::getTextField().selectable. - Dan On 2/28/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote: If you don't need any other mouseEvents you could try setting mouseEnabled to false. Haven't tried it so I don't know. Any reason you can't use Text verses TextArea?
[flexcoders] Re: How do I prevent the user from selecting text in a text area component?
--- In flexcoders@yahoogroups.com, "Doug Lowder" <[EMAIL PROTECTED]> wrote: > > You may find some helpful tips in this thread: > > http://tech.groups.yahoo.com/group/flexcoders/message/44779 > > Unfortunately, it looks like the sample code may not be available at > the moment. Yes, that was my thread (I had the same problem) and it will solve your problem. When I said I said Jester's code wasn't working I was still using Flex 2 Beta. When I moved to the final version it worked fine.
[flexcoders] Re: How do I prevent the user from selecting text in a text area component?
You may find some helpful tips in this thread: http://tech.groups.yahoo.com/group/flexcoders/message/44779 Unfortunately, it looks like the sample code may not be available at the moment. --- In flexcoders@yahoogroups.com, "beecee1977" <[EMAIL PROTECTED]> wrote: > > Yes, but that doesn't stop the user from selecting the text (dragging > mouse over and highlighting)... Is there an easy way to prevent that? > (Other than disabling the component) > > Bill > > --- In flexcoders@yahoogroups.com, "Brian Holmes" wrote: > > > > editable="false" > > > > > > > > From: flexcoders@yahoogroups.com > [mailto:[EMAIL PROTECTED] On > > Behalf Of Robin Burrer > > Sent: Monday, February 26, 2007 6:08 PM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] How do I prevent the user from selecting text > in a > > text area component? > > > > > > > > Hi there, > > > > > > > > How do I prevent the user from selecting text in a text area > component? > > > > > > I noticed that it does not have a "selectable" property and does not > > derive from the Text object either. > > > > > > > > > > > > Robin > > > > > > > > > > *** > > The information in this e-mail is confidential and intended solely > for the individual or entity to whom it is addressed. If you have > received this e-mail in error please notify the sender by return e- > mail delete this e-mail and refrain from any disclosure or action > based on the information. > > *** > > >
[flexcoders] Re: How do I prevent the user from selecting text in a text area component?
If you don't need any other mouseEvents you could try setting mouseEnabled to false. Haven't tried it so I don't know. Any reason you can't use Text verses TextArea?
RE: [flexcoders] Re: How do I prevent the user from selecting text in a text area component?
You could make them disabled, but change the disabled styles so it does not look quite so "disabled". Or trap the click event and stop the user action at that point. Karl Cynergy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of beecee1977 Sent: Wednesday, February 28, 2007 8:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How do I prevent the user from selecting text in a text area component? Yes, but that doesn't stop the user from selecting the text (dragging mouse over and highlighting)... Is there an easy way to prevent that? (Other than disabling the component) Bill --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Brian Holmes" <[EMAIL PROTECTED]> wrote: > > editable="false" > > > > From: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of Robin Burrer > Sent: Monday, February 26, 2007 6:08 PM > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] How do I prevent the user from selecting text in a > text area component? > > > > Hi there, > > > > How do I prevent the user from selecting text in a text area component? > > > I noticed that it does not have a "selectable" property and does not > derive from the Text object either. > > > > > > Robin > > > > > *** > The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e- mail delete this e-mail and refrain from any disclosure or action based on the information. > *** >
[flexcoders] Re: How do I prevent the user from selecting text in a text area component?
Yes, but that doesn't stop the user from selecting the text (dragging mouse over and highlighting)... Is there an easy way to prevent that? (Other than disabling the component) Bill --- In flexcoders@yahoogroups.com, "Brian Holmes" <[EMAIL PROTECTED]> wrote: > > editable="false" > > > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Robin Burrer > Sent: Monday, February 26, 2007 6:08 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] How do I prevent the user from selecting text in a > text area component? > > > > Hi there, > > > > How do I prevent the user from selecting text in a text area component? > > > I noticed that it does not have a "selectable" property and does not > derive from the Text object either. > > > > > > Robin > > > > > *** > The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e- mail delete this e-mail and refrain from any disclosure or action based on the information. > *** >