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. PropertyPages and data

PropertyPages and data

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studioalgorithmshelptutorial
7 Posts 5 Posters 1 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.
  • M Offline
    M Offline
    Mark F
    wrote on last edited by
    #1

    Platform: WinXP, Visual Studio 6 I have a wizard that I created with a propertysheet and 3 propertypages. All have about a half-dozen controls for gathering data. The problem is I don't know how to store the data variables from one page to the next so that at the last page I can use it other than writing it to a file when next button fires. Thanks!

    "Complexity breeds problems. Keep it simple." - Mark

    B R P D 4 Replies Last reply
    0
    • M Mark F

      Platform: WinXP, Visual Studio 6 I have a wizard that I created with a propertysheet and 3 propertypages. All have about a half-dozen controls for gathering data. The problem is I don't know how to store the data variables from one page to the next so that at the last page I can use it other than writing it to a file when next button fires. Thanks!

      "Complexity breeds problems. Keep it simple." - Mark

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

      How about storing the data to the global variables?:) Benben

      1 Reply Last reply
      0
      • M Mark F

        Platform: WinXP, Visual Studio 6 I have a wizard that I created with a propertysheet and 3 propertypages. All have about a half-dozen controls for gathering data. The problem is I don't know how to store the data variables from one page to the next so that at the last page I can use it other than writing it to a file when next button fires. Thanks!

        "Complexity breeds problems. Keep it simple." - Mark

        R Offline
        R Offline
        Renjith Ramachandran
        wrote on last edited by
        #3

        keep your data in a structure/class, and pass the reference to the each pages. in case of any validation, do it in corresponding page. gotcha? :)

        ['Loka Samastha Sukhino Bhavanthu' - May all beings be happy and free]

        1 Reply Last reply
        0
        • M Mark F

          Platform: WinXP, Visual Studio 6 I have a wizard that I created with a propertysheet and 3 propertypages. All have about a half-dozen controls for gathering data. The problem is I don't know how to store the data variables from one page to the next so that at the last page I can use it other than writing it to a file when next button fires. Thanks!

          "Complexity breeds problems. Keep it simple." - Mark

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          Mark F. wrote:

          The problem is I don't know how to store the data variables from one page to the next so that at the last page I can use it other than writing it to a file when next button fires.

          Use variables for storing each control value, in respective propertypage class.Validate its values when user press next button. In last page, you can use this code.

          CPropertySheet *pSheet=GetParent();
          CPropertPage* pPage1=pSheet->GetPage(1);
          pPage1->Aceess variables;//access values
          CPropertPage* pPage2=pSheet->GetPage(2);
          pPage2->Aceess variables;//access values

          Prasad Notifier using ATL

          1 Reply Last reply
          0
          • M Mark F

            Platform: WinXP, Visual Studio 6 I have a wizard that I created with a propertysheet and 3 propertypages. All have about a half-dozen controls for gathering data. The problem is I don't know how to store the data variables from one page to the next so that at the last page I can use it other than writing it to a file when next button fires. Thanks!

            "Complexity breeds problems. Keep it simple." - Mark

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            The common link between all of the pages is the sheet. Store the data there.


            "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

            "Judge not by the eye but by the heart." - Native American Proverb

            M 1 Reply Last reply
            0
            • D David Crow

              The common link between all of the pages is the sheet. Store the data there.


              "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

              "Judge not by the eye but by the heart." - Native American Proverb

              M Offline
              M Offline
              Mark F
              wrote on last edited by
              #6

              Thanks to all. I worked it out!

              "Complexity breeds problems. Keep it simple." - Mark

              D 1 Reply Last reply
              0
              • M Mark F

                Thanks to all. I worked it out!

                "Complexity breeds problems. Keep it simple." - Mark

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                Mark F. wrote:

                I worked it out!

                Care to share?


                "Talent without discipline is like an octopus on roller skates. There's plenty of movement, but you never know if it's going to be forward, backwards, or sideways." - H. Jackson Brown, Jr.

                "Judge not by the eye but by the heart." - Native American Proverb

                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