Changeset 22 for trunk/MacFaceFloat/ConfigurationForm.cs
- Timestamp:
- Nov 19, 2004, 3:08:37 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/ConfigurationForm.cs
r19 r22 36 36 private System.Windows.Forms.Label label4; 37 37 private System.Windows.Forms.CheckBox checkMouseMessage; 38 private System.Windows.Forms.ImageList imageListConfigTreeIcon; 38 39 private System.ComponentModel.IContainer components; 39 40 … … 73 74 { 74 75 this.components = new System.ComponentModel.Container(); 76 System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ConfigurationForm)); 75 77 this.treeCategory = new System.Windows.Forms.TreeView(); 78 this.imageListConfigTreeIcon = new System.Windows.Forms.ImageList(this.components); 76 79 this.buttonCancel = new System.Windows.Forms.Button(); 77 80 this.buttonApply = new System.Windows.Forms.Button(); … … 102 105 this.treeCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 103 106 | System.Windows.Forms.AnchorStyles.Left))); 104 this.treeCategory.ImageIndex = -1; 107 this.treeCategory.FullRowSelect = true; 108 this.treeCategory.HideSelection = false; 109 this.treeCategory.HotTracking = true; 110 this.treeCategory.ImageList = this.imageListConfigTreeIcon; 105 111 this.treeCategory.Location = new System.Drawing.Point(0, 0); 106 112 this.treeCategory.Name = "treeCategory"; 107 113 this.treeCategory.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { 108 new System.Windows.Forms.TreeNode("SÊ" ),114 new System.Windows.Forms.TreeNode("SÊ", 1, 1), 109 115 new System.Windows.Forms.TreeNode("çp^[")}); 110 this.treeCategory.SelectedImageIndex = -1; 116 this.treeCategory.ShowLines = false; 117 this.treeCategory.ShowPlusMinus = false; 118 this.treeCategory.ShowRootLines = false; 111 119 this.treeCategory.Size = new System.Drawing.Size(193, 449); 112 120 this.treeCategory.TabIndex = 0; 113 121 this.treeCategory.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeCategory_AfterSelect); 122 // 123 // imageListConfigTreeIcon 124 // 125 this.imageListConfigTreeIcon.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 126 this.imageListConfigTreeIcon.ImageSize = new System.Drawing.Size(32, 32); 127 this.imageListConfigTreeIcon.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListConfigTreeIcon.ImageStream"))); 128 this.imageListConfigTreeIcon.TransparentColor = System.Drawing.Color.Transparent; 114 129 // 115 130 // buttonCancel … … 163 178 | System.Windows.Forms.AnchorStyles.Left) 164 179 | System.Windows.Forms.AnchorStyles.Right))); 180 this.panelContainer.Controls.Add(this.panelAppearance); 165 181 this.panelContainer.Controls.Add(this.panelFacePatternList); 166 this.panelContainer.Controls.Add(this.panelAppearance);167 182 this.panelContainer.Location = new System.Drawing.Point(198, 38); 168 183 this.panelContainer.Name = "panelContainer"; … … 246 261 // checkMouseMessage 247 262 // 248 this.checkMouseMessage.Enabled = false;249 263 this.checkMouseMessage.Location = new System.Drawing.Point(5, 115); 250 264 this.checkMouseMessage.Name = "checkMouseMessage"; … … 386 400 { 387 401 FaceDef faceDef = new FaceDef(path); 388 imageListFacePreviews.Images.Add(faceDef.TitleImage()); 402 // \¦/Iðµ½ÛÉÈçÈ¢æ¤É 究ßhèµÄ`æµ½æðpÓ·éB 403 using (Image titleImage = faceDef.TitleImage) 404 { 405 using (Bitmap titlePreviewImage = new Bitmap(titleImage.Width, titleImage.Height)) 406 { 407 using (Graphics g = Graphics.FromImage(titlePreviewImage)) 408 { 409 g.Clear(Color.White); 410 g.DrawRectangle(new Pen(Color.LightGray), 0, 0, 127, 127); 411 g.DrawImage(titleImage, 0, 0); 412 } 413 imageListFacePreviews.Images.Add(titlePreviewImage); 414 } 415 } 416 389 417 390 418 ListViewItem item = listViewFaces.Items.Add(faceDef.Title, imageListFacePreviews.Images.Count-1);
Note: See TracChangeset
for help on using the changeset viewer.