|
-
February 18th, 2009, 05:33 AM
#1
Suppressing dialog UI in a property sheet
I have propertysheet with three dialogs.
I want to process them automatically by calling OnWizardNext() in OnSetActive() method for not showing that dialog. It is working fine except for the final dialog. For the final dialog I am calling OnWizardFinish()on OnSetActive() of that dialog so that finish button functionality should automatically called but still I see that final dialog and need to press that finish button(don't know what am I missing).
Can anyone please help me in that.
Thanks,
Mushtaque Nizamani
-
February 18th, 2009, 06:18 AM
#2
Re: Suppressing dialog UI in a property sheet
Rather than call OnWizardNext you should use CPropertySheet::SetWizardButtons to set button "Finish" instead of "Next" (see the example in MSDN article "CPropertySheet::SetWizardButtons"). In that case you won't be able to go to your "final dialog": either "Back" or "Finish".
Victor Nijegorodov
-
February 19th, 2009, 12:28 AM
#3
Re: Suppressing dialog UI in a property sheet
 Originally Posted by Mushq
I have propertysheet with three dialogs.
Three property pages.
 Originally Posted by Mushq
I want to process them automatically by calling OnWizardNext() in OnSetActive() method for not showing that dialog.
I am not sure what do you mean by not showing that dialog. Assuming that you want to skip a page, you should not call OnWizardNext. You should use PressButton to si,ulate butto press. To skip a page or jump to any page return an ID of the page you want to jump to from OnWizardNext. Usually this is done in page preceding page to jump to. You can jump from to any page from any page.
 Originally Posted by Mushq
For the final dialog I am calling OnWizardFinish()on OnSetActive() of that dialog so that finish button functionality should
That is not a way to handle wizars, nor property pages.
Both are usually used to collect some data step by step (page by page) and save data whem Finish button is pressed, User should have ability to cancel out without saving. You deprive user this functionality.
There are only 10 types of people in the world:
Those who understand binary and those who do not.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|