471,082 Members | 1,189 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,082 software developers and data experts.

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 2076

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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.