Adobe Dreamweaver Forums



Last 10 THreads :         PLACING NEW LAYER BELOW THE ORIGINAL (Last Post : Lenore_Abboud@adobeforums.com - Replies : 2 - Views : 3 )           »          Strip EXIF camera data from PSD files? (Last Post : Ho - Replies : 1 - Views : 2 )           »          Is Adobe really turning its back on me? (Last Post : dave_milbut@adobeforums.com - Replies : 8 - Views : 9 )           »          Objects "Framed" when moving layer (Last Post : Ann_Shelbourne@adobeforums.com - Replies : 1 - Views : 2 )           »          How does this configurator module work? (Last Post : Marvinzzz - Replies : 0 - Views : 1 )           »          Apache Connector failures on RHEL5 (Last Post : macbookrocco - Replies : 0 - Views : 1 )           »          Canvas ID that generate by Repeater (Last Post : Wirawannaga - Replies : 0 - Views : 1 )           »          Re: Image Sequences in Flash? (Last Post : Rothrock - Replies : 0 - Views : 1 )           »          Query question/help (Last Post : Dan Bracuk - Replies : 1 - Views : 2 )           »          cfapplication in Application.cfc (Last Post : Dan Bracuk - Replies : 8 - Views : 9 )           »         


User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-03-2008, 04:37 AM
vankads
 
Posts: n/a
Diggs:
Default setting both selectable and usehandcursor to true on alabel

Hi all,

I am having label with following properties.

useHandCursor = true;
buttonMode = true;
mouseChildren = false;

Now I want to select the text of this label also, by setting selectable=true.
I am not able to figure it out how it can be done. Is there any way to do it.

Thanks,
Sudha



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-03-2008, 04:37 AM
-Hob
 
Posts: n/a
Diggs:
Default Re: setting both selectable and usehandcursor to true ona label

You might be able to do it, but it'll be a hacky work-around. You'll need to
add a mouse-down listener to the UITextField inside the Label. Add the
listener with a high priority, so you're sure to get it first.

When your event listener fires, set mouseChildren=true on the Label. This
might allow you to select text. On mouse-up make sure to set mouseChildren
back to false.

Reply With Quote
  #3 (permalink)  
Old 11-03-2008, 04:37 AM
Amy Blankenship
 
Posts: n/a
Diggs:
Default Re: setting both selectable and usehandcursor to true on a label


"-Hob" <webforumsuser@macromedia.com> wrote in message
news:gdqi4e$o3k$1@forums.macromedia.com...
> You might be able to do it, but it'll be a hacky work-around. You'll need
> to
> add a mouse-down listener to the UITextField inside the Label. Add the
> listener with a high priority, so you're sure to get it first.
>
> When your event listener fires, set mouseChildren=true on the Label. This
> might allow you to select text. On mouse-up make sure to set
> mouseChildren
> back to false.


Or simply set useHandCursor and buttonMode to true on all of the children of
the label in a loop...


Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 02:47 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk