Dialog Box after Dialog Box
-
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
-
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
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!
-
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
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
-
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
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
-
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
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?