Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. duotwr

    inserting into textbox from button event

    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...
  2. duotwr

    inserting into textbox from button event

    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...
  3. duotwr

    inserting into textbox from button event

    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...
  4. duotwr

    inserting into textbox from button event

    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
  5. duotwr

    inserting into textbox from button event

    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...
  6. duotwr

    inserting into textbox from button event

    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...

Part and Inventory Search

Back
Top