Re: [flexcoders] Re: How do I prevent the user from selecting text in a text area component?

2007-03-01 Thread Daniel Freiman

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?

 



RE: [flexcoders] Re: How do I prevent the user from selecting text in a text area component?

2007-02-28 Thread Karl Johnson
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.
 ***