Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I change the paper size/resolution/page orientation/etc. when printing using the XawPrintShell/XmPrintShell print shells ?

0
Posted

Can I change the paper size/resolution/page orientation/etc. when printing using the XawPrintShell/XmPrintShell print shells ?

0

Yes, it is allowed to change the page attributes in the page setup callback (e.g. XawNpageSetupCallback or XmNpageSetupCallback) since this callback is always called before XpStartPage (for the 2nd and following pages: between XpEndPage and XpStartPage). Note that changing page attributes will automagically update the print shell widget size (e.g. attributes XawNminX, XawNminY, XawNmaxX and XawNmaxX (XawPrintShell) or XmNminX, XmNminY, XmNmaxX and XmNmaxX (XmPrintShell) are updated based on events send by the Xp Extension and then the print shell is resized based on the new values (XawPrintShell is slightly more flexible since the size mode can be defined using the XawNlayoutMode attribute)).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123