Example #1
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.imageComboBox = new Ecell.IDE.Plugins.PathwayWindow.UIComponent.ImageComboBox();
     this.SuspendLayout();
     //
     // imageComboBox
     //
     this.imageComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None;
     this.imageComboBox.Dock = System.Windows.Forms.DockStyle.Fill;
     this.imageComboBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.imageComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
     this.imageComboBox.FormattingEnabled = true;
     this.imageComboBox.Items.AddRange(new object[] {
     "AliceBlue",
     "AntiqueWhite",
     "Aqua",
     "Aquamarine",
     "Azure",
     "Beige",
     "Bisque",
     "Black",
     "BlanchedAlmond",
     "Blue",
     "BlueViolet",
     "Brown",
     "BurlyWood",
     "CadetBlue",
     "Chartreuse",
     "Chocolate",
     "Coral",
     "CornflowerBlue",
     "Cornsilk",
     "Crimson",
     "Cyan",
     "DarkBlue",
     "DarkCyan",
     "DarkGoldenrod",
     "DarkGray",
     "DarkGreen",
     "DarkKhaki",
     "DarkMagenta",
     "DarkOliveGreen",
     "DarkOrange",
     "DarkOrchid",
     "DarkRed",
     "DarkSalmon",
     "DarkSeaGreen",
     "DarkSlateBlue",
     "DarkSlateGray",
     "DarkTurquoise",
     "DarkViolet",
     "DeepPink",
     "DeepSkyBlue",
     "DimGray",
     "DodgerBlue",
     "Firebrick",
     "FloralWhite",
     "ForestGreen",
     "Fuchsia",
     "Gainsboro",
     "GhostWhite",
     "Gold",
     "Goldenrod",
     "Gray",
     "Green",
     "GreenYellow",
     "Honeydew",
     "HotPink",
     "IndianRed",
     "Indigo",
     "Ivory",
     "Khaki",
     "Lavender",
     "LavenderBlush",
     "LawnGreen",
     "LemonChiffon",
     "LightBlue",
     "LightCoral",
     "LightCyan",
     "LightGoldenrodYellow",
     "LightGray",
     "LightGreen",
     "LightPink",
     "LightSalmon",
     "LightSeaGreen",
     "LightSkyBlue",
     "LightSlateGray",
     "LightSteelBlue",
     "LightYellow",
     "Lime",
     "LimeGreen",
     "Linen",
     "Magenta",
     "Maroon",
     "MediumAquamarine",
     "MediumBlue",
     "MediumOrchid",
     "MediumPurple",
     "MediumSeaGreen",
     "MediumSlateBlue",
     "MediumSpringGreen",
     "MediumTurquoise",
     "MediumVioletRed",
     "MidnightBlue",
     "MintCream",
     "MistyRose",
     "Moccasin",
     "NavajoWhite",
     "Navy",
     "OldLace",
     "Olive",
     "OliveDrab",
     "Orange",
     "OrangeRed",
     "Orchid",
     "PaleGoldenrod",
     "PaleGreen",
     "PaleTurquoise",
     "PaleVioletRed",
     "PapayaWhip",
     "PeachPuff",
     "Peru",
     "Pink",
     "Plum",
     "PowderBlue",
     "Purple",
     "Red",
     "RosyBrown",
     "RoyalBlue",
     "SaddleBrown",
     "Salmon",
     "SandyBrown",
     "SeaGreen",
     "SeaShell",
     "Sienna",
     "Silver",
     "SkyBlue",
     "SlateBlue",
     "SlateGray",
     "Snow",
     "SpringGreen",
     "SteelBlue",
     "Tan",
     "Teal",
     "Thistle",
     "Tomato",
     "Turquoise",
     "Violet",
     "Wheat",
     "White",
     "WhiteSmoke",
     "Yellow",
     "YellowGreen"});
     this.imageComboBox.Location = new System.Drawing.Point(0, 0);
     this.imageComboBox.MaxDropDownItems = 10;
     this.imageComboBox.Name = "imageComboBox";
     this.imageComboBox.Size = new System.Drawing.Size(134, 20);
     this.imageComboBox.TabIndex = 0;
     this.imageComboBox.Text = "Black";
     this.imageComboBox.SelectedIndexChanged += new System.EventHandler(this.cBoxBrush_SelectedIndexChanged);
     this.imageComboBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.cBoxNomalBrush_KeyDown);
     //
     // BrushComboBox
     //
     this.Controls.Add(this.imageComboBox);
     this.Name = "BrushComboBox";
     this.Size = new System.Drawing.Size(134, 20);
     this.ResumeLayout(false);
 }
