Changes in trunk/MacFaceFloat/ConfigurationForm.cs [19:30]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/ConfigurationForm.cs
r19 r30 36 36 private System.Windows.Forms.Label label4; 37 37 private System.Windows.Forms.CheckBox checkMouseMessage; 38 private System.Windows.Forms.ImageList imageListConfigTreeIcon; 39 private System.Windows.Forms.Label label5; 40 private TrackBar trackBarPatternSize; 41 private Label label6; 38 42 private System.ComponentModel.IContainer components; 39 43 … … 73 77 { 74 78 this.components = new System.ComponentModel.Container(); 79 System.Windows.Forms.TreeNode treeNode3 = new System.Windows.Forms.TreeNode("SÊ", 1, 1); 80 System.Windows.Forms.TreeNode treeNode4 = new System.Windows.Forms.TreeNode("çp^["); 81 System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ConfigurationForm)); 75 82 this.treeCategory = new System.Windows.Forms.TreeView(); 83 this.imageListConfigTreeIcon = new System.Windows.Forms.ImageList(this.components); 76 84 this.buttonCancel = new System.Windows.Forms.Button(); 77 85 this.buttonApply = new System.Windows.Forms.Button(); … … 79 87 this.labelTitle = new System.Windows.Forms.Label(); 80 88 this.panelContainer = new System.Windows.Forms.Panel(); 89 this.panelAppearance = new System.Windows.Forms.Panel(); 90 this.label5 = new System.Windows.Forms.Label(); 91 this.checkMouseMessage = new System.Windows.Forms.CheckBox(); 92 this.label3 = new System.Windows.Forms.Label(); 93 this.label2 = new System.Windows.Forms.Label(); 94 this.label1 = new System.Windows.Forms.Label(); 95 this.trackBarOpacity = new System.Windows.Forms.TrackBar(); 81 96 this.panelFacePatternList = new System.Windows.Forms.Panel(); 82 97 this.label4 = new System.Windows.Forms.Label(); … … 85 100 this.listViewFaces = new System.Windows.Forms.ListView(); 86 101 this.imageListFacePreviews = new System.Windows.Forms.ImageList(this.components); 87 this.panelAppearance = new System.Windows.Forms.Panel();88 this.checkMouseMessage = new System.Windows.Forms.CheckBox();89 this.label3 = new System.Windows.Forms.Label();90 this.label2 = new System.Windows.Forms.Label();91 this.label1 = new System.Windows.Forms.Label();92 this.trackBarOpacity = new System.Windows.Forms.TrackBar();93 102 this.toolTipPreviewDetail = new System.Windows.Forms.ToolTip(this.components); 103 this.trackBarPatternSize = new System.Windows.Forms.TrackBar(); 104 this.label6 = new System.Windows.Forms.Label(); 94 105 this.panelContainer.SuspendLayout(); 95 this.panelFacePatternList.SuspendLayout();96 106 this.panelAppearance.SuspendLayout(); 97 107 ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).BeginInit(); 108 this.panelFacePatternList.SuspendLayout(); 109 ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).BeginInit(); 98 110 this.SuspendLayout(); 99 // 100 // treeCategory 101 // 102 this.treeCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 103 | System.Windows.Forms.AnchorStyles.Left))); 104 this.treeCategory.ImageIndex = -1; 111 // 112 // treeCategory 113 // 114 this.treeCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 115 | System.Windows.Forms.AnchorStyles.Left))); 116 this.treeCategory.FullRowSelect = true; 117 this.treeCategory.HideSelection = false; 118 this.treeCategory.HotTracking = true; 119 this.treeCategory.ImageList = this.imageListConfigTreeIcon; 105 120 this.treeCategory.Location = new System.Drawing.Point(0, 0); 106 121 this.treeCategory.Name = "treeCategory"; 122 treeNode3.ImageIndex = 1; 123 treeNode3.Name = ""; 124 treeNode3.SelectedImageIndex = 1; 125 treeNode3.Text = "SÊ"; 126 treeNode4.Name = ""; 127 treeNode4.Text = "çp^["; 107 128 this.treeCategory.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { 108 new System.Windows.Forms.TreeNode("SÊ"), 109 new System.Windows.Forms.TreeNode("çp^[")}); 110 this.treeCategory.SelectedImageIndex = -1; 111 this.treeCategory.Size = new System.Drawing.Size(193, 449); 129 treeNode3, 130 treeNode4}); 131 this.treeCategory.ShowLines = false; 132 this.treeCategory.ShowPlusMinus = false; 133 this.treeCategory.ShowRootLines = false; 134 this.treeCategory.Size = new System.Drawing.Size(101, 296); 112 135 this.treeCategory.TabIndex = 0; 113 136 this.treeCategory.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeCategory_AfterSelect); 114 // 115 // buttonCancel 116 // 137 // 138 // imageListConfigTreeIcon 139 // 140 this.imageListConfigTreeIcon.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 141 this.imageListConfigTreeIcon.ImageSize = new System.Drawing.Size(32, 32); 142 this.imageListConfigTreeIcon.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageListConfigTreeIcon.ImageStream"))); 143 this.imageListConfigTreeIcon.TransparentColor = System.Drawing.Color.Transparent; 144 this.imageListConfigTreeIcon.Images.SetKeyName(0, ""); 145 this.imageListConfigTreeIcon.Images.SetKeyName(1, ""); 146 // 147 // buttonCancel 148 // 117 149 this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 118 150 this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; 119 this.buttonCancel.Location = new System.Drawing.Point( 427, 420);151 this.buttonCancel.Location = new System.Drawing.Point(303, 267); 120 152 this.buttonCancel.Name = "buttonCancel"; 121 153 this.buttonCancel.Size = new System.Drawing.Size(87, 21); 122 154 this.buttonCancel.TabIndex = 1; 123 155 this.buttonCancel.Text = "LZ"; 124 125 126 156 // 157 // buttonApply 158 // 127 159 this.buttonApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 128 160 this.buttonApply.Enabled = false; 129 this.buttonApply.Location = new System.Drawing.Point( 521, 420);161 this.buttonApply.Location = new System.Drawing.Point(397, 267); 130 162 this.buttonApply.Name = "buttonApply"; 131 163 this.buttonApply.Size = new System.Drawing.Size(87, 21); 132 164 this.buttonApply.TabIndex = 2; 133 165 this.buttonApply.Text = "Kp(&A)"; 134 135 136 166 // 167 // buttonOK 168 // 137 169 this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 138 170 this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; 139 this.buttonOK.Location = new System.Drawing.Point( 332, 420);171 this.buttonOK.Location = new System.Drawing.Point(208, 267); 140 172 this.buttonOK.Name = "buttonOK"; 141 173 this.buttonOK.Size = new System.Drawing.Size(87, 21); … … 143 175 this.buttonOK.Text = "OK"; 144 176 this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); 145 146 147 148 this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 149 | System.Windows.Forms.AnchorStyles.Right)));177 // 178 // labelTitle 179 // 180 this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 181 | System.Windows.Forms.AnchorStyles.Right))); 150 182 this.labelTitle.BackColor = System.Drawing.SystemColors.ActiveCaption; 151 this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (( System.Byte)(128)));183 this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(128))); 152 184 this.labelTitle.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; 153 this.labelTitle.Location = new System.Drawing.Point(1 99, 5);185 this.labelTitle.Location = new System.Drawing.Point(107, 5); 154 186 this.labelTitle.Name = "labelTitle"; 155 this.labelTitle.Size = new System.Drawing.Size( 412, 27);187 this.labelTitle.Size = new System.Drawing.Size(380, 27); 156 188 this.labelTitle.TabIndex = 4; 157 189 this.labelTitle.Text = "SÊ"; 158 190 this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 159 // 160 // panelContainer 161 // 162 this.panelContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 163 | System.Windows.Forms.AnchorStyles.Left) 164 | System.Windows.Forms.AnchorStyles.Right))); 191 // 192 // panelContainer 193 // 194 this.panelContainer.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 195 | System.Windows.Forms.AnchorStyles.Left) 196 | System.Windows.Forms.AnchorStyles.Right))); 197 this.panelContainer.Controls.Add(this.panelAppearance); 165 198 this.panelContainer.Controls.Add(this.panelFacePatternList); 166 this.panelContainer.Controls.Add(this.panelAppearance); 167 this.panelContainer.Location = new System.Drawing.Point(198, 38); 199 this.panelContainer.Location = new System.Drawing.Point(106, 38); 168 200 this.panelContainer.Name = "panelContainer"; 169 this.panelContainer.Size = new System.Drawing.Size( 411, 371);201 this.panelContainer.Size = new System.Drawing.Size(380, 218); 170 202 this.panelContainer.TabIndex = 5; 171 // 172 // panelFacePatternList 173 // 174 this.panelFacePatternList.Controls.Add(this.label4); 175 this.panelFacePatternList.Controls.Add(this.linkWebSite); 176 this.panelFacePatternList.Controls.Add(this.buttonBrowse); 177 this.panelFacePatternList.Controls.Add(this.listViewFaces); 178 this.panelFacePatternList.Dock = System.Windows.Forms.DockStyle.Fill; 179 this.panelFacePatternList.Location = new System.Drawing.Point(0, 0); 180 this.panelFacePatternList.Name = "panelFacePatternList"; 181 this.panelFacePatternList.Size = new System.Drawing.Size(411, 371); 182 this.panelFacePatternList.TabIndex = 7; 183 // 184 // label4 185 // 186 this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 187 this.label4.Location = new System.Drawing.Point(4, 350); 188 this.label4.Name = "label4"; 189 this.label4.Size = new System.Drawing.Size(63, 17); 190 this.label4.TabIndex = 3; 191 this.label4.Text = "EFuTCg:"; 192 // 193 // linkWebSite 194 // 195 this.linkWebSite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 196 | System.Windows.Forms.AnchorStyles.Right))); 197 this.linkWebSite.Location = new System.Drawing.Point(67, 350); 198 this.linkWebSite.Name = "linkWebSite"; 199 this.linkWebSite.Size = new System.Drawing.Size(338, 16); 200 this.linkWebSite.TabIndex = 2; 201 this.linkWebSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkWebSite_LinkClicked); 202 // 203 // buttonBrowse 204 // 205 this.buttonBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 206 this.buttonBrowse.Location = new System.Drawing.Point(322, 323); 207 this.buttonBrowse.Name = "buttonBrowse"; 208 this.buttonBrowse.Size = new System.Drawing.Size(87, 21); 209 this.buttonBrowse.TabIndex = 1; 210 this.buttonBrowse.Text = "QÆ(&B)..."; 211 this.buttonBrowse.Click += new System.EventHandler(this.buttonBrowse_Click); 212 // 213 // listViewFaces 214 // 215 this.listViewFaces.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 216 | System.Windows.Forms.AnchorStyles.Left) 217 | System.Windows.Forms.AnchorStyles.Right))); 218 this.listViewFaces.LargeImageList = this.imageListFacePreviews; 219 this.listViewFaces.Location = new System.Drawing.Point(0, 0); 220 this.listViewFaces.Name = "listViewFaces"; 221 this.listViewFaces.Size = new System.Drawing.Size(410, 318); 222 this.listViewFaces.TabIndex = 0; 223 this.listViewFaces.DoubleClick += new System.EventHandler(this.listViewFaces_DoubleClick); 224 this.listViewFaces.MouseMove += new System.Windows.Forms.MouseEventHandler(this.listViewFaces_MouseMove); 225 this.listViewFaces.SelectedIndexChanged += new System.EventHandler(this.listViewFaces_SelectedIndexChanged); 226 // 227 // imageListFacePreviews 228 // 229 this.imageListFacePreviews.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 230 this.imageListFacePreviews.ImageSize = new System.Drawing.Size(128, 128); 231 this.imageListFacePreviews.TransparentColor = System.Drawing.Color.Transparent; 232 // 233 // panelAppearance 234 // 203 // 204 // panelAppearance 205 // 206 this.panelAppearance.Controls.Add(this.label6); 207 this.panelAppearance.Controls.Add(this.trackBarPatternSize); 208 this.panelAppearance.Controls.Add(this.label5); 235 209 this.panelAppearance.Controls.Add(this.checkMouseMessage); 236 210 this.panelAppearance.Controls.Add(this.label3); … … 238 212 this.panelAppearance.Controls.Add(this.label1); 239 213 this.panelAppearance.Controls.Add(this.trackBarOpacity); 240 this.panelAppearance.Dock = System.Windows.Forms.DockStyle.Fill; 241 this.panelAppearance.Location = new System.Drawing.Point(0, 0); 214 this.panelAppearance.Location = new System.Drawing.Point(4, 3); 242 215 this.panelAppearance.Name = "panelAppearance"; 243 this.panelAppearance.Size = new System.Drawing.Size( 411, 371);216 this.panelAppearance.Size = new System.Drawing.Size(366, 208); 244 217 this.panelAppearance.TabIndex = 0; 245 // 246 // checkMouseMessage 247 // 248 this.checkMouseMessage.Enabled = false; 249 this.checkMouseMessage.Location = new System.Drawing.Point(5, 115); 218 // 219 // label5 220 // 221 this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 222 | System.Windows.Forms.AnchorStyles.Right))); 223 this.label5.Location = new System.Drawing.Point(311, 55); 224 this.label5.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3); 225 this.label5.Name = "label5"; 226 this.label5.Size = new System.Drawing.Size(42, 11); 227 this.label5.TabIndex = 5; 228 this.label5.Text = "s§¾"; 229 // 230 // checkMouseMessage 231 // 232 this.checkMouseMessage.Location = new System.Drawing.Point(5, 188); 250 233 this.checkMouseMessage.Name = "checkMouseMessage"; 251 this.checkMouseMessage.Size = new System.Drawing.Size( 400, 16);234 this.checkMouseMessage.Size = new System.Drawing.Size(355, 11); 252 235 this.checkMouseMessage.TabIndex = 4; 253 236 this.checkMouseMessage.Text = "}EXÌ®ìðwÊÌEBhEÖ`¦é(&T)"; 254 255 256 237 // 238 // label3 239 // 257 240 this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 258 this.label3.Location = new System.Drawing.Point( 364, 73);241 this.label3.Location = new System.Drawing.Point(524, 73); 259 242 this.label3.Name = "label3"; 260 243 this.label3.Size = new System.Drawing.Size(45, 11); 261 244 this.label3.TabIndex = 3; 262 245 this.label3.Text = "s§¾"; 263 // 264 // label2 265 // 266 this.label2.Location = new System.Drawing.Point(4, 73); 246 // 247 // label2 248 // 249 this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 250 | System.Windows.Forms.AnchorStyles.Right))); 251 this.label2.Location = new System.Drawing.Point(15, 55); 252 this.label2.Margin = new System.Windows.Forms.Padding(3, 0, 3, 3); 267 253 this.label2.Name = "label2"; 268 254 this.label2.Size = new System.Drawing.Size(31, 11); 269 255 this.label2.TabIndex = 2; 270 256 this.label2.Text = "§¾"; 271 272 273 257 // 258 // label1 259 // 274 260 this.label1.Location = new System.Drawing.Point(2, 5); 261 this.label1.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0); 275 262 this.label1.Name = "label1"; 276 263 this.label1.Size = new System.Drawing.Size(196, 18); 277 264 this.label1.TabIndex = 1; 278 265 this.label1.Text = "§¾x:"; 279 280 281 282 this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 283 | System.Windows.Forms.AnchorStyles.Right)));266 // 267 // trackBarOpacity 268 // 269 this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 270 | System.Windows.Forms.AnchorStyles.Right))); 284 271 this.trackBarOpacity.LargeChange = 10; 285 this.trackBarOpacity.Location = new System.Drawing.Point(8, 26); 272 this.trackBarOpacity.Location = new System.Drawing.Point(15, 24); 273 this.trackBarOpacity.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1); 286 274 this.trackBarOpacity.Maximum = 100; 287 275 this.trackBarOpacity.Name = "trackBarOpacity"; 288 this.trackBarOpacity.Size = new System.Drawing.Size( 400, 42);276 this.trackBarOpacity.Size = new System.Drawing.Size(338, 42); 289 277 this.trackBarOpacity.TabIndex = 0; 290 278 this.trackBarOpacity.TickFrequency = 10; 291 // 292 // ConfigurationForm 293 // 279 // 280 // panelFacePatternList 281 // 282 this.panelFacePatternList.Controls.Add(this.label4); 283 this.panelFacePatternList.Controls.Add(this.linkWebSite); 284 this.panelFacePatternList.Controls.Add(this.buttonBrowse); 285 this.panelFacePatternList.Controls.Add(this.listViewFaces); 286 this.panelFacePatternList.Location = new System.Drawing.Point(2, 1); 287 this.panelFacePatternList.Name = "panelFacePatternList"; 288 this.panelFacePatternList.Size = new System.Drawing.Size(367, 213); 289 this.panelFacePatternList.TabIndex = 7; 290 // 291 // label4 292 // 293 this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 294 this.label4.Location = new System.Drawing.Point(4, 165); 295 this.label4.Name = "label4"; 296 this.label4.Size = new System.Drawing.Size(63, 17); 297 this.label4.TabIndex = 3; 298 this.label4.Text = "EFuTCg:"; 299 // 300 // linkWebSite 301 // 302 this.linkWebSite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) 303 | System.Windows.Forms.AnchorStyles.Right))); 304 this.linkWebSite.Links.Add(new System.Windows.Forms.LinkLabel.Link(0, 0)); 305 this.linkWebSite.Location = new System.Drawing.Point(67, 165); 306 this.linkWebSite.Name = "linkWebSite"; 307 this.linkWebSite.Size = new System.Drawing.Size(388, 16); 308 this.linkWebSite.TabIndex = 2; 309 this.linkWebSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkWebSite_LinkClicked); 310 // 311 // buttonBrowse 312 // 313 this.buttonBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 314 this.buttonBrowse.Location = new System.Drawing.Point(267, 187); 315 this.buttonBrowse.Name = "buttonBrowse"; 316 this.buttonBrowse.Size = new System.Drawing.Size(95, 24); 317 this.buttonBrowse.TabIndex = 1; 318 this.buttonBrowse.Text = "QÆ(&B)..."; 319 this.buttonBrowse.Click += new System.EventHandler(this.buttonBrowse_Click); 320 // 321 // listViewFaces 322 // 323 this.listViewFaces.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 324 | System.Windows.Forms.AnchorStyles.Left) 325 | System.Windows.Forms.AnchorStyles.Right))); 326 this.listViewFaces.LargeImageList = this.imageListFacePreviews; 327 this.listViewFaces.Location = new System.Drawing.Point(0, 0); 328 this.listViewFaces.Name = "listViewFaces"; 329 this.listViewFaces.Size = new System.Drawing.Size(367, 161); 330 this.listViewFaces.TabIndex = 0; 331 this.listViewFaces.SelectedIndexChanged += new System.EventHandler(this.listViewFaces_SelectedIndexChanged); 332 this.listViewFaces.DoubleClick += new System.EventHandler(this.listViewFaces_DoubleClick); 333 this.listViewFaces.MouseMove += new System.Windows.Forms.MouseEventHandler(this.listViewFaces_MouseMove); 334 // 335 // imageListFacePreviews 336 // 337 this.imageListFacePreviews.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; 338 this.imageListFacePreviews.ImageSize = new System.Drawing.Size(128, 128); 339 this.imageListFacePreviews.TransparentColor = System.Drawing.Color.Transparent; 340 // 341 // trackBarPatternSize 342 // 343 this.trackBarPatternSize.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 344 | System.Windows.Forms.AnchorStyles.Right))); 345 this.trackBarPatternSize.LargeChange = 10; 346 this.trackBarPatternSize.Location = new System.Drawing.Point(15, 114); 347 this.trackBarPatternSize.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3); 348 this.trackBarPatternSize.Maximum = 100; 349 this.trackBarPatternSize.Minimum = 10; 350 this.trackBarPatternSize.Name = "trackBarPatternSize"; 351 this.trackBarPatternSize.Size = new System.Drawing.Size(338, 42); 352 this.trackBarPatternSize.TabIndex = 6; 353 this.trackBarPatternSize.TickFrequency = 10; 354 this.trackBarPatternSize.Value = 100; 355 // 356 // label6 357 // 358 this.label6.Location = new System.Drawing.Point(5, 93); 359 this.label6.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0); 360 this.label6.Name = "label6"; 361 this.label6.Size = new System.Drawing.Size(196, 18); 362 this.label6.TabIndex = 7; 363 this.label6.Text = "嫳:"; 364 // 365 // ConfigurationForm 366 // 294 367 this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); 295 this.ClientSize = new System.Drawing.Size( 616, 450);368 this.ClientSize = new System.Drawing.Size(492, 297); 296 369 this.Controls.Add(this.panelContainer); 297 370 this.Controls.Add(this.labelTitle); … … 305 378 this.Load += new System.EventHandler(this.ConfigurationForm_Load); 306 379 this.panelContainer.ResumeLayout(false); 380 this.panelAppearance.ResumeLayout(false); 381 this.panelAppearance.PerformLayout(); 382 ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit(); 307 383 this.panelFacePatternList.ResumeLayout(false); 308 this.panelAppearance.ResumeLayout(false); 309 ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit(); 384 ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).EndInit(); 310 385 this.ResumeLayout(false); 311 386 … … 316 391 { 317 392 // SÊð\¦B 318 foreach (Panel pane in panelContainer.Controls) 393 foreach (Panel pane in panelContainer.Controls) 394 { 319 395 pane.Visible = false; 396 pane.Dock = DockStyle.Fill; 397 } 320 398 321 399 panelAppearance.Show(); … … 323 401 // úlðZbgB 324 402 trackBarOpacity.Value = (int) (_mainForm.Opacity * 100); 403 trackBarPatternSize.Value = (int)(_mainForm.PatternSize * 100); 325 404 checkMouseMessage.Checked = Configuration.GetInstance().TransparentMouseMessage; 326 405 } … … 330 409 Configuration config = Configuration.GetInstance(); 331 410 config.Opacity = trackBarOpacity.Value; 411 config.PatternSize = trackBarPatternSize.Value; 332 412 config.TransparentMouseMessage = checkMouseMessage.Checked; 333 413 … … 337 417 private void treeCategory_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) 338 418 { 339 Panel container;340 341 419 // īƤ 342 420 if (e.Node.Text == labelTitle.Text) return; … … 351 429 listViewFaces.Items.Clear(); 352 430 imageListFacePreviews.Images.Clear(); 353 int i = 0;431 panelFacePatternList.Show(); 354 432 355 433 using (Bitmap tmpImage = new Bitmap(128, 128)) … … 372 450 } 373 451 } 374 375 panelFacePatternList.Show();376 452 break; 377 453 } … … 386 462 { 387 463 FaceDef faceDef = new FaceDef(path); 388 imageListFacePreviews.Images.Add(faceDef.TitleImage()); 464 // \¦/Iðµ½ÛÉÈçÈ¢æ¤É 究ßhèµÄ`æµ½æðpÓ·éB 465 using (Image titleImage = faceDef.TitleImage) 466 { 467 using (Bitmap titlePreviewImage = new Bitmap(titleImage.Width, titleImage.Height)) 468 { 469 using (Graphics g = Graphics.FromImage(titlePreviewImage)) 470 { 471 g.Clear(Color.White); 472 g.DrawRectangle(new Pen(Color.LightGray), 0, 0, 127, 127); 473 g.DrawImage(titleImage, 0, 0); 474 } 475 imageListFacePreviews.Images.Add(titlePreviewImage); 476 } 477 } 478 389 479 390 480 ListViewItem item = listViewFaces.Items.Add(faceDef.Title, imageListFacePreviews.Images.Count-1); … … 466 556 catch (Win32Exception) {} 467 557 } 558 559 private void label6_Click(object sender, EventArgs e) 560 { 561 562 } 468 563 } 469 564 }
Note: See TracChangeset
for help on using the changeset viewer.