CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    May 2002
    Posts
    8

    How to disable a tab page

    Hi everyone,

    I have created a sheet (from CPropertySheet) that has in it 2 tab pages (from CPropertyPage), namely, m_tab1 and m_tab2.

    How may one disable the entire tab (for example, m_tab1)? such that the entire m_tab1 is grayed out, and inactive? (not just disabling each item in the tab)

    Please help.

    Thank you very much.

    tiff.

  2. #2
    Join Date
    Sep 2001
    Location
    San Diego
    Posts
    2,147
    Check this article

    Hope this helps,

    - Nigel

  3. #3
    Why would disabling a tab be necessary? Unless you have a good reason, it is better to hide the tab rather than disable it. An inaccessible yet visible tab is a waste of space.

  4. #4
    Join Date
    May 2002
    Posts
    8
    I've seen in MS Office products for example, in certain options, there are multiple tabs. Some of the tabs are inactive & grayed out while others are not, depending on the need for use at that point. The same thing is seen also when clicking Menu items. So I try to learn how it's done.

    If anyone has further inputs, please let me know.

    Thanks everyone for your replies.

  5. #5
    Join Date
    May 2005
    Location
    Ellesmera
    Posts
    427

    Red face Re: How to disable a tab page

    hello

    I dont know if this is possible but allow me to state my case

    I have an SDI application with tab ctrl, if you click a button on tab1 the other tabs cannot be click , on this case only a certain button is applicable to be click.

    Is there a way to disable the tab?

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