Ignore:
Timestamp:
Nov 19, 2004, 3:08:37 AM (19 years ago)
Author:
altba\tomoyo
Message:

通知領域に表示するようにした(アイコンはまだ無い)。
設定フォームのプレビューが汚くならないようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/ConfigurationForm.cs

    r19 r22  
    3636                private System.Windows.Forms.Label label4;
    3737                private System.Windows.Forms.CheckBox checkMouseMessage;
     38                private System.Windows.Forms.ImageList imageListConfigTreeIcon;
    3839                private System.ComponentModel.IContainer components;
    3940
     
    7374                {
    7475                        this.components = new System.ComponentModel.Container();
     76                        System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ConfigurationForm));
    7577                        this.treeCategory = new System.Windows.Forms.TreeView();
     78                        this.imageListConfigTreeIcon = new System.Windows.Forms.ImageList(this.components);
    7679                        this.buttonCancel = new System.Windows.Forms.Button();
    7780                        this.buttonApply = new System.Windows.Forms.Button();
     
    102105                        this.treeCategory.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    103106                                | 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;
    105111                        this.treeCategory.Location = new System.Drawing.Point(0, 0);
    106112                        this.treeCategory.Name = "treeCategory";
    107113                        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),
    109115                                                                                                                                                                         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;
    111119                        this.treeCategory.Size = new System.Drawing.Size(193, 449);
    112120                        this.treeCategory.TabIndex = 0;
    113121                        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;
    114129                        //
    115130                        // buttonCancel
     
    163178                                | System.Windows.Forms.AnchorStyles.Left)
    164179                                | System.Windows.Forms.AnchorStyles.Right)));
     180                        this.panelContainer.Controls.Add(this.panelAppearance);
    165181                        this.panelContainer.Controls.Add(this.panelFacePatternList);
    166                         this.panelContainer.Controls.Add(this.panelAppearance);
    167182                        this.panelContainer.Location = new System.Drawing.Point(198, 38);
    168183                        this.panelContainer.Name = "panelContainer";
     
    246261                        // checkMouseMessage
    247262                        //
    248                         this.checkMouseMessage.Enabled = false;
    249263                        this.checkMouseMessage.Location = new System.Drawing.Point(5, 115);
    250264                        this.checkMouseMessage.Name = "checkMouseMessage";
     
    386400                        {
    387401                                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
    389417
    390418                                ListViewItem item = listViewFaces.Items.Add(faceDef.Title, imageListFacePreviews.Images.Count-1);
Note: See TracChangeset for help on using the changeset viewer.