Changes in trunk/MacFaceFloat/ConfigurationForm.cs [30:19]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MacFaceFloat/ConfigurationForm.cs
r30 r19 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;42 38 private System.ComponentModel.IContainer components; 43 39 … … 77 73 { 78 74 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));82 75 this.treeCategory = new System.Windows.Forms.TreeView(); 83 this.imageListConfigTreeIcon = new System.Windows.Forms.ImageList(this.components);84 76 this.buttonCancel = new System.Windows.Forms.Button(); 85 77 this.buttonApply = new System.Windows.Forms.Button(); … … 87 79 this.labelTitle = new System.Windows.Forms.Label(); 88 80 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();96 81 this.panelFacePatternList = new System.Windows.Forms.Panel(); 97 82 this.label4 = new System.Windows.Forms.Label(); … … 100 85 this.listViewFaces = new System.Windows.Forms.ListView(); 101 86 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(); 102 93 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();105 94 this.panelContainer.SuspendLayout(); 95 this.panelFacePatternList.SuspendLayout(); 106 96 this.panelAppearance.SuspendLayout(); 107 97 ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).BeginInit(); 108 this.panelFacePatternList.SuspendLayout();109 ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).BeginInit();110 98 this.SuspendLayout(); 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; 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; 120 105 this.treeCategory.Location = new System.Drawing.Point(0, 0); 121 106 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^[";128 107 this.treeCategory.Nodes.AddRange(new System.Windows.Forms.TreeNode[] { 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); 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); 135 112 this.treeCategory.TabIndex = 0; 136 113 this.treeCategory.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeCategory_AfterSelect); 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 // 114 // 115 // buttonCancel 116 // 149 117 this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 150 118 this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; 151 this.buttonCancel.Location = new System.Drawing.Point( 303, 267);119 this.buttonCancel.Location = new System.Drawing.Point(427, 420); 152 120 this.buttonCancel.Name = "buttonCancel"; 153 121 this.buttonCancel.Size = new System.Drawing.Size(87, 21); 154 122 this.buttonCancel.TabIndex = 1; 155 123 this.buttonCancel.Text = "LZ"; 156 //157 // buttonApply158 //124 // 125 // buttonApply 126 // 159 127 this.buttonApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 160 128 this.buttonApply.Enabled = false; 161 this.buttonApply.Location = new System.Drawing.Point( 397, 267);129 this.buttonApply.Location = new System.Drawing.Point(521, 420); 162 130 this.buttonApply.Name = "buttonApply"; 163 131 this.buttonApply.Size = new System.Drawing.Size(87, 21); 164 132 this.buttonApply.TabIndex = 2; 165 133 this.buttonApply.Text = "Kp(&A)"; 166 //167 // buttonOK168 //134 // 135 // buttonOK 136 // 169 137 this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 170 138 this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK; 171 this.buttonOK.Location = new System.Drawing.Point( 208, 267);139 this.buttonOK.Location = new System.Drawing.Point(332, 420); 172 140 this.buttonOK.Name = "buttonOK"; 173 141 this.buttonOK.Size = new System.Drawing.Size(87, 21); … … 175 143 this.buttonOK.Text = "OK"; 176 144 this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click); 177 //178 // labelTitle179 //180 this.labelTitle.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 181 145 // 146 // labelTitle 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))); 182 150 this.labelTitle.BackColor = System.Drawing.SystemColors.ActiveCaption; 183 this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, (( byte)(128)));151 this.labelTitle.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128))); 184 152 this.labelTitle.ForeColor = System.Drawing.SystemColors.ActiveCaptionText; 185 this.labelTitle.Location = new System.Drawing.Point(1 07, 5);153 this.labelTitle.Location = new System.Drawing.Point(199, 5); 186 154 this.labelTitle.Name = "labelTitle"; 187 this.labelTitle.Size = new System.Drawing.Size( 380, 27);155 this.labelTitle.Size = new System.Drawing.Size(412, 27); 188 156 this.labelTitle.TabIndex = 4; 189 157 this.labelTitle.Text = "SÊ"; 190 158 this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; 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))); 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))); 165 this.panelContainer.Controls.Add(this.panelFacePatternList); 197 166 this.panelContainer.Controls.Add(this.panelAppearance); 198 this.panelContainer.Controls.Add(this.panelFacePatternList); 199 this.panelContainer.Location = new System.Drawing.Point(106, 38); 167 this.panelContainer.Location = new System.Drawing.Point(198, 38); 200 168 this.panelContainer.Name = "panelContainer"; 201 this.panelContainer.Size = new System.Drawing.Size( 380, 218);169 this.panelContainer.Size = new System.Drawing.Size(411, 371); 202 170 this.panelContainer.TabIndex = 5; 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); 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 // 209 235 this.panelAppearance.Controls.Add(this.checkMouseMessage); 210 236 this.panelAppearance.Controls.Add(this.label3); … … 212 238 this.panelAppearance.Controls.Add(this.label1); 213 239 this.panelAppearance.Controls.Add(this.trackBarOpacity); 214 this.panelAppearance.Location = new System.Drawing.Point(4, 3); 240 this.panelAppearance.Dock = System.Windows.Forms.DockStyle.Fill; 241 this.panelAppearance.Location = new System.Drawing.Point(0, 0); 215 242 this.panelAppearance.Name = "panelAppearance"; 216 this.panelAppearance.Size = new System.Drawing.Size( 366, 208);243 this.panelAppearance.Size = new System.Drawing.Size(411, 371); 217 244 this.panelAppearance.TabIndex = 0; 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); 245 // 246 // checkMouseMessage 247 // 248 this.checkMouseMessage.Enabled = false; 249 this.checkMouseMessage.Location = new System.Drawing.Point(5, 115); 233 250 this.checkMouseMessage.Name = "checkMouseMessage"; 234 this.checkMouseMessage.Size = new System.Drawing.Size( 355, 11);251 this.checkMouseMessage.Size = new System.Drawing.Size(400, 16); 235 252 this.checkMouseMessage.TabIndex = 4; 236 253 this.checkMouseMessage.Text = "}EXÌ®ìðwÊÌEBhEÖ`¦é(&T)"; 237 //238 // label3239 //254 // 255 // label3 256 // 240 257 this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); 241 this.label3.Location = new System.Drawing.Point( 524, 73);258 this.label3.Location = new System.Drawing.Point(364, 73); 242 259 this.label3.Name = "label3"; 243 260 this.label3.Size = new System.Drawing.Size(45, 11); 244 261 this.label3.TabIndex = 3; 245 262 this.label3.Text = "s§¾"; 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); 263 // 264 // label2 265 // 266 this.label2.Location = new System.Drawing.Point(4, 73); 253 267 this.label2.Name = "label2"; 254 268 this.label2.Size = new System.Drawing.Size(31, 11); 255 269 this.label2.TabIndex = 2; 256 270 this.label2.Text = "§¾"; 257 //258 // label1259 //271 // 272 // label1 273 // 260 274 this.label1.Location = new System.Drawing.Point(2, 5); 261 this.label1.Margin = new System.Windows.Forms.Padding(3, 3, 3, 0);262 275 this.label1.Name = "label1"; 263 276 this.label1.Size = new System.Drawing.Size(196, 18); 264 277 this.label1.TabIndex = 1; 265 278 this.label1.Text = "§¾x:"; 266 //267 // trackBarOpacity268 //269 this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 270 279 // 280 // trackBarOpacity 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))); 271 284 this.trackBarOpacity.LargeChange = 10; 272 this.trackBarOpacity.Location = new System.Drawing.Point(15, 24); 273 this.trackBarOpacity.Margin = new System.Windows.Forms.Padding(3, 1, 3, 1); 285 this.trackBarOpacity.Location = new System.Drawing.Point(8, 26); 274 286 this.trackBarOpacity.Maximum = 100; 275 287 this.trackBarOpacity.Name = "trackBarOpacity"; 276 this.trackBarOpacity.Size = new System.Drawing.Size( 338, 42);288 this.trackBarOpacity.Size = new System.Drawing.Size(400, 42); 277 289 this.trackBarOpacity.TabIndex = 0; 278 290 this.trackBarOpacity.TickFrequency = 10; 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 // 291 // 292 // ConfigurationForm 293 // 367 294 this.AutoScaleBaseSize = new System.Drawing.Size(5, 12); 368 this.ClientSize = new System.Drawing.Size( 492, 297);295 this.ClientSize = new System.Drawing.Size(616, 450); 369 296 this.Controls.Add(this.panelContainer); 370 297 this.Controls.Add(this.labelTitle); … … 378 305 this.Load += new System.EventHandler(this.ConfigurationForm_Load); 379 306 this.panelContainer.ResumeLayout(false); 307 this.panelFacePatternList.ResumeLayout(false); 380 308 this.panelAppearance.ResumeLayout(false); 381 this.panelAppearance.PerformLayout();382 309 ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit(); 383 this.panelFacePatternList.ResumeLayout(false);384 ((System.ComponentModel.ISupportInitialize)(this.trackBarPatternSize)).EndInit();385 310 this.ResumeLayout(false); 386 311 … … 391 316 { 392 317 // SÊð\¦B 393 foreach (Panel pane in panelContainer.Controls) 394 { 318 foreach (Panel pane in panelContainer.Controls) 395 319 pane.Visible = false; 396 pane.Dock = DockStyle.Fill;397 }398 320 399 321 panelAppearance.Show(); … … 401 323 // úlðZbgB 402 324 trackBarOpacity.Value = (int) (_mainForm.Opacity * 100); 403 trackBarPatternSize.Value = (int)(_mainForm.PatternSize * 100);404 325 checkMouseMessage.Checked = Configuration.GetInstance().TransparentMouseMessage; 405 326 } … … 409 330 Configuration config = Configuration.GetInstance(); 410 331 config.Opacity = trackBarOpacity.Value; 411 config.PatternSize = trackBarPatternSize.Value;412 332 config.TransparentMouseMessage = checkMouseMessage.Checked; 413 333 … … 417 337 private void treeCategory_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e) 418 338 { 339 Panel container; 340 419 341 // īƤ 420 342 if (e.Node.Text == labelTitle.Text) return; … … 429 351 listViewFaces.Items.Clear(); 430 352 imageListFacePreviews.Images.Clear(); 431 panelFacePatternList.Show();353 int i = 0; 432 354 433 355 using (Bitmap tmpImage = new Bitmap(128, 128)) … … 450 372 } 451 373 } 374 375 panelFacePatternList.Show(); 452 376 break; 453 377 } … … 462 386 { 463 387 FaceDef faceDef = new FaceDef(path); 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 388 imageListFacePreviews.Images.Add(faceDef.TitleImage()); 479 389 480 390 ListViewItem item = listViewFaces.Items.Add(faceDef.Title, imageListFacePreviews.Images.Count-1); … … 556 466 catch (Win32Exception) {} 557 467 } 558 559 private void label6_Click(object sender, EventArgs e)560 {561 562 }563 468 } 564 469 }
Note: See TracChangeset
for help on using the changeset viewer.