CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Dialog controls

  1. #1
    Join Date
    Apr 2003
    Location
    Athens, Greece
    Posts
    1,094

    Dialog controls

    Hi all,
    This is more of a design question.
    I need to put a variable number of Edit boxes in a Dialog, since the number of input variables is determined at runtime.

    In such a case do you advise me to use a Grid control instead? If yes which grid control is easy to use and has less bugs?

    If not a Grid then do you suggest dynamic creation and positioning of the controls? Or is there an easier way (for VB I heard there is smthng like a repeater control?)?

    I would be interested in knowing how would you handle such a situation,
    Thanx

    Panayotis
    Extreme situations require extreme measures

  2. #2
    Join Date
    Feb 2002
    Posts
    3,788
    does the user has any interaction at all(can change the content) with the editboxes or you just display something in them? do you take this info and process it further?

  3. #3
    Join Date
    Jul 2003
    Posts
    116
    Once i had a chance to look into an application that had a grid control in it, it appeared a spin control in its grids whenever a mouseclick was posted at that particular row coloumn, the user would either write in the edit box or use the up down controls and move to the next location in the grid..

    There was only one spin control which was moving here and there whenever a click was made, with the exception that only one selection had to be made at a time, the values were taken from the spin into variables and the spin would go to the next position where it was needed, a sort of pizza guy spin control.

    this approach also uses less overheads because the spin control was created only once and was displaying at differrnt locations.
    if ur pizza business is good try hiring two or whatever number of pizza guys you need.

  4. #4
    Join Date
    Jul 2002
    Location
    Karlsruhe (Germany)
    Posts
    169
    I had used windows ListView with grid lines marked accross (LVS_GRIDLINES or something).
    It had fitted quite well for my purpose, and u can also get the edit box out of the listview itself when u wanna edit something in the grid. (like the rename edit box appears in windows explorer)
    __________________________________
    Software is more an Art than Science

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