Inheritance: System.Windows.Forms.Control
示例#1
0
        public FreeLinePropertyControl()
        {
            AddLabel("Width");

            numControl               = AddNumControl(1, 5, 1, 40);
            numControl.Value         = FreeLine.penSizeGlobal;
            numControl.ValueChanged += numControl_ValueChanged;

            AddLabel("Color");

            colorControl               = AddColorControl();
            colorControl.Color         = FreeLine.penColorGlobal;
            colorControl.ColorChanged += colorControl_ValueChanged;

            AddLabel("Style");

            lineDD = new TpComboBoxLine();
            AddControl(lineDD, 100);


            lineDD.LineStyles = TPLineStyle.Solid | TPLineStyle.Dot | TPLineStyle.Dash | TPLineStyle.DashDot |
                                TPLineStyle.DashDotDot;

            lineDD.SelectItem(FreeLine.penStyleGlobal);

            lineDD.SelectedIndexChanged += lineDD_ValueChanged;
        }
示例#2
0
        public LinePropertyControl()
        {
            AddLabel("Width");

            numControl               = AddNumControl(1, 10, 1, 40);
            numControl.Value         = Line.penSizeGlobal;
            numControl.ValueChanged += numControl_ValueChanged;

            AddLabel("Color");

            colorControl               = AddColorControl();
            colorControl.Color         = Line.penColorGlobal;
            colorControl.ColorChanged += colorControl_ValueChanged;

            AddLabel("Style");


            AddControl(lineDD, 150);

            lineDD.LineStyles = TPLineStyle.Arrow | TPLineStyle.Solid | TPLineStyle.Dot | TPLineStyle.Dash | TPLineStyle.DashDot |
                                TPLineStyle.DashDotDot;

            lineDD.SelectItem(Line.penStyleGlobal);
            lineDD.SelectedIndexChanged += lineDD_ValueChanged;
        }
        public ChangeColorControl AddColorControl()
        {
            var colorBorderControl = new ChangeColorControl {
                Location = new Point(_controlOffset, Y_OFFSET22)
            };

            Controls.Add(colorBorderControl);
            _controlOffset += 30;
            return(colorBorderControl);
        }
示例#4
0
        public BoxPropertyControl()
        {
            AddLabel("Border Width");

            numControl               = AddNumControl(1, 5, 1, 40);
            numControl.Value         = Box.borderSizeGlobal;
            numControl.ValueChanged += numControl_ValueChanged;

            AddLabel("Border Color");

            colorBorderControl               = AddColorControl();
            colorBorderControl.Color         = Box.borderColorGlobal;
            colorBorderControl.ColorChanged += colorControl_ValueChanged;
        }
        public DecoratedTextBoxEditModePropertyControl()
        {
            _fontFamilies = new FontFamilyCollection();

            _colorControl = AddColorControl();

            BindFontFamilyDropDown();

            BindFotnSizeDropDown();

            BindAlignmentDictionary();

            BindStyleDictionary();

            FillControl(true);

            InitEvents();
        }
        public SelectionToolPropertyControl()
        {
            AddLabel("Width");

            numControl               = AddNumControl(1, 5, 1, 40);
            numControl.Value         = Line.penSizeGlobal;
            numControl.ValueChanged += numControl_ValueChanged;

            AddLabel("Color");

            colorControl               = AddColorControl();
            colorControl.Color         = Line.penColorGlobal;
            colorControl.ColorChanged += colorControl_ValueChanged;

            AddLabel("Style");

            AddControl(lineDD, 100);
            lineDD.SelectedIndexChanged += lineDD_ValueChanged;
        }
		public SelectionToolPropertyControl()
		{
			AddLabel("Width");

			numControl = AddNumControl(1, 5, 1, 40);
			numControl.Value = Line.penSizeGlobal;
			numControl.ValueChanged += numControl_ValueChanged;

			AddLabel("Color");

			colorControl = AddColorControl();
			colorControl.Color = Line.penColorGlobal;
			colorControl.ColorChanged += colorControl_ValueChanged;

			AddLabel("Style");

			AddControl(lineDD, 100);
			lineDD.SelectedIndexChanged += lineDD_ValueChanged;
		}
		public DecoratedTextBoxPropertyControl()
		{
			AddLabel("Border Width");

			numControl = AddNumControl(1, 5, 1, 40);
			numControl.Value = DecoratedTextBox.borderSizeGlobal;
			numControl.ValueChanged += numControl_ValueChanged;

			AddLabel("Border Color");

			colorBorderControl = AddColorControl();
			colorBorderControl.Color = DecoratedTextBox.borderColorGlobal;
			colorBorderControl.ColorChanged += colorControl_ValueChanged;

			AddLabel("Background Color");

			colorBackControl = AddColorControl();
			colorBackControl.Color = DecoratedTextBox.backColorGlobal;
			colorBackControl.ColorChanged += colorControl_ValueChanged2;
		}
        public DecoratedTextBoxPropertyControl()
        {
            AddLabel("Border Width");

            numControl               = AddNumControl(1, 5, 1, 40);
            numControl.Value         = DecoratedTextBox.borderSizeGlobal;
            numControl.ValueChanged += numControl_ValueChanged;

            AddLabel("Border Color");

            colorBorderControl               = AddColorControl();
            colorBorderControl.Color         = DecoratedTextBox.borderColorGlobal;
            colorBorderControl.ColorChanged += colorControl_ValueChanged;

            AddLabel("Background Color");

            colorBackControl               = AddColorControl();
            colorBackControl.Color         = DecoratedTextBox.backColorGlobal;
            colorBackControl.ColorChanged += colorControl_ValueChanged2;
        }
		public ChangeColorControl AddColorControl()
		{
			var colorBorderControl = new ChangeColorControl {Location = new Point(_controlOffset, Y_OFFSET22)};
			Controls.Add(colorBorderControl);
			_controlOffset += 30;
			return colorBorderControl;
		}
示例#11
0
		public BoxPropertyControl()
		{
			AddLabel("Border Width");

			numControl = AddNumControl(1, 5, 1, 40);
			numControl.Value = Box.borderSizeGlobal;
			numControl.ValueChanged += numControl_ValueChanged;

			AddLabel("Border Color");

			colorBorderControl = AddColorControl();
			colorBorderControl.Color = Box.borderColorGlobal;
			colorBorderControl.ColorChanged += colorControl_ValueChanged;
		}
示例#12
0
		public ArrowPropertyControl()
		{
			AddLabel("Width");

			numControl = AddNumControl(1, 5, 1, 40);
			numControl.Value = Line.penSizeGlobal;
			numControl.ValueChanged += numControl_ValueChanged;

			AddLabel("Color");

			colorControl = AddColorControl();
			colorControl.Color = Line.penColorGlobal;
			colorControl.ColorChanged += colorControl_ValueChanged;

			AddLabel("Style");


			AddControl(lineDD, 100);

			lineDD.LineStyles = TPLineStyle.Solid | TPLineStyle.Dot | TPLineStyle.Dash | TPLineStyle.DashDot |
			                    TPLineStyle.DashDotDot;			

			lineDD.SelectItem(Line.penStyleGlobal);

			lineDD.SelectedIndexChanged += lineDD_ValueChanged;
		}
		public DecoratedTextBoxEditModePropertyControl()
		{
			_fontFamilies = new FontFamilyCollection();

			_colorControl = AddColorControl();

			BindFontFamilyDropDown();

			BindFotnSizeDropDown();

			BindAlignmentDictionary();

			BindStyleDictionary();

			FillControl(true);

			InitEvents();
		}