Thread: tab controls

  1. #1
    Registered User
    Join Date
    Mar 2002
    Posts
    112

    tab controls

    Hey, I got a tab control all setup but I'm not sure what you do with it. Do you just put all your controls onto the same dialog and hide the Items that are not on the selected control?

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    I typically use a modeless dialog box for each "page" of the tab control.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Mar 2002
    Posts
    112
    Does it matter how you do it? I already have it setup to hide the items that aren't part of the selected tab. Is this a bad way to do it?

  4. #4
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,868
    Makes it hard to use all the TAB's area as you can't place one control on top of another. This is the main advantage of a TAB ctrl.

    Also is easier to hide / show a whole Dlg rather than sort thru the ctrls.

    Why not just hide the crtls you do not want the user to see based on their activity?
    "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

  5. #5
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    >>> Is this a bad way to do it?

    If you've done it that way and it is good enough - so it's fine then isn't it. You asked...

    >>> Do you just put all your controls onto the same dialog

    ... so I told you how I usually do it. Novacain's point...

    >>> Also is easier to hide / show a whole Dlg rather than sort thru the ctrls.

    ... sorts it for me.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tab Ordering of GUI Controls
    By cloudy in forum Windows Programming
    Replies: 2
    Last Post: 04-22-2006, 09:13 AM
  2. GetSystemMetrics for tab controls?
    By Magos in forum Windows Programming
    Replies: 2
    Last Post: 03-13-2006, 06:07 PM
  3. Using the VS.NET form designer with tab controls
    By bennyandthejets in forum Windows Programming
    Replies: 1
    Last Post: 07-06-2004, 12:49 AM
  4. Tab controls - MFC (revived)
    By Robert602 in forum Windows Programming
    Replies: 1
    Last Post: 01-22-2002, 12:32 PM
  5. Newbie question on tab controls
    By Robert602 in forum Windows Programming
    Replies: 3
    Last Post: 01-20-2002, 02:13 PM