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).
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.
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.
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.
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