Click to See Complete Forum and Search --> : CPropertySheet, change the order of the pages...
Braulio
May 11th, 1999, 03:35 AM
Hi,
I have a property sheet, and I would like to add it some parameters to say it, in wich pos I want every page ( or if I want it or not), Where and how can I do that ?, May I use remove and Add pages in the DoModal of the pages ? ( pass parameters in the DoModal to say wich pages I wanna show ?
Thanks, Bye !
Braulio
Valerie Bradley
May 11th, 1999, 12:25 PM
The order of the tabs depends on the order in which you add those Property Pages to the Property Sheet. To change the order of the tabs, just change the order in which they are added to the Property Sheet. You can always put logic into the function that adds the pages to the sheet, to determine which pages to add and in which order to add them.
There is a function named RemovePage() that will remove a page from a property sheet, however I don't know if calling it on a sheet that is in use will work. I'm inclined to believe that it is a function to be used before or after the sheet has been displayed, but I could be wrong.
Good luck, and happy coding,
=================================================
Valerie L. Bradley
Software Engineer
Intel Corporation
* All opinions expressed are mine and not those of my employer.
Braulio
May 11th, 1999, 01:28 PM
Hi,
The two things that you have said me, looks interesting. The thing that you told about make a DoModal, one page look interesting, I will try it altough not first the final version of my program ;-) ( or.... well I can make a Service Pack later :-D).
What I have thought too, is do something like with the tree with the files that appears in the left side of the Visual C, when you press right click, and show one dialog, shows a property sheet with one or more sheets ( i do it in the do modal).
Thanks for your help, Bye !
Braulio
PS.: I have readed in your signature, that you are from Intel, uau !, super job !, I thought that Intel only made Hw things, not software, but I was wrong.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.