private void InitializeComponent() { this._RunButton = new System.Windows.Forms.Button(); this._hScroll = new System.Windows.Forms.HScrollBar(); this._vScroll = new System.Windows.Forms.VScrollBar(); this._DrawPanel = new fyiReporting.RdlViewer.PageDrawing(); this.SuspendLayout(); // // _RunButton // this._RunButton.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this._RunButton.Location = new System.Drawing.Point(454, 14); this._RunButton.Name = "_RunButton"; this._RunButton.Size = new System.Drawing.Size(90, 23); this._RunButton.TabIndex = 1; this._RunButton.Text = "Run Report"; this._RunButton.UseVisualStyleBackColor = true; this._RunButton.Click += new System.EventHandler(this.ParametersViewClick); // // _hScroll // this._hScroll.Location = new System.Drawing.Point(242, 306); this._hScroll.Name = "_hScroll"; this._hScroll.Size = new System.Drawing.Size(80, 17); this._hScroll.TabIndex = 2; this._hScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.HorizontalScroll); // // _vScroll // this._vScroll.Enabled = false; this._vScroll.Location = new System.Drawing.Point(541, 142); this._vScroll.Name = "_vScroll"; this._vScroll.Size = new System.Drawing.Size(17, 80); this._vScroll.TabIndex = 3; this._vScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.VerticalScroll); // // _DrawPanel // this._DrawPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this._DrawPanel.Location = new System.Drawing.Point(95, 51); this._DrawPanel.Name = "_DrawPanel"; this._DrawPanel.Size = new System.Drawing.Size(353, 224); this._DrawPanel.TabIndex = 0; this._DrawPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPanelPaint); this._DrawPanel.Resize += new System.EventHandler(this.DrawPanelResize); this._DrawPanel.KeyDown += new System.Windows.Forms.KeyEventHandler(this.DrawPanelKeyDown); // // RdlViewer // this.Controls.Add(this._vScroll); this.Controls.Add(this._hScroll); this.Controls.Add(this._RunButton); this.Controls.Add(this._DrawPanel); this.Name = "RdlViewer"; this.Size = new System.Drawing.Size(558, 323); this.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RdlViewer)); this._RunButton = new System.Windows.Forms.Button(); this._hScroll = new System.Windows.Forms.HScrollBar(); this._vScroll = new System.Windows.Forms.VScrollBar(); this._DrawPanel = new fyiReporting.RdlViewer.PageDrawing(); this.SuspendLayout(); // // _RunButton // resources.ApplyResources(this._RunButton, "_RunButton"); this._RunButton.Name = "_RunButton"; this._RunButton.UseVisualStyleBackColor = true; this._RunButton.Click += new System.EventHandler(this.ParametersViewClick); // // _hScroll // resources.ApplyResources(this._hScroll, "_hScroll"); this._hScroll.Name = "_hScroll"; this._hScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.HorizontalScroll); // // _vScroll // resources.ApplyResources(this._vScroll, "_vScroll"); this._vScroll.Name = "_vScroll"; this._vScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.VerticalScroll); // // _DrawPanel // resources.ApplyResources(this._DrawPanel, "_DrawPanel"); this._DrawPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this._DrawPanel.Name = "_DrawPanel"; this._DrawPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPanelPaint); this._DrawPanel.KeyDown += new System.Windows.Forms.KeyEventHandler(this.DrawPanelKeyDown); this._DrawPanel.Resize += new System.EventHandler(this.DrawPanelResize); // // RdlViewer // resources.ApplyResources(this, "$this"); this.Controls.Add(this._vScroll); this.Controls.Add(this._hScroll); this.Controls.Add(this._RunButton); this.Controls.Add(this._DrawPanel); this.Name = "RdlViewer"; this.ResumeLayout(false); }
private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RdlViewer)); this._RunButton = new System.Windows.Forms.Button(); this._hScroll = new System.Windows.Forms.HScrollBar(); this._vScroll = new System.Windows.Forms.VScrollBar(); this._DrawPanel = new fyiReporting.RdlViewer.PageDrawing(); this.SuspendLayout(); // // _RunButton // resources.ApplyResources(this._RunButton, "_RunButton"); this._RunButton.Name = "_RunButton"; this._RunButton.UseVisualStyleBackColor = true; this._RunButton.Click += new System.EventHandler(this.ParametersViewClick); // // _hScroll // resources.ApplyResources(this._hScroll, "_hScroll"); this._hScroll.Name = "_hScroll"; this._hScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.HorizontalScroll); // // _vScroll // resources.ApplyResources(this._vScroll, "_vScroll"); this._vScroll.Name = "_vScroll"; this._vScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.VerticalScroll); // // _DrawPanel // this._DrawPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; resources.ApplyResources(this._DrawPanel, "_DrawPanel"); this._DrawPanel.Name = "_DrawPanel"; this._DrawPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPanelPaint); this._DrawPanel.KeyDown += new System.Windows.Forms.KeyEventHandler(this.DrawPanelKeyDown); this._DrawPanel.Resize += new System.EventHandler(this.DrawPanelResize); // // RdlViewer // this.Controls.Add(this._vScroll); this.Controls.Add(this._hScroll); this.Controls.Add(this._RunButton); this.Controls.Add(this._DrawPanel); this.Name = "RdlViewer"; resources.ApplyResources(this, "$this"); this.ResumeLayout(false); }
internal HitListEntry(PagePolygon pp, float x, float y, PageDrawing pd) { pi = pp; poly = new PointF[pp.Points.Length]; for (int i = 0; i < pp.Points.Length; i++) { poly[i].X = pd.PixelsX(pp.Points[i].X + x); poly[i].Y = pd.PixelsY(pp.Points[i].Y + y); } rect = RectangleF.Empty; }
public RdlViewer() { _SourceFileName = null; _SourceRdl = null; _Parameters = null; // parameters to run the report _pgs = null; // the pages of the report to view _loadFailed = false; _PageWidth = 0; _PageHeight = 0; _ReportDescription = null; _ReportAuthor = null; _ReportName = null; _zoom = -1; // force zoom to be calculated // Get our graphics DPI Graphics g = null; try { g = this.CreateGraphics(); DpiX = g.DpiX; DpiY = g.DpiY; } catch { DpiX = DpiY = 96; } finally { if (g != null) { g.Dispose(); } } _ScrollMode = ScrollModeEnum.Continuous; // Handle the controls _vScroll = new VScrollBar(); _vScroll.Scroll += new ScrollEventHandler(this.VerticalScroll); _vScroll.Enabled = false; // tooltip _vScrollToolTip = new ToolTip(); _vScrollToolTip.AutomaticDelay = 100; // .1 seconds _vScrollToolTip.AutoPopDelay = 1000; // 1 second _vScrollToolTip.ReshowDelay = 100; // .1 seconds _vScrollToolTip.InitialDelay = 10; // .01 seconds _vScrollToolTip.ShowAlways = false; _vScrollToolTip.SetToolTip(_vScroll, ""); _hScroll = new HScrollBar(); _hScroll.Scroll += new ScrollEventHandler(this.HorizontalScroll); _hScroll.Enabled = false; _DrawPanel = new PageDrawing(null); _DrawPanel.Paint += new PaintEventHandler(this.DrawPanelPaint); _DrawPanel.Resize += new EventHandler(this.DrawPanelResize); _DrawPanel.MouseWheel += new MouseEventHandler(DrawPanelMouseWheel); _DrawPanel.KeyDown += new KeyEventHandler(DrawPanelKeyDown); _RunButton = new Button(); _RunButton.Parent = this; _RunButton.Text = "Run Report"; _RunButton.Width = 90; _RunButton.FlatStyle = FlatStyle.Flat; _RunButton.Click += new System.EventHandler(ParametersViewClick); _WarningButton = new PictureBox(); _WarningButton.Parent = this; _WarningButton.Width = 15; _WarningButton.Height = 15; _WarningButton.Paint += new PaintEventHandler(_WarningButton_Paint); _WarningButton.Click += new System.EventHandler(WarningClick); ToolTip tip = new ToolTip(); tip.AutomaticDelay = 500; tip.ShowAlways = true; tip.SetToolTip(_WarningButton, "Click to see Report Warnings"); _ParameterPanel = new ScrollableControl(); this.Layout += new LayoutEventHandler(RdlViewer_Layout); this.SuspendLayout(); // Must be added in this order for DockStyle to work correctly this.Controls.Add(_DrawPanel); this.Controls.Add(_vScroll); this.Controls.Add(_hScroll); this.Controls.Add(_ParameterPanel); this.ResumeLayout(false); }
public RdlViewer() { _SourceFileName=null; _SourceRdl=null; _Parameters=null; // parameters to run the report _pgs=null; // the pages of the report to view _loadFailed=false; _PageWidth=0; _PageHeight=0; _ReportDescription=null; _ReportAuthor=null; _ReportName=null; _zoom=-1; // force zoom to be calculated // Get our graphics DPI Graphics g = null; try { g = this.CreateGraphics(); DpiX = g.DpiX; DpiY = g.DpiY; } catch { DpiX = DpiY = 96; } finally { if (g != null) g.Dispose(); } _ScrollMode = ScrollModeEnum.Continuous; // Handle the controls _vScroll = new VScrollBar(); _vScroll.Scroll += new ScrollEventHandler(this.VerticalScroll); _vScroll.Enabled = false; // tooltip _vScrollToolTip = new ToolTip(); _vScrollToolTip.AutomaticDelay = 100; // .1 seconds _vScrollToolTip.AutoPopDelay = 1000; // 1 second _vScrollToolTip.ReshowDelay = 100; // .1 seconds _vScrollToolTip.InitialDelay = 10; // .01 seconds _vScrollToolTip.ShowAlways = false; _vScrollToolTip.SetToolTip(_vScroll, ""); _hScroll = new HScrollBar(); _hScroll.Scroll += new ScrollEventHandler(this.HorizontalScroll); _hScroll.Enabled = false; _DrawPanel = new PageDrawing(null); _DrawPanel.Parent = this; _DrawPanel.Paint += new PaintEventHandler(this.DrawPanelPaint); _DrawPanel.Resize += new EventHandler(this.DrawPanelResize); _DrawPanel.MouseWheel +=new MouseEventHandler(DrawPanelMouseWheel); _DrawPanel.KeyDown += new KeyEventHandler(DrawPanelKeyDown); _RunButton = new Button(); _RunButton.Parent = this; _RunButton.Text = "Run Report"; _RunButton.Width = 90; _RunButton.FlatStyle = FlatStyle.Flat; _RunButton.Click += new System.EventHandler(ParametersViewClick); _WarningButton = new PictureBox(); _WarningButton.Parent = this; _WarningButton.Width = 15; _WarningButton.Height = 15; _WarningButton.Paint +=new PaintEventHandler(_WarningButton_Paint); _WarningButton.Click += new System.EventHandler(WarningClick); ToolTip tip = new ToolTip(); tip.AutomaticDelay = 500; tip.ShowAlways = true; tip.SetToolTip(_WarningButton, "Click to see Report Warnings"); _ParameterPanel = new ScrollableControl(); _FindCtl = new RdlViewerFind(); _FindCtl.Height = 27; _FindCtl.Parent = this; _FindCtl.Viewer = this; _FindCtl.Visible = false; this.Layout +=new LayoutEventHandler(RdlViewer_Layout); this.SuspendLayout(); // Must be added in this order for DockStyle to work correctly this.Controls.Add(_FindCtl); this.Controls.Add(_DrawPanel); this.Controls.Add(_vScroll); this.Controls.Add(_hScroll); this.Controls.Add(_ParameterPanel); this.ResumeLayout(false); }