Example #1
0
        internal ColorUIEditorCtrl()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            AddColoursToList(lstSystemColors, typeof(SystemColors), Color.Black);
            AddNamedColors();

            // create the custom control
            m_CustomCtrl = new ColorUIEditorCustomCtrl();

            m_CustomCtrl.Top  = 4;
            m_CustomCtrl.Left = 0;

            m_CustomCtrl.ColorPick += new EventHandler(CustomColorPick);

            // create the hexagon ctrl
            m_HexagonCtrl = new ColorUIEditorHexagonCtrl();

            m_HexagonCtrl.Top  = 8;
            m_HexagonCtrl.Left = 2 + m_CustomCtrl.Width;

            m_HexagonCtrl.ColorPick += new EventHandler(CustomColorPick);

            // create the color wheel control
            m_WheelCtrl      = new ColorUIEditorWheelCtrl();
            m_WheelCtrl.Dock = DockStyle.Fill;

            m_WheelCtrl.ColorChanged += new EventHandler(CustomColorPick);

            tabPage3.Controls.Add(m_WheelCtrl);
            tabPage4.Controls.Add(m_CustomCtrl);
            tabPage4.Controls.Add(m_HexagonCtrl);
        }
Example #2
0
		internal ColorUIEditorCtrl()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();
			
			AddColoursToList(lstSystemColors, typeof(SystemColors), Color.Black);
			AddNamedColors();
		
			// create the custom control
			m_CustomCtrl = new ColorUIEditorCustomCtrl();

			m_CustomCtrl.Top = 4;
			m_CustomCtrl.Left = 0;

			m_CustomCtrl.ColorPick += new EventHandler(CustomColorPick);

			// create the hexagon ctrl
			m_HexagonCtrl = new ColorUIEditorHexagonCtrl();

			m_HexagonCtrl.Top = 8;
			m_HexagonCtrl.Left = 2 + m_CustomCtrl.Width;

			m_HexagonCtrl.ColorPick += new EventHandler(CustomColorPick);

			// create the color wheel control
			m_WheelCtrl = new ColorUIEditorWheelCtrl();
			m_WheelCtrl.Dock = DockStyle.Fill;

			m_WheelCtrl.ColorChanged += new EventHandler(CustomColorPick);

			tabPage3.Controls.Add(m_WheelCtrl);			
			tabPage4.Controls.Add(m_CustomCtrl);
			tabPage4.Controls.Add(m_HexagonCtrl);
		}