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 » Print Preview Collapse All
Subject Author Date
Anil Siddhpura Nov 18, 2008 - 9:20 PM

I done the print preview using grid as given in sample application.

 

Now in print preview, I want to enlarge the buttons size of all buttons exist in toolbar for touch screen.

 

I also want to add page setup button for printer selection. and How can I get the close event ?

Technical Support Dec 26, 2008 - 2:03 PM

We can regard your question as a feature request and implement several scaled versions of a toolbar inside the preview window. For instance, the theme switcher toolbar in our samples features several scaled versions.

The Page Setup and direct printing buttons are supported by the preview window but we removed them due to unresolved yet MFC issue which can cause the application to crash. You can comment out the following line of code in the CExtPPVW_Printable::OnInitializePrintPreviewToolBar() method and the Options button will appear in the toolbar:

   m_pWndPP->m_pPpvWndToolBar->RemoveButton( m_pWndPP->m_pPpvWndToolBar->CommandToIndex( ID_EXT_PPV_SETUP ), FALSE );

This button allows you to change Printer, its options and/or paper orientation without exiting the preview window. There crash may occur on closing the printer options dialog in the Unicode applications based on MFC 4.2 only. That was the reason for us to hide this button. In most cases this button works well and even the preview window generates pages on-the-fly.

The preview window closing event can be handled by overriding the CExtPPVW_Printable::OnEndPrintPreview() virtual method.