How to update zoomPercentage edit control
For reports which are MDIChild type windows I read the zoomPercentage by
if ((MDIChildren[0].Owner as TppReport).inheritsFrom(TppReport)) then
myZP := TppViewer(TppReport(MDIChildren[0].Owner as
TppReport).PreviewForm.Viewer).zoomPercentage;
I change the zoomPercentage in code using
if ((MDIChildren[0].Owner as TppReport).inheritsFrom(TppReport)) then
TppViewer(TppReport(MDIChildren[0].Owner as
TppReport).PreviewForm.Viewer).zoomPercentage := newZP;
After this line the zoomPercentage edit control still show the previous
zoomPercentage.
How can I force theZP edit contro to update itself?
Thanks
if ((MDIChildren[0].Owner as TppReport).inheritsFrom(TppReport)) then
myZP := TppViewer(TppReport(MDIChildren[0].Owner as
TppReport).PreviewForm.Viewer).zoomPercentage;
I change the zoomPercentage in code using
if ((MDIChildren[0].Owner as TppReport).inheritsFrom(TppReport)) then
TppViewer(TppReport(MDIChildren[0].Owner as
TppReport).PreviewForm.Viewer).zoomPercentage := newZP;
After this line the zoomPercentage edit control still show the previous
zoomPercentage.
How can I force theZP edit contro to update itself?
Thanks
This discussion has been closed.
Comments
The TppPreview object gets notified in the TppViewer's DoOnPageChange
trigger, so this is a good approach to take in your case.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com