PropertyPages and data
-
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
-
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
-
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
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]
-
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
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 valuesPrasad Notifier using ATL
-
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
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
-
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
-
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