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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }
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(); }