CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2005
    Posts
    7

    Listbox alternative suggestions?

    I'm making an order form and I tried to use a listbox for the list of options, and that would have worked really easy, but i need more.

    Some of the selectable options require additional input.

    I was thinking some listview grid type thingy would do, but im not sure. I tried a search most if not all seemed to deal with MFC. This isnt MFC only, is it?

    Will this work for me? Being able to select an option in a listbox(more than one actually, otherwise 2 textboxes would be setup to take those additional inputs) and add additional inputs?
    Example: You have options "glaze", "powder" or "bars". glaze is ok on its own, but powder could accept an input for colour, or bars needs to know how many.


    I've been stumped for days trying to rig something up for this, but i think i am just wasting my time doing it wrong. I'll be reading This and hopefully be able to make some sense out of it.

    appreciate any help. Thanks.

  2. #2
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: Listbox alternative suggestions?

    I am still not sure what you want. If having multiple columns ( i.e. grid like thingy ) is what is in your mind, yes, you got listview control. For more sophisticated ones, you can use a grid control. There are some grid contols here under "Grid controls" section:
    http://www.codeguru.com/Cpp/controls/controls/

    BTW, listview is a common control provided by windows, so you can use as is without need for MFC , just like you are using Listbox

    Here is the SDk reference for List-view control
    Last edited by kirants; February 26th, 2006 at 12:52 PM. Reason: rectified URL

  3. #3
    Join Date
    Jul 2005
    Posts
    7

    Re: Listbox alternative suggestions?

    What I need is a 2 or 3 column listbox, first column for the option name, second for additional input. Kind of like a spreadsheet only it doesnt need to be as powerful. I just need it to fill in details.

    I'm going to see if i can get the Babygrid to work. It looks most like what i need. The listview examples i saw didn't show me what i want. I couldnt find a way to make the second+ columns directly editable. Maybe i wasnt looking in the right place.

    btw, am i missing something, or does your list-view link go to listbox reference?

  4. #4
    Join Date
    Feb 2000
    Location
    San Diego, CA
    Posts
    10,354

    Re: Listbox alternative suggestions?

    Quote Originally Posted by tehcas
    btw, am i missing something, or does your list-view link go to listbox reference?
    Oops... sorry.. Fixed it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured