Zoom bei Seitenwechsel
Mit diesem kleinen Script wird beim jeden Seitenwechsel die Seite auf die Fenstergröße von Eplan angepasst (gleiche Action, wie wenn man 3 drücken würde).
Vielen Dank an Nairolf für die Umsetzung!
PageChangeZoomAll_V2 (87)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | public class PageChangeZoomAll // ********************************************************************************* // Funktion: Ansicht "Ausschnitt ganze Seite" bei Seitenwechsel // ********************************************************************************* // Änderungshistorie: // 2010-08-04 nairolf Script erstellt // 2011-05-07 nairolf Erweiterung: Zoom bei Seitenwechsel bei Sprung zu Gegenstück // ********************************************************************************* { [DeclareEventHandler("onActionStart.String.XGedNextPageAction")] public bool MyEventHandlerFunction1(IEventParameter iEventParameter) { PageZoomAll(); return true; } [DeclareEventHandler("onActionStart.String.XGedPrevPageAction")] public bool MyEventHandlerFunction2(IEventParameter iEventParameter) { PageZoomAll(); return true; } [DeclareEventHandler("onActionStart.String.XPmPageOpenOnePage")] public bool MyEventHandlerFunction3(IEventParameter iEventParameter) { PageZoomAll(); return true; } [DeclareEventHandler("NotifyPageOpened")] public bool MyEventHandlerFunction4(IEventParameter iEventParameter) { PageZoomAll(); return true; } public void PageZoomAll() { CommandLineInterpreter oCLI = new CommandLineInterpreter(); oCLI.Execute("XGedZoomAllAction"); } } |

