468,792 Members | 1,779 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,792 developers. It's quick & easy.

TextFields & Selection Object

Well, I have a number of input type text fields and I created a drop down menu using the combobox component to allow the user to change the font of the text.

To do this, I think I need two things:
1. The active textfield
2. The index of the first and the last character of the selection

The problem is that when I use the combobox, the textfield looses the focus. What I did to solve this is save the field name in a global variable using the onKillFocus event so that I always know which of the fields was selected before selecting the font. But it doesn't seem like an elegant solution, and I have no idea how can I know the begining and ending of the selection (I had little success with the Selection object).

So, any help will be VERY appreciated
Thanks in advance!
Sep 18 '06 #1
0 2013

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Rich Wahl | last post: by
3 posts views Thread by Bishman | last post: by
2 posts views Thread by Jerim | last post: by
reply views Thread by zhoujie | last post: by
2 posts views Thread by Marin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.