MFC: need varying number of user input files - best interface?

This is a discussion on MFC: need varying number of user input files - best interface? within the Windows Programming forums, part of the Platform Specific Boards category; I currently have user input that looks like the attached. As it sits, the user must enter three sets of ...

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    72

    MFC: need varying number of user input files - best interface?

    I currently have user input that looks like the attached. As it sits, the user must enter three sets of files. I need to modify it so that the user can put between 2 and n sets of files (probably limited to 6 or so in reality). I'm looking for examples, suggestions, and/or tutorials on good ways to do this? (keeping in mind that the input comes in a set - horizontal, vertical, and mask. If one of those isn't present, that set is invalid.)

    Should I move away from the dialog based app? (I'd rather not, as 90% of the code is written)

    Is there a way to do tabs of some sort in a dialog?

    Is there a way to do it that will be both easy to use and easy to implement (i.e. a way to gather the data in a loop of some sort)?

    I was thinking about just having one set for input with an "update" button that will read the user input and store it somewhere - maybe writing text to the dialog - then reseting the edit boxes for the next set. That doesn't seem like the best solution... maybe someone has a better idea.

    Any other suggestions?

    Thanks for the help.
    Attached Images Attached Images  

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    I don't fully understand your requirement, but if you want to select files from a directory structure, and select them as Horizontal, Vertical or Mask, then why not use a Treeview and a right click context menu with "Select Horizontal", or "Add to Horizontal..." options.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    72
    Quote Originally Posted by adrianxw
    I don't fully understand your requirement, but if you want to select files from a directory structure, and select them as Horizontal, Vertical or Mask, then why not use a Treeview and a right click context menu with "Select Horizontal", or "Add to Horizontal..." options.
    To clarify, I need between one and n of the image I have above. The input must be entered as a set, in other words: horz, vert, and mask together make one input.

    I'm going to look into Treeview (no idea what that is as yet) - thanks for the suggestion.

    Any other suggestions? Please send them this way.

  4. #4
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Another option is to use a list box. When the user click on list box entry they can edit it. See the "connections tab" or the "privacy tab->Edit websites" in Internet Explorer options for some ideas. Also, the mail control panel item or the folder view control panel item under file types.

  5. #5
    Registered User
    Join Date
    Oct 2002
    Posts
    72
    Quote Originally Posted by anonytmouse
    Another option is to use a list box. When the user click on list box entry they can edit it. See the "connections tab" or the "privacy tab->Edit websites" in Internet Explorer options for some ideas. Also, the mail control panel item or the folder view control panel item under file types.
    Ahh, that's a nice one. I like that. Thanks for the suggestion.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. timed user input
    By sainiabhishek in forum C Programming
    Replies: 4
    Last Post: 04-01-2009, 11:59 AM
  2. Truncating user input
    By CS_Student8337 in forum C Programming
    Replies: 10
    Last Post: 03-19-2009, 12:34 AM
  3. Structure and Linked List User Input Question
    By kevndale79 in forum C Programming
    Replies: 16
    Last Post: 10-05-2006, 11:09 AM
  4. Testing user input question?
    By Hoser83 in forum C Programming
    Replies: 18
    Last Post: 02-15-2006, 12:18 PM
  5. SSH Hacker Activity!! AAHHH!!
    By Kleid-0 in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-06-2005, 02:53 PM

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