Thread: What type of control should I use

  1. #1
    Registered User
    Join Date
    Mar 2003

    What type of control should I use


    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
    edit with ES_MULTILINE style should do well enough..

  3. #3
    train spotter
    Join Date
    Aug 2001
    near a computer
    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, 03: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