Results 1 to 4 of 4

Thread: Editable text objects

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    4

    Exclamation

    Hey all

    I have a textbox and im trying to make it like a DOS menu
    but i have a lil prompt thingy like <C:\> sorta thing and i want to make that uneditable but i want what they type in to be editable...how do u do that? and how do u put the cursor after the prompt?

    Twisted-D

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Location
    Atlanta, GA
    Posts
    177

    Wink Use Mid$ function

    You caught me at work without my books or coding. Search the string for the first character after the <C:/> thingy, which by the way is called a root directory. You need to know that if you are to go far in VB : ). Store every variable after that until you get to the end of the string, using the Mid$ function. I don't have the actual coding but this is the logic. If you like I can send you the coding tomorrow.

    The Computer Dope Man
    Doc Sheinder
    212 will lead you to the truth

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    'better to do it after the fact
    in your event code after the user enters whatever

    text1 = "C:\" & text1
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Forget the mid stuff, to set the cursor at the 3rd position
    text1.selstart = 3
    However you can't lock the C:\ as untouchable
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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