Example #2
0
        private void InitializeComponent()
        {
            // set Brushes
            this.brush = Brushes.Black;
            this.comboBoxBrush = new ImageComboBox();
            this.SuspendLayout();
            this.Controls.Add(this.comboBoxBrush);

            //
            // m_comboBoxBrush
            //
            this.comboBoxBrush.FormattingEnabled = true;
            this.comboBoxBrush.Location = POSITION;
            this.comboBoxBrush.Size = SIZE;
            this.comboBoxBrush.TabIndex = 0;
            this.comboBoxBrush.Text = BrushManager.ParseBrushToString(brush);
            this.comboBoxBrush.Items.AddRange(BrushManager.GetBrushNameList().ToArray());
            this.comboBoxBrush.KeyDown += new KeyEventHandler(cBoxNomalBrush_KeyDown);
            this.comboBoxBrush.SelectedIndexChanged += new EventHandler(cBoxBrush_SelectedIndexChanged);

            this.ResumeLayout(false);
            this.PerformLayout();
        }
Example #3
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="owner"></param>
 internal EditBox(ImageComboBox owner)
 {
     this.Owner = owner;
     ComboBoxInfo info = owner.GetComboBoxInfo();
     this.AssignHandle(info.hwndEdit);
 }
Example #4
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     this.imageComboBox = new Ecell.IDE.Plugins.PathwayWindow.UIComponent.ImageComboBox();
     this.SuspendLayout();
     //
     // imageComboBox
     //
     this.imageComboBox.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.None;
     this.imageComboBox.Dock = System.Windows.Forms.DockStyle.Fill;
     this.imageComboBox.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     this.imageComboBox.DropDownStyle = ComboBoxStyle.DropDownList;
     this.imageComboBox.FormattingEnabled = true;
     this.imageComboBox.Items.AddRange(new object[] {
     "Ellipse",
     "Rectangle",
     "Diamond",
     "Triangle",
     "RoundedRectangle",
     "SystemRectangle",
     "SystemEllipse"});
     this.imageComboBox.Location = new System.Drawing.Point(0, 0);
     this.imageComboBox.MaxDropDownItems = 10;
     this.imageComboBox.Name = "imageComboBox";
     this.imageComboBox.Size = new System.Drawing.Size(146, 20);
     this.imageComboBox.TabIndex = 0;
     this.imageComboBox.Text = "Rectangle";
     this.imageComboBox.SelectedIndexChanged += new System.EventHandler(this.figureComboBox_SelectedIndexChanged);
     this.imageComboBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.figureComboBox_KeyDown);
     //
     // FigureComboBox
     //
     this.Controls.Add(this.imageComboBox);
     this.Name = "FigureComboBox";
     this.Size = new System.Drawing.Size(146, 20);
     this.ResumeLayout(false);
 }
Example #5
0
 public void TestConstructorImageComboBox()
 {
     ImageComboBox testImageComboBox = new ImageComboBox();
     Assert.IsNotNull(testImageComboBox, "Constructor of type, ImageComboBox failed to create instance.");
     Assert.Fail("Create or modify test(s).");
 }
Example #6
0
 public void TearDown()
 {
     _unitUnderTest = null;
 }
Example #7
0
 public void SetUp()
 {
     _unitUnderTest = new ImageComboBox();
 }