Beispiel #1
0
        // Methods
        internal PrintDialog(ItopVector.DrawArea.DrawArea vcontrol)
        {
            this.components = null;
            this.vectorControl = vcontrol;
            this.pageSetting =  vcontrol.PageSettings;
            this.pageSetupdlg=new PageSetupDialog();
            this.pageSetupdlg.PageSettings=this.pageSetting;
            this.margin = 10;
            this.printdoc = new PrintDocument();
            this.pos = Point.Empty;
            this.scalex = 1f;
            this.scaley = 1f;
            this.startPoint = Point.Empty;
            this.oriPoint = Point.Empty;
            this.InitializeComponent();

            this.printdoc.PrintPage += new PrintPageEventHandler(this.printdoc_PrintPage);

            this.label8.Cursor = SpecialCursors.handCurosr;
            this.CalculateScale();
        }
Beispiel #2
0
        // Methods
        internal PrintDialog(ItopVector.DrawArea.DrawArea vcontrol)
        {
            this.components                = null;
            this.vectorControl             = vcontrol;
            this.pageSetting               = vcontrol.PageSettings;
            this.pageSetupdlg              = new PageSetupDialog();
            this.pageSetupdlg.PageSettings = this.pageSetting;
            this.margin     = 10;
            this.printdoc   = new PrintDocument();
            this.pos        = Point.Empty;
            this.scalex     = 1f;
            this.scaley     = 1f;
            this.startPoint = Point.Empty;
            this.oriPoint   = Point.Empty;
            this.InitializeComponent();

            this.printdoc.PrintPage += new PrintPageEventHandler(this.printdoc_PrintPage);

            this.label8.Cursor = SpecialCursors.handCurosr;
            this.CalculateScale();
        }
Beispiel #3
0
 // Methods
 public Viewer()
 {
     this.components = null;
     this.svgDocument = null;
     this.onlyDrawCurrent = false;
     this.margin = new SizeF(500f, 500f);
     this.virtualTop = 0f;
     this.virtualLeft = 0f;
     this.scale = 1f;
     this.selectpath = new GraphicsPath();
     this.selectMatrix = new Matrix();
     this.elementList = new SvgElementCollection();
     this.selectChanged = false;
     this.changeelements = new SvgElementCollection();
     this.drawArea = null;
     this.oldselectPoint = PointF.Empty;
     this.Bouns = new PointF[8];
     this.InitializeComponent();
     //            base.SetStyle(ControlStyles.DoubleBuffer | (ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint), true);
     base.SetStyle(ControlStyles.DoubleBuffer | (ControlStyles.AllPaintingInWmPaint | (ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint)), true);
     //			this.BackColor = Color.Red;
 }
Beispiel #4
0
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ItopVectorControl));
            this.drawArea1 = new ItopVector.DrawArea.DrawArea();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
            this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
            this.SuspendLayout();
            //
            // plDrawArea
            //
            //			this.plDrawArea.Controls.Add(this.drawArea1);
            //			this.plDrawArea.Dock = System.Windows.Forms.DockStyle.Fill;
            //			this.plDrawArea.DockPadding.All = 1;
            //			this.plDrawArea.Location = new System.Drawing.Point(0, 0);
            //			this.plDrawArea.Name = "plDrawArea";
            //			this.plDrawArea.Size = new System.Drawing.Size(672, 496);
            //			this.plDrawArea.TabIndex = 2;
            //			this.plDrawArea.Paint += new System.Windows.Forms.PaintEventHandler(this.splitter1_Paint);
            //
            // drawArea1
            //
            //this.drawArea1.BackColor = Color.FromArgb(100,100,100);
            this.drawArea1.BackColor = Color.FromArgb(144,153,174);
            this.drawArea1.CenterPoint = ((System.Drawing.PointF)(resources.GetObject("drawArea1.CenterPoint")));
            this.drawArea1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.drawArea1.GridSize = ((System.Drawing.SizeF)(resources.GetObject("drawArea1.GridSize")));
            this.drawArea1.Location = new System.Drawing.Point(1, 1);
            this.drawArea1.Name = "drawArea1";
            this.drawArea1.Operation = ToolOperation.Select;
            this.drawArea1.PreGraph = null;
            this.drawArea1.ScaleUnit = 1F;
            this.drawArea1.ShowGrid = true;
            this.drawArea1.ShowGuides = false;
            this.drawArea1.ShowRule = true;

            this.drawArea1.Size = new System.Drawing.Size(670, 494);
            this.drawArea1.SVGDocument = null;
            this.drawArea1.TabIndex = 1;
            this.drawArea1.VirtualLeft = 0F;
            this.drawArea1.VirtualTop = 0F;
            //
            // timer1
            //
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            //
            // openFileDialog1
            //
            this.openFileDialog1.Filter = "SVG�ļ�|*.svg";
            //
            // saveFileDialog1
            //
            this.saveFileDialog1.Filter = "SVG�ļ�|*.svg";
            //
            // ItopVectorControl
            //
            this.Controls.Add(this.drawArea1);
            this.Name = "ItopVectorControl";
            this.Size = new System.Drawing.Size(672, 496);
            this.ResumeLayout(false);
        }