CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    CPropertySheet, change the order of the pages...

    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


  2. #2
    Join Date
    Apr 1999
    Location
    Portland, OR, USA
    Posts
    29

    Re: CPropertySheet, change the order of the pages...

    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.

  3. #3
    Join Date
    May 1999
    Location
    Spain
    Posts
    335

    Re: CPropertySheet, change the order of the pages...

    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.


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