View Full Version : I want to show the text in selectable mode
Bhanu Prakash
01-25-2005, 09:56 AM
Hi all,
I am using dynamic text box in my task.
Whenever I clicked on a button to change the content in the dynamic text box, the dynamic text box is focusing. Here comes my problem.
I want to show the text in selectable mode. Means entire text in the dynamic text box should be selected.
I am unable to do that.
Please help me.
Its very very urgent.
miniBloom
01-25-2005, 10:28 AM
hi there ..
see the following thread at Macromedia's:
Macromedia Forum - selectable text (http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=196&threadid=937576&enterthread=y)
ciao ..
Bhanu Prakash
01-26-2005, 07:13 AM
i need more clear details.
the above given link is not much helpful for me
Bhanu Prakash
01-26-2005, 07:17 AM
i need the actionscript sample
If it is that important then maybe a search (http://www.actionscript.org/forums/showthread.php3?t=36326&highlight=setting+focus+textfield) ?
Bhanu Prakash
01-26-2005, 11:07 AM
Hi,
I am applying this code to tool text box(myText)
Selection.setFocus (myText);
Selection.setSelection(0, myText.length);Here the problem is cursor is blinking. can anyone help me.
And one more I want to change the background color of the tool text box
I am eagerly looking for the best help
thanks
Why did you start a new thread instead of using the old one?
Your syntax is totally wrong, if you look at the link in my other post you can try using farafiros example.
Background can be done like:
_root.myText_txt.background=true;
_root.myText_txt.backgroundColor="0xFF0000";
which you could have found in your actionscript dictionary under textfield.
Taff
CyanBlue
01-26-2005, 02:19 PM
Please use more descriptive topic when you post your question and keep one question to one thread...
Bhanu Prakash
01-27-2005, 08:55 AM
Hi taff,
U r code is not functioning.
Can u give some more help to me
Hi taff,
U r code is not functioning.
Can u give some more help to me
Obviously you need to replace "myText_txt" with the instance name of YOUR textfield
:rolleyes:
Bhanu Prakash
01-27-2005, 11:18 AM
Taff thank you very much.
Its functioning now.
Taff dou have any idea over treeview control???
You're welcome and no, never even heard of it.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.