Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Dialog Box after Dialog Box

Dialog Box after Dialog Box

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Chun Te Ewe
    wrote on last edited by
    #1

    Dear All, I'm trying to make a program that looks like installer programmes that displays one dialog box at a time. The user will then just have to chose some options and click Next to the next dialog box. Problem is I do not know where to start and how to structure the program. Can anyone please help me out here. Many many thanks in advance Chun Te, Ewe

    B L 2 Replies Last reply
    0
    • C Chun Te Ewe

      Dear All, I'm trying to make a program that looks like installer programmes that displays one dialog box at a time. The user will then just have to chose some options and click Next to the next dialog box. Problem is I do not know where to start and how to structure the program. Can anyone please help me out here. Many many thanks in advance Chun Te, Ewe

      B Offline
      B Offline
      benjymous
      wrote on last edited by
      #2

      Property pages might be your best bet - then you can keep the same main window open, and just switch between pages when the user clicks the next button -- Help me! I'm turning into a grapefruit!

      1 Reply Last reply
      0
      • C Chun Te Ewe

        Dear All, I'm trying to make a program that looks like installer programmes that displays one dialog box at a time. The user will then just have to chose some options and click Next to the next dialog box. Problem is I do not know where to start and how to structure the program. Can anyone please help me out here. Many many thanks in advance Chun Te, Ewe

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Hi So you want to do a wizard: dialog with Next, Prev and Finish button. All you have to do is to use two classes: CPropertySheet and CPropertyPage. CPropertySheet will be used as a kind of container for the dialogs through which user will be able to iterate. In CPropertySheet look at the functions: SetWizardMode and SetWizardButtons. Add to you program one class that inherites from CPropertySheet and as many as you need classes that inherites from CPropertyPage(one class for every page in wizard). You can find comprehensive explanation in MSDN (start with classes CPropertySheet and CPropertyPage, that should be enoguh). Greetings Mariusz Popiolek

        D 1 Reply Last reply
        0
        • L Lost User

          Hi So you want to do a wizard: dialog with Next, Prev and Finish button. All you have to do is to use two classes: CPropertySheet and CPropertyPage. CPropertySheet will be used as a kind of container for the dialogs through which user will be able to iterate. In CPropertySheet look at the functions: SetWizardMode and SetWizardButtons. Add to you program one class that inherites from CPropertySheet and as many as you need classes that inherites from CPropertyPage(one class for every page in wizard). You can find comprehensive explanation in MSDN (start with classes CPropertySheet and CPropertyPage, that should be enoguh). Greetings Mariusz Popiolek

          D Offline
          D Offline
          Debs 0
          wrote on last edited by
          #4

          I've just done a similar thing myself. It's easy enough to switch between a normal Property Sheet/Page implementation to a wizard look-and-feel by use of the CPropertySheet.SetWizardMode call before the sheet is invoked, as described in the previous post. A few things that tripped me up when I was first doing it: 1) the title in a wizard is actually driven from the tab text you would normally see for the property page being displayed, NOT from the property sheet title. 2) The buttons displayed/enabled/disabled need setting from the PropertySheet, not the Page, so although the page is the one that needs to initiate the button display, it is actually the sheet that needs to do it. 3) If you go for the wiz98 type styles (nice bitmap backgrounds) then they change format between mfc6+7! Debbie

          D 1 Reply Last reply
          0
          • D Debs 0

            I've just done a similar thing myself. It's easy enough to switch between a normal Property Sheet/Page implementation to a wizard look-and-feel by use of the CPropertySheet.SetWizardMode call before the sheet is invoked, as described in the previous post. A few things that tripped me up when I was first doing it: 1) the title in a wizard is actually driven from the tab text you would normally see for the property page being displayed, NOT from the property sheet title. 2) The buttons displayed/enabled/disabled need setting from the PropertySheet, not the Page, so although the page is the one that needs to initiate the button display, it is actually the sheet that needs to do it. 3) If you go for the wiz98 type styles (nice bitmap backgrounds) then they change format between mfc6+7! Debbie

            D Offline
            D Offline
            Debs 0
            wrote on last edited by
            #5

            Err..of course I meant wizard97 styles. I do have a very simple test project I created in VC++ 6.0 that illustrates how to do this. If you're interested, then email me. As an aside, I could put this in the archives section, if it would be useful to anyone else, but it is *very* simple, so there might well already be one there already? What are the guidelines behind putting articles in?

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups