CFanatic

Go Back   CFanatic > Programming > MFC Programming

Join CFanatic Forum Now

Getting Control of a Property Page in a Wizard topic posted under MFC Programming which is a part of Programming category in CFanatic Forum
Reply
 
Thread Tools Display Modes
  #1  
Old 11-08-2007, 03:31 PM
Junior Member
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Larry A Mill Sr is on a distinguished road
| More
Getting Control of a Property Page in a Wizard

I'm developing a program that uses a vast amount of Wizard dialog pages.Each page has 8 - 10 Editboxes on it with instructions for their useage. There are no other controls on the pages other-than the editboxes.
How do I get and maintain control of such a page? EN-SETFOCUS would only setfocus once a selection has been made. EN-CHANGE Only notifies me of a change has occurred. EN_KILLFOCUS notifies me that the User has selected something else. How do I gain Control so I can get the data after the User has finished entering it.(and how will I know when the User has entered any data at all). You can't use "OnCommand" in a page, so I couldn't use it to route the selection to a function.
Any ideas?
Reply With Quote
  #2  
Old 11-08-2007, 11:47 PM
shabbir's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 1,163
Thanks: 57
Thanked 63 Times in 44 Posts
shabbir has a spectacular aura aboutshabbir has a spectacular aura about
| More
Re: Getting Control of a Property Page in a Wizard

When a Next button is clicked means that he has finished entering everything in that page.
Reply With Quote
  #3  
Old 11-09-2007, 02:02 PM
Junior Member
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Larry A Mill Sr is on a distinguished road
| More
Re: Getting Control of a Property Page in a Wizard

Somehow I must be able to discern which editboxes was used. Also the Property Sheet controls the buttons [back], [next], [finish] not the individual pages. The property Sheet knows nothing of the editboxes; nor does the pages know anything about the [back], [next], [finish] buttons.
Reply With Quote
  #4  
Old 11-09-2007, 02:07 PM
Junior Member
 
Join Date: Nov 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Larry A Mill Sr is on a distinguished road
| More
Re: Getting Control of a Property Page in a Wizard

How do I get someone to change my logon name? It should be "Larry A Mills Sr" not "Larry A Mill Sr". I've tried to "edit profile" but that didn't work.
Reply With Quote
  #5  
Old 11-09-2007, 03:08 PM
shabbir's Avatar
Administrator
 
Join Date: Sep 2006
Posts: 1,163
Thanks: 57
Thanked 63 Times in 44 Posts
shabbir has a spectacular aura aboutshabbir has a spectacular aura about
| More
Re: Getting Control of a Property Page in a Wizard

Quote:
Originally Posted by Larry A Mill Sr View Post
How do I get someone to change my logon name? It should be "Larry A Mills Sr" not "Larry A Mill Sr". I've tried to "edit profile" but that didn't work.
You cannot change the username.

Also about the query there should be way to know some of the thing and it looks like your design is too loosely coupled.
Reply With Quote
  #6  
Old 11-16-2007, 02:53 AM
Junior Member
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
vinodnn is on a distinguished road
| More
Thumbs up Re: Getting Control of a Property Page in a Wizard

Quote:
Originally Posted by Larry A Mill Sr View Post
Somehow I must be able to discern which editboxes was used. Also the Property Sheet controls the buttons [back], [next], [finish] not the individual pages. The property Sheet knows nothing of the editboxes; nor does the pages know anything about the [back], [next], [finish] buttons.
From what you have said so far, I hope that you are using Wizard-type property pages. If not, set the Wizard mode by using "CPropertySheet::SetWizardMode()". Then u can track the click events on "Next", "back" and "Finish" by easily overriding the functions "CPropertyPage::OnWizardBack()", "CPropertyPage::OnWizardNext()" and "CPropertyPage::OnWizardFinish()". Here, u can validate the edit boxes. I hope that this is what you want.
Reply With Quote
  #7  
Old 07-31-2008, 11:02 AM
Junior Member
 
Join Date: Jul 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
ashburnham is on a distinguished road
| More
Re: Getting Control of a Property Page in a Wizard

Sorry to dig up an oldie but have basically the same problem as Larry. Vinodnn's solution hasn't worked so wondering if there are any suggestions, or if Larry's still about, how did you get on with this?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where seek-page on your site!!! JellyDreamas Help & Support / Suggestion & Feedback 1 09-29-2008 12:13 AM
Enable/Disable an Edit Control box in Property Page taklubaba MFC Programming 1 08-18-2008 05:32 AM
[WTS] PR3 home page Technology link for sale Eugene Sell Your Code 0 08-16-2008 12:16 PM
C# print problem -- page orientation benfly08 C# Programming 1 01-19-2007 08:57 PM
create aspx page in runtime sanju11 C# Programming 0 01-01-2007 04:45 AM

 

Advertisement

CFanatic Search
Custom Search

Advertisement

All times are GMT -5. The time now is 03:09 AM.



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO ©2010, Crawlability, Inc.
Cfanatic.com is a premier member of the IDG TechNetwork. For advertising opportunities contact here
Get Paid for Working on Projects Matching Your Expertise at Go4Expert's Jobs Board