示例#1
0
                public ScribblePanel(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;
                    owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                    this.Location    = location;
                    this.Size        = size;
                    this.TabIndex    = tabIndex;
                    this.Name        = "ScribbleArea";
                    this.BackColor   = Color.White;
                    this.BorderStyle = BorderStyle.FixedSingle;

                    // Add the controls
                    this.Controls.Add(new ScribbleClearButton(this, new Point(40, 168), new Size(80, 23), 0));

                    this.RealTimeStylus          = new RealTimeStylus(this);
                    this.DynamicRenderer         = new DynamicRenderer(this);
                    this.DynamicRenderer.Enabled = true;
                    //this.DynamicRenderer.EnableDataCache = true;
                    this.RealTimeStylus.SyncPluginCollection.Add(this.DynamicRenderer);
                    this.RealTimeStylus.Enabled = true;

                    this.ResumeLayout();
                }
示例#2
0
                public ColorChangeButton(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;
                    owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                    this.Location  = location;
                    this.Size      = size;
                    this.TabIndex  = tabIndex;
                    this.Name      = "ColorChangeButton";
                    this.FlatStyle = FlatStyle.Flat;

                    this.ResumeLayout();
                }
示例#3
0
                public HeightSelectorLabel(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;

                    this.FlatStyle = FlatStyle.System;
                    this.Location  = location;
                    this.Size      = size;
                    this.TabIndex  = tabIndex;
                    this.Name      = "HeightSelectorLabel";
                    this.Text      = Strings.PenHeight;

                    this.ResumeLayout();
                }
示例#4
0
            public OKButton(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.FlatStyle = FlatStyle.System;
                this.Font      = ViewerStateModel.StringFont;
                this.Location  = location;
                this.Size      = size;
                this.TabIndex  = tabIndex;
                this.Name      = "OKButton";
                this.Text      = Strings.OK;
                this.Enabled   = true;

                this.ResumeLayout();
            }
示例#5
0
                public RectangleShapeButton(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;
                    owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                    this.Location = location;
                    this.Size     = size;
                    this.TabIndex = tabIndex;
                    // this.ImageIndex = 11;
                    // this.ImageList = this.imageList40;
                    this.Name      = "RectangleShapeButton";
                    this.Text      = Strings.PenSquareShape;
                    this.FlatStyle = FlatStyle.Flat;

                    this.ResumeLayout();
                }
示例#6
0
                public HeightSelector(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;
                    owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                    int height = (int)(this.Owner.DrawingAttributes.Height);

                    this.Location      = location;
                    this.Size          = size;
                    this.TabIndex      = tabIndex;
                    this.Name          = "HeightSelector";
                    this.LargeChange   = 50;
                    this.Maximum       = Math.Max(DEFAULT_MAX_HEIGHT, height);
                    this.TickFrequency = this.Maximum / 8;
                    this.Value         = height;

                    this.ResumeLayout();
                }
示例#7
0
            public PenColorGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.FlatStyle = FlatStyle.System;
                this.Font      = ViewerStateModel.StringFont;
                this.Location  = location;
                this.Size      = size;
                this.TabIndex  = tabIndex;
                this.Name      = "PenColorGroupBox";
                this.TabStop   = false;
                this.Text      = Strings.PenCustomColor;
                this.Enabled   = true;

                // Add the controls
                this.Controls.Add(new ColorChangeButton(this.Owner, new Point(16, 16), new Size(132, 23), 1));

                this.ResumeLayout();
            }
示例#8
0
            public ScribbleGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.FlatStyle = FlatStyle.System;
                this.Font      = ViewerStateModel.StringFont;
                this.Location  = location;
                this.Size      = size;
                this.TabIndex  = tabIndex;
                this.Name      = "ScribbleGroupBox";
                this.TabStop   = false;
                this.Text      = Strings.ScribbleArea;
                this.Enabled   = true;

                // Add the controls
                this.Controls.Add(new ScribblePanel(this.Owner, new Point(8, 16), new Size(128, 200), 0));

                this.ResumeLayout();
            }
示例#9
0
            public PenShapeGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.Font     = ViewerStateModel.StringFont;
                this.Location = location;
                this.Size     = size;
                this.TabIndex = tabIndex;
                this.Name     = "PenShapeGroupBox";
                this.TabStop  = false;
                this.Text     = Strings.PenShape;
                this.Enabled  = true;

                // Add the controls
                this.Controls.Add(new RoundShapeButton(this.Owner, new Point(6, 16), new Size(75, 40), 0));
                this.Controls.Add(new RectangleShapeButton(this.Owner, new Point(83, 16), new Size(85, 40), 1));

                this.ResumeLayout();
            }
