Re: How can I create user-entry tables?
"Mike Silva" <snarflemike@yahoo.com> wrote in message
news:23d4fe60-1983-4e12-9e44-0975c278f68b@x41g2000hsb.googlegroups.com...
First of all, I'm not even sure if my description is accurate. I want
to create tables for entering data, with certain columns being raw
text, others being combo boxes or buttons or radio buttons or check
buttons. The number of rows of such data should be program-
controlled, not fixed, so I need to be able to scroll vertically.
I searched on the net and found a couple of graphics that show the
kind of thing I'm trying to do:
http://www.iisonline.com/Portals/0/iridium_sc_2/full/PurchaseOrderEntry.jpg
http://www.interprise.co.uk/images/CustomerSalesOrderKitConfigurator.png
http://www.infositetech.com/imgs/status-board-large.jpg
I don't even know if I should start as a dialog app or a document app
- my inclination is to make it a dialog app, but I'm not wedded to
that. I should make it clear that I've done both types of app before,
so I'm not a rank beginner, but I'm just not sure how to organize this
kind of app, since it seems to have the qualities of both types.
So, any tips on how to begin, what to search for, what to avoid,
keywords, etc. would be greatly appreciated. If _you_ were going to
build an app like any of the images above, how would you organize it?
Many thanks!
Mike
What you are looking for is a "grid control." There are dozens of them
available, some free and some very rich capability commercial ones. You can
find the most popular free MFC-based one at codeproject.com. For commercial
choices pick up any programming magazine.
There is even one included with Visual C++ - the Microsoft grid. It is an
..ocx for use with Visual Basic: Avoid that one.
The grid control element really has nothing to do with whether you use a
dialog app or doc/view. In a doc/view app you could put the control on a
CFormView and perhaps have the best of both options. You should decide
which architecture to use based on things like document file support, menu
support, and the amount of flexibility your app will need vis a vis its
windows.
--
Scott McPhillips [VC++ MVP]