Excel like control

This is a discussion on Excel like control within the Windows Programming forums, part of the Platform Specific Boards category; Do you know if there is some Excel like control, like a 2-dimensional listbox? Preferably with editable fields (the user ...

  1. #1
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145

    Excel like control

    Do you know if there is some Excel like control, like a 2-dimensional listbox? Preferably with editable fields (the user should be able to edit them).
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  2. #2
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    Couldn't you just use a listbox? And yes that is actually a control I can't think of its name off-hand (i haven't used them before) but I do believe it is a grid control. If i'm wrong on what kind of control it is I know someone will correct me.

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    A listbox is simply a list, and as far as I know the user can't manually edit the items.
    What I want is pretty much a listbox, but with two columns. The left one uneditable (read only) and the right one editable. I doubt you can do this with a listbox.

    Perhaps I could use two listboxes side by side, and somehow (read: how?) synchronise their scrolling (scroll one, and the other one will scroll too). But the user still can't edit the items himself.

    I have also thought of using a TreeView, since I know there is such a control. Does anyone know any tutorial on it. Preferable in C, since I don't like control-classes .
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,859
    try a listview ("SysListView32" in the create window functions).

    with LVS_EDITLABELS and LVS_REPORT

    Will have to insert your own columns ect with macros like ListView_InsertColumn()
    "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. (Multiline) Edit Control Limit
    By P4R4N01D in forum Windows Programming
    Replies: 9
    Last Post: 05-17-2008, 12:56 PM
  2. line number on a rich edit control
    By rakan in forum Windows Programming
    Replies: 1
    Last Post: 02-18-2008, 07:58 AM
  3. Button handler
    By Nephiroth in forum Windows Programming
    Replies: 8
    Last Post: 03-12-2006, 06:23 AM
  4. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  5. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 10:44 AM

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