protected override Control CreateViewerControl() { var control = new ViewerPane(this, false); #if DESKTOP if (this.Document.EditMode) { control.Viewer.Cursor = new Cursor(CursorType.Crosshair); } #endif control.SizeChanged += delegate { //Console.WriteLine ("What the f!"); //if (BGI != null) // BGI.ResetGraphics (); }; /*if (Generator.IsMac) { * // ugh * control.Scroll += delegate { * if (BGI != null) * BGI.ResetGraphics (); * }; * }*/ return(control); }
public AllowGrow(ViewerPane viewerPane) { this.ViewerPane = viewerPane; this.ID = ActionID; this.MenuText = "&Expand to Fit"; this.ToolTip = "Make the document expand to fit the view if it is smaller"; }
public FitHeight(ViewerPane viewerPane) { this.ViewerPane = viewerPane; this.ID = ActionID; this.MenuText = "Fit &Height"; this.ToolTip = "Fit the document to the height of the view"; }
public FitWidth(ViewerPane viewerPane) { this.ViewerPane = viewerPane; this.ID = ActionID; this.MenuText = "Fit &Width"; this.ToolTip = "Fit the document to the width of the view"; }
public Autoscroll(ViewerPane viewerPane) { this.ViewerPane = viewerPane; base.ID = ActionID; this.MenuText = "Auto&scroll"; this.ToolTip = "Automaticaly scroll when viewing"; this.Checked = ViewerPane.ViewHandler.Document.Info.AutoScroll; }