Results 1 to 3 of 3

Thread: [RESOLVED] Setting the cursor position in a text

  1. #1

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Resolved [RESOLVED] Setting the cursor position in a text

    Hey all,

    How do I, when I run a command, set the cursor position in a text box to the very end of the textbox.

    So If I click a button and it puts "Nick" into the textbox or "Paralinx", then the cursor position will be after the K or after the X.

    Does someone know how to do this?

  2. #2
    Fanatic Member ZeBula8's Avatar
    Join Date
    Oct 2002
    Posts
    548

    Re: Setting the cursor position in a text

    text1.selstart = len(text1.text)

  3. #3

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Setting the cursor position in a text

    Cool thanks,

    I thought selstart was just for starting a highlighted text


    thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width