What type of control should I use

This is a discussion on What type of control should I use within the Windows Programming forums, part of the Platform Specific Boards category; Hi, Can anyone point out which type of control will allow me to uses the return key when entering text. ...

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    17

    What type of control should I use

    Hi,

    Can anyone point out which type of control will allow me to uses the return key when entering text. My program is set up as follows: Click on an edit button and a dialog box appears. This dialog consists of various edit controls for entering a single line of text. I'm looking for a control that will allow me to enter muliple line of text. All the information from this dialog box is then used to update a database.

  2. #2
    Registered User lobo's Avatar
    Join Date
    Oct 2001
    Posts
    71
    edit with ES_MULTILINE style should do well enough..

  3. #3
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    I would use a ListView in report style.

    A simple listview with the edit labels style would work. This is better than a series of edits as it can be used in loops if you align the database items index and the listview index ie first element in DB table is first index in listview.

    For more complex data entry I would subclass the control.

    I would use ODBC to connect to the database and fill the first column with the table headers. Then the data type in a second (switch for a more meaningful description ie SQL_DATE = Date dd/mm/yyyy).

    Then subclass the control to allow the user to enter data in the third column.
    I create an edit (or combo box) in the cell the user clicks the mouse on.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sorting the matrix question..
    By transgalactic2 in forum C Programming
    Replies: 47
    Last Post: 12-22-2008, 02:17 PM
  2. Segmentation Fault?
    By John_L in forum C Programming
    Replies: 10
    Last Post: 10-02-2007, 08:37 AM
  3. Question on l-values.
    By Hulag in forum C++ Programming
    Replies: 6
    Last Post: 10-13-2005, 04:33 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Dynamic array of pointers
    By csisz3r in forum C Programming
    Replies: 8
    Last Post: 09-25-2005, 02:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21