示例#10
0
            public PenTypeGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.Owner = owner;
                this.SuspendLayout();

                this.FlatStyle = FlatStyle.System;
                this.Font      = ViewerStateModel.StringFont;
                this.Location  = location;
                this.Size      = size;
                this.TabIndex  = tabIndex;
                this.Name      = "PenTypeGroupBox";
                this.TabStop   = false;
                this.Text      = Strings.PenType;
                this.Enabled   = true;

                // Add the controls
                this.Controls.Add(new PenButton(this.Owner, new Point(3, 16), new Size(74, 40), 0));
                this.Controls.Add(new HighlighterButton(this.Owner, new Point(79, 16), new Size(92, 40), 1));

                this.ResumeLayout();
            }
示例#11
0
            public TipPropertiesGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.FlatStyle = FlatStyle.System;
                this.Font      = ViewerStateModel.StringFont;
                this.Location  = location;
                this.Size      = size;
                this.TabIndex  = tabIndex;
                this.Name      = "TipPropertiesGroupBox";
                this.TabStop   = false;
                this.Text      = Strings.PenTip;
                this.Enabled   = true;

                // Add the controls
                this.Controls.Add(new WidthSelectorLabel(this.Owner, new Point(16, 16), new Size(80, 16), 0));
                this.Controls.Add(new WidthSelector(this.Owner, new Point(8, 32), new Size(144, 45), 1));
                this.Controls.Add(new HeightSelectorLabel(this.Owner, new Point(16, 80), new Size(80, 16), 2));
                this.Controls.Add(new HeightSelector(this.Owner, new Point(8, 96), new Size(144, 45), 3));

                this.ResumeLayout();
            }
示例#12
0
            public UndoChangesButton(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.DefaultWidth           = owner.DrawingAttributes.Width;
                this.DefaultHeight          = owner.DrawingAttributes.Height;
                this.DefaultColor           = owner.DrawingAttributes.Color;
                this.DefaultPenTip          = owner.DrawingAttributes.PenTip;
                this.DefaultTransparency    = owner.DrawingAttributes.Transparency;
                this.DefaultRasterOperation = owner.DrawingAttributes.RasterOperation;

                this.SuspendLayout();
                this.Owner = owner;
                owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                this.FlatStyle = FlatStyle.System;
                this.Font      = ViewerStateModel.StringFont;
                this.Location  = location;
                this.Size      = size;
                this.TabIndex  = tabIndex;
                this.Name      = "UndoChangesButton";
                this.Text      = Strings.UndoChanges;
                this.Enabled   = true;

                this.ResumeLayout();
            }
示例#13
0
            public OKButton(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.FlatStyle = FlatStyle.System;
                this.Font = ViewerStateModel.StringFont;
                this.Location = location;
                this.Size = size;
                this.TabIndex = tabIndex;
                this.Name = "OKButton";
                this.Text = Strings.OK;
                this.Enabled = true;

                this.ResumeLayout();
            }
示例#14
0
                public ColorChangeButton(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;
                    owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                    this.Location = location;
                    this.Size = size;
                    this.TabIndex = tabIndex;
                    this.Name = "ColorChangeButton";
                    this.FlatStyle = FlatStyle.Flat;

                    this.ResumeLayout();
                }
示例#15
0
            public PenShapeGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.Font = ViewerStateModel.StringFont;
                this.Location = location;
                this.Size = size;
                this.TabIndex = tabIndex;
                this.Name = "PenShapeGroupBox";
                this.TabStop = false;
                this.Text = Strings.PenShape;
                this.Enabled = true;

                // Add the controls
                this.Controls.Add(new RoundShapeButton(this.Owner, new Point(6, 16), new Size(75, 40), 0));
                this.Controls.Add(new RectangleShapeButton(this.Owner, new Point(83, 16), new Size(85, 40), 1));

                this.ResumeLayout();
            }
示例#16
0
            public PenTypeGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.Owner = owner;
                this.SuspendLayout();

                this.FlatStyle = FlatStyle.System;
                this.Font = ViewerStateModel.StringFont;
                this.Location = location;
                this.Size = size;
                this.TabIndex = tabIndex;
                this.Name = "PenTypeGroupBox";
                this.TabStop = false;
                this.Text = Strings.PenType;
                this.Enabled = true;

                // Add the controls
                this.Controls.Add(new PenButton(this.Owner, new Point(3, 16), new Size(74, 40), 0));
                this.Controls.Add(new HighlighterButton(this.Owner, new Point(79, 16), new Size(92, 40), 1));

                this.ResumeLayout();
            }
示例#17
0
                public PenButton(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;
                    owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                    this.Location = location;
                    this.Size = size;
                    this.TabIndex = tabIndex;
                    // this.ImageIndex = 11;
                    // this.ImageList = this.imageList40;
                    this.Name = "PenButton";
                    this.Text = Strings.Pen;
                    this.FlatStyle = FlatStyle.Flat;

                    this.ResumeLayout();
                }
