Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » No title in Property page Collapse All
Subject Author Date
M Priya Aug 13, 2007 - 10:26 AM

Hello,

I tried using CExtResizablePropertySheet with CExtResizablePropertyPage. However, the title and subtitle are not appearing. Please help.

Regards

Xiaoli Bi Aug 30, 2007 - 9:52 AM

Can you support me on the issue? I have 2 user license and 90 days supporting.

Xiaoli Bi Aug 27, 2007 - 8:04 PM

Here are some codes from my project:
CCalibratorResizablePropertySheet wizard( _T("Calibrator"));
wizard.SetSliceImageData(pImageData);
// add pages
CCalibrateRawImagePropertyPage page1(&wizard);
wizard.AddPage( &page1 );
CCalibrateCheckDICOMPropertyPage page2(&wizard);
wizard.AddPage( &page2 );
CCalibrateCropImagePropertyPage page3(&wizard);
wizard.AddPage( &page3 );
CCalibrateContourPropertyPage page4(&wizard);
wizard.AddPage( &page4 );
CCalibrateResultPropertyPage page5(&wizard);
wizard.AddPage( &page5 );

// comment this line and next lines to set simple tabbed mode (non-wizard)
wizard.SetWizardMode();

// these lines are fully available with MFC 7.0 or later only
     // comment them to set old classic wizard mode
     // leave them intact to use wizard 97 mode
     wizard.m_psh.dwSize = sizeof(wizard.m_psh);
     wizard.m_psh.dwFlags |= (PSH_WIZARD97 |PSH_WATERMARK |PSH_WIZARDHASFINISH);
     // comment the following line if the tiled watermark bitmap is not needed
     wizard.m_psh.pszbmWatermark = MAKEINTRESOURCE(ID_CALIBRATE_WIZARD_WATERMARK);
     //wizard.m_psh.hInstance = ::AfxGetInstanceHandle();
     page1.m_psp.dwFlags |= PSP_DEFAULT|PSP_USEHEADERTITLE|PSP_USEHEADERSUBTITLE;
     page1.m_psp.pszHeaderTitle = _T("Title of page 1");
     page1.m_psp.pszHeaderSubTitle = _T("Subtitle of page 1");
     page2.m_psp.dwFlags |= PSP_DEFAULT|PSP_USEHEADERTITLE|PSP_USEHEADERSUBTITLE;
     page2.m_psp.pszHeaderTitle = _T("Title of page 2");
     page2.m_psp.pszHeaderSubTitle = _T("Subtitle of page 2");

Xiaoli Bi Aug 27, 2007 - 7:59 PM

I am crazy for the same issue. Can you tell me how to fix it? I use the propertysheet in MFC extensition DLL project.

Technical Support Aug 31, 2007 - 10:18 AM

The disappearing page title bug is a 50% bug. It depends on the property sheet initialization sequence. It’s absent in our ResizablePropertySheet sample application while it may present in your project. The CExtResizablePropertySheet class needs to anchor its child window because this is needed by its resizable features and it needs to subclass child controls with Prof-UIS classes and re-paint its surface for theme skinning purposes. These are some differences between the CExtResizablePropertySheet class in Prof-UIS and the CPropertySheet class in MFC. The CPropertySheet class does not create the inner content of the property sheet. This is performed by the PropertySheet() Win32 API. So, we are using a delayed initialization in the CExtResizablePropertySheet class. That is why it is very important to initialize it exactly like you we do it in the ResizablePropertySheet sample.

Technical Support Aug 13, 2007 - 1:07 PM

We still did not receive enough information about the problem. Would you send us your project so we can check it?

M Priya Aug 13, 2007 - 4:46 PM

Hello,

I am having the following problems with Hyperlink and Property Sheets

1. Hyperlink has no hand cursor. Don’t know how to get it.

2. Property Sheet has no title or subtitle on following pages.

I have enclosed a project which demonstrates this (sent by email)

1. For compiling with just MFC (no ProfUIS), use the Build Configuration "Debug". Shows the title and the subtitle of the property page.

2. For compiling with ProfUIS, use the Build configuration "ProfUIS-Debug". Shows both problems listed above.

Thanks
Jay

Technical Support Aug 14, 2007 - 2:48 AM

You already replied your questions in other threads. Actually there is not enough information to find out what might be wrong. In fact, you simply say the problem exists and nothing else. Please send us your project demonstrating the problems or provide us with remote access to your desktop so we can help you.

Because there are no any problems with the hand cursor over hyperlink controls in our sample applications and there are no problems with titles in the ResizablePropertySheet sample. There must be something specific to your project.

M Priya Aug 14, 2007 - 1:32 PM

I sent a sample project which illustrates the problem clearly. Since there is no way to include stuff in the forum replies, I have sent it by email. Did you get it? Looks like you have not got it yet.

If there is not enough information, that is because it is nothing complicated. Just create a dialog box project from scratch, replace the dialog box with a property sheet/page wizard and using your classes, the title and subtitle are absent.

Please let me know if you haven’t received the sample by email.

Technical Support Aug 15, 2007 - 11:36 AM

We received your e-mail, fixed the problems in your project and sent a modified version of your project back. The e-mail was sent 3:27PM EST on 8/14/2007. We suspect this email may have been filtered out or got into your Junk E-mail folder. So please check this. We can upload this email on our web site and give you the link or send to some other email address if you provide it to us.

Technical Support Aug 14, 2007 - 1:33 PM

We have just sent you an email with the fixed project and our comments.