Alpha Video Training
Results 1 to 3 of 3

Thread: Allowing the enter key to work in a text box

  1. #1
    Member
    Real Name
    marcello cosenza
    Join Date
    Dec 2005
    Posts
    54

    Default Allowing the enter key to work in a text box

    I have placed a textbox on my form and what I would like to do is allow the user to enter a few words then hit the enter key to move to a new line rather than continueously keep filling the box left to right. Eg:

    This is the first line - <HIT ENTER>
    Now the enter key has been hit this is the next line - <HIT ENTER TWICE>

    This is the third line.

    At the moment when you press the enter key the cursor moves onto the next box in the field. Any ideas on how I can do this?

  2. #2
    Member
    Real Name
    Colin Roberts
    Join Date
    Feb 2003
    Posts
    287

    Default

    Take a look at Memo and Rich Text Memo fields, this the only way I know of to achieve this - the latter allows a certain amount of formatting.

    Alternatively, if the lines required fall into a set pattern, as in an address, use a separate field for each component line.

  3. #3
    Former Alpha Employee Edward Larrabee's Avatar
    Real Name
    Edward Larrabee
    Join Date
    Nov 2002
    Location
    New Hampshire
    Posts
    1,385

    Default

    You can intercept a keystroke and then run a function or send a different keystroke. See Running a Script with a Function Key.

Similar Threads

  1. Adding a text box doesn't work
    By William Peck in forum Alpha Five Version 6
    Replies: 1
    Last Post: 02-26-2005, 05:07 AM
  2. Enter key sometimes not working!
    By Donna MartellottoBoyce in forum Alpha Five Version 6
    Replies: 6
    Last Post: 10-29-2004, 02:03 PM
  3. Xdialog, trapping Enter Key
    By Jim Chapman in forum Alpha Five Version 5
    Replies: 4
    Last Post: 05-23-2003, 04:23 AM
  4. text box "Enter"
    By davidv43 in forum Alpha Five Version 5
    Replies: 3
    Last Post: 01-15-2003, 11:41 AM
  5. Disable the enter key for dialog box
    By David Day in forum Alpha Five Version 5
    Replies: 2
    Last Post: 12-18-2002, 04:13 PM

Bookmarks

Posting Permissions

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