示例#18
0
            public ScribbleGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.FlatStyle = FlatStyle.System;
                this.Font = ViewerStateModel.StringFont;
                this.Location = location;
                this.Size = size;
                this.TabIndex = tabIndex;
                this.Name = "ScribbleGroupBox";
                this.TabStop = false;
                this.Text = Strings.ScribbleArea;
                this.Enabled = true;

                // Add the controls
                this.Controls.Add(new ScribblePanel(this.Owner, new Point(8, 16), new Size(128, 200), 0));

                this.ResumeLayout();
            }
示例#19
0
                public ScribblePanel(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;
                    owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                    this.Location = location;
                    this.Size = size;
                    this.TabIndex = tabIndex;
                    this.Name = "ScribbleArea";
                    this.BackColor = Color.White;
                    this.BorderStyle = BorderStyle.FixedSingle;

                    // Add the controls
                    this.Controls.Add(new ScribbleClearButton(this, new Point(40, 168), new Size(80, 23), 0));

                    this.RealTimeStylus = new RealTimeStylus(this);
                    this.DynamicRenderer = new DynamicRenderer(this);
                    this.DynamicRenderer.Enabled = true;
                    //this.DynamicRenderer.EnableDataCache = true;
                    this.RealTimeStylus.SyncPluginCollection.Add(this.DynamicRenderer);
                    this.RealTimeStylus.Enabled = true;

                    this.ResumeLayout();
                }
示例#20
0
            public TipPropertiesGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.FlatStyle = FlatStyle.System;
                this.Font = ViewerStateModel.StringFont;
                this.Location = location;
                this.Size = size;
                this.TabIndex = tabIndex;
                this.Name = "TipPropertiesGroupBox";
                this.TabStop = false;
                this.Text = Strings.PenTip;
                this.Enabled = true;

                // Add the controls
                this.Controls.Add(new WidthSelectorLabel(this.Owner, new Point(16, 16), new Size(80, 16), 0));
                this.Controls.Add(new WidthSelector(this.Owner, new Point(8, 32), new Size(144, 45), 1));
                this.Controls.Add(new HeightSelectorLabel(this.Owner, new Point(16, 80), new Size(80, 16), 2));
                this.Controls.Add(new HeightSelector(this.Owner, new Point(8, 96), new Size(144, 45), 3));

                this.ResumeLayout();
            }
示例#21
0
                public WidthSelector(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;
                    owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                    int width = (int)(this.Owner.DrawingAttributes.Width);
                    this.Location = location;
                    this.Size = size;
                    this.TabIndex = tabIndex;
                    this.Name = "WidthSelector";
                    this.LargeChange = 50;
                    this.Maximum = Math.Max(DEFAULT_MAX_WIDTH, width);
                    this.TickFrequency = this.Maximum / 8;
                    this.Value = width;

                    this.ResumeLayout();
                }
示例#22
0
            public PenColorGroupBox(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.SuspendLayout();
                this.Owner = owner;

                this.FlatStyle = FlatStyle.System;
                this.Font = ViewerStateModel.StringFont;
                this.Location = location;
                this.Size = size;
                this.TabIndex = tabIndex;
                this.Name = "PenColorGroupBox";
                this.TabStop = false;
                this.Text = Strings.PenCustomColor;
                this.Enabled = true;

                // Add the controls
                this.Controls.Add(new ColorChangeButton(this.Owner, new Point(16, 16), new Size(132, 23), 1));

                this.ResumeLayout();
            }
示例#23
0
            public UndoChangesButton(PenPropertiesPage owner, Point location, Size size, int tabIndex)
            {
                this.DefaultWidth = owner.DrawingAttributes.Width;
                this.DefaultHeight = owner.DrawingAttributes.Height;
                this.DefaultColor = owner.DrawingAttributes.Color;
                this.DefaultPenTip = owner.DrawingAttributes.PenTip;
                this.DefaultTransparency = owner.DrawingAttributes.Transparency;
                this.DefaultRasterOperation = owner.DrawingAttributes.RasterOperation;

                this.SuspendLayout();
                this.Owner = owner;
                owner.DrawingAttributesChanged += new EventHandler(this.OnDrawingAttributesChanged);

                this.FlatStyle = FlatStyle.System;
                this.Font = ViewerStateModel.StringFont;
                this.Location = location;
                this.Size = size;
                this.TabIndex = tabIndex;
                this.Name = "UndoChangesButton";
                this.Text = Strings.UndoChanges;
                this.Enabled = true;

                this.ResumeLayout();
            }
示例#24
0
                public WidthSelectorLabel(PenPropertiesPage owner, Point location, Size size, int tabIndex)
                {
                    this.SuspendLayout();
                    this.Owner = owner;

                    this.FlatStyle = FlatStyle.System;
                    this.Location = location;
                    this.Size = size;
                    this.TabIndex = tabIndex;
                    this.Name = "WidthSelectorLabel";
                    this.Text = Strings.PenWidth;

                    this.ResumeLayout();
                }