Oh yeah, sorry, the declerations of the two variables are up at the declerations section. I can't really email you code for this, and I'm finishing work soon-ish. I'll probbaly leave this for the moment. THe problem is that the first time I type text into the textbox, if I then try to click on...
Hiya,
yeah, been trying this. The problem actually seemed to be on the lose focus event, it didn't seem to be setting the selStart and selLength values to the two variables, but only the first time I tried it with writing text. If I retried highlighting, then it worked fine. If I then deleted...
Aargh.
No, not working properly. For some reason the first time I type something in the text box and go to click the button, the loseFocus event doesn't read the correct values of selStart and selLength, it takes them as being zero even if something is selected. Any way of ensuring that these...
Hiya
yeah, thanks. This is just about working, the only weird thing is that at the first press of the button the textbox doesn't set the variables onthe lost focus event, but I'll sort that out.
Thanks a lot
Keith
Doesn't seem to work. I reckon when you reset the focus to the Textbox using textbox.setFocus it highlights everything in the text box and therefore selStart = 0 and selLength = everything.
I found one bit of info on the net (subsequently have lost it though) that suggested that the function...
Hi,
what I'm wanting to set up is a textbox and a button, so that a user can select some text in the textbox and press a button to insert tags around it. The main problem is that I can't seem to use the selStart and selLength properties of the txtbox because as soon as the button is pressed...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.