Ignore:
Timestamp:
Jan 29, 2005, 5:22:13 PM (19 years ago)
Author:
altba\tomoyo
Message:

panelContainerの中の設定パネルをデザイン時にDockStyle.Fillにするのをやめた。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/ConfigurationForm.cs

    r22 r28  
    8282                        this.labelTitle = new System.Windows.Forms.Label();
    8383                        this.panelContainer = new System.Windows.Forms.Panel();
     84                        this.panelAppearance = new System.Windows.Forms.Panel();
     85                        this.checkMouseMessage = new System.Windows.Forms.CheckBox();
     86                        this.label3 = new System.Windows.Forms.Label();
     87                        this.label2 = new System.Windows.Forms.Label();
     88                        this.label1 = new System.Windows.Forms.Label();
     89                        this.trackBarOpacity = new System.Windows.Forms.TrackBar();
    8490                        this.panelFacePatternList = new System.Windows.Forms.Panel();
    8591                        this.label4 = new System.Windows.Forms.Label();
     
    8894                        this.listViewFaces = new System.Windows.Forms.ListView();
    8995                        this.imageListFacePreviews = new System.Windows.Forms.ImageList(this.components);
    90                         this.panelAppearance = new System.Windows.Forms.Panel();
    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();
    9696                        this.toolTipPreviewDetail = new System.Windows.Forms.ToolTip(this.components);
    9797                        this.panelContainer.SuspendLayout();
    98                         this.panelFacePatternList.SuspendLayout();
    9998                        this.panelAppearance.SuspendLayout();
    10099                        ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).BeginInit();
     100                        this.panelFacePatternList.SuspendLayout();
    101101                        this.SuspendLayout();
    102102                        //
     
    117117                        this.treeCategory.ShowPlusMinus = false;
    118118                        this.treeCategory.ShowRootLines = false;
    119                         this.treeCategory.Size = new System.Drawing.Size(193, 449);
     119                        this.treeCategory.Size = new System.Drawing.Size(193, 491);
    120120                        this.treeCategory.TabIndex = 0;
    121121                        this.treeCategory.AfterSelect += new System.Windows.Forms.TreeViewEventHandler(this.treeCategory_AfterSelect);
     
    132132                        this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    133133                        this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    134                         this.buttonCancel.Location = new System.Drawing.Point(427, 420);
     134                        this.buttonCancel.Location = new System.Drawing.Point(606, 462);
    135135                        this.buttonCancel.Name = "buttonCancel";
    136136                        this.buttonCancel.Size = new System.Drawing.Size(87, 21);
     
    142142                        this.buttonApply.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    143143                        this.buttonApply.Enabled = false;
    144                         this.buttonApply.Location = new System.Drawing.Point(521, 420);
     144                        this.buttonApply.Location = new System.Drawing.Point(700, 462);
    145145                        this.buttonApply.Name = "buttonApply";
    146146                        this.buttonApply.Size = new System.Drawing.Size(87, 21);
     
    152152                        this.buttonOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    153153                        this.buttonOK.DialogResult = System.Windows.Forms.DialogResult.OK;
    154                         this.buttonOK.Location = new System.Drawing.Point(332, 420);
     154                        this.buttonOK.Location = new System.Drawing.Point(511, 462);
    155155                        this.buttonOK.Name = "buttonOK";
    156156                        this.buttonOK.Size = new System.Drawing.Size(87, 21);
     
    168168                        this.labelTitle.Location = new System.Drawing.Point(199, 5);
    169169                        this.labelTitle.Name = "labelTitle";
    170                         this.labelTitle.Size = new System.Drawing.Size(412, 27);
     170                        this.labelTitle.Size = new System.Drawing.Size(591, 27);
    171171                        this.labelTitle.TabIndex = 4;
    172172                        this.labelTitle.Text = "‘S”Ê";
     
    178178                                | System.Windows.Forms.AnchorStyles.Left)
    179179                                | System.Windows.Forms.AnchorStyles.Right)));
     180                        this.panelContainer.Controls.Add(this.panelFacePatternList);
    180181                        this.panelContainer.Controls.Add(this.panelAppearance);
    181                         this.panelContainer.Controls.Add(this.panelFacePatternList);
    182182                        this.panelContainer.Location = new System.Drawing.Point(198, 38);
    183183                        this.panelContainer.Name = "panelContainer";
    184                         this.panelContainer.Size = new System.Drawing.Size(411, 371);
     184                        this.panelContainer.Size = new System.Drawing.Size(590, 413);
    185185                        this.panelContainer.TabIndex = 5;
     186                        //
     187                        // panelAppearance
     188                        //
     189                        this.panelAppearance.Controls.Add(this.checkMouseMessage);
     190                        this.panelAppearance.Controls.Add(this.label3);
     191                        this.panelAppearance.Controls.Add(this.label2);
     192                        this.panelAppearance.Controls.Add(this.label1);
     193                        this.panelAppearance.Controls.Add(this.trackBarOpacity);
     194                        this.panelAppearance.Location = new System.Drawing.Point(41, 126);
     195                        this.panelAppearance.Name = "panelAppearance";
     196                        this.panelAppearance.Size = new System.Drawing.Size(366, 333);
     197                        this.panelAppearance.TabIndex = 0;
     198                        //
     199                        // checkMouseMessage
     200                        //
     201                        this.checkMouseMessage.Location = new System.Drawing.Point(5, 115);
     202                        this.checkMouseMessage.Name = "checkMouseMessage";
     203                        this.checkMouseMessage.Size = new System.Drawing.Size(400, 16);
     204                        this.checkMouseMessage.TabIndex = 4;
     205                        this.checkMouseMessage.Text = "ƒ}ƒEƒX‚Ì“®ì‚ð”w–ʂ̃EƒBƒ“ƒhƒE‚Ö“`‚¦‚é(&T)";
     206                        //
     207                        // label3
     208                        //
     209                        this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     210                        this.label3.Location = new System.Drawing.Point(524, 73);
     211                        this.label3.Name = "label3";
     212                        this.label3.Size = new System.Drawing.Size(45, 11);
     213                        this.label3.TabIndex = 3;
     214                        this.label3.Text = "•s“§–¾";
     215                        //
     216                        // label2
     217                        //
     218                        this.label2.Location = new System.Drawing.Point(4, 73);
     219                        this.label2.Name = "label2";
     220                        this.label2.Size = new System.Drawing.Size(31, 11);
     221                        this.label2.TabIndex = 2;
     222                        this.label2.Text = "“§–¾";
     223                        //
     224                        // label1
     225                        //
     226                        this.label1.Location = new System.Drawing.Point(2, 5);
     227                        this.label1.Name = "label1";
     228                        this.label1.Size = new System.Drawing.Size(196, 18);
     229                        this.label1.TabIndex = 1;
     230                        this.label1.Text = "“§–¾“x:";
     231                        //
     232                        // trackBarOpacity
     233                        //
     234                        this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     235                                | System.Windows.Forms.AnchorStyles.Right)));
     236                        this.trackBarOpacity.LargeChange = 10;
     237                        this.trackBarOpacity.Location = new System.Drawing.Point(15, 24);
     238                        this.trackBarOpacity.Maximum = 100;
     239                        this.trackBarOpacity.Name = "trackBarOpacity";
     240                        this.trackBarOpacity.Size = new System.Drawing.Size(338, 42);
     241                        this.trackBarOpacity.TabIndex = 0;
     242                        this.trackBarOpacity.TickFrequency = 10;
    186243                        //
    187244                        // panelFacePatternList
     
    191248                        this.panelFacePatternList.Controls.Add(this.buttonBrowse);
    192249                        this.panelFacePatternList.Controls.Add(this.listViewFaces);
    193                         this.panelFacePatternList.Dock = System.Windows.Forms.DockStyle.Fill;
    194                         this.panelFacePatternList.Location = new System.Drawing.Point(0, 0);
     250                        this.panelFacePatternList.Location = new System.Drawing.Point(138, 11);
    195251                        this.panelFacePatternList.Name = "panelFacePatternList";
    196                         this.panelFacePatternList.Size = new System.Drawing.Size(411, 371);
     252                        this.panelFacePatternList.Size = new System.Drawing.Size(427, 353);
    197253                        this.panelFacePatternList.TabIndex = 7;
    198254                        //
     
    200256                        //
    201257                        this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
    202                         this.label4.Location = new System.Drawing.Point(4, 350);
     258                        this.label4.Location = new System.Drawing.Point(4, 305);
    203259                        this.label4.Name = "label4";
    204260                        this.label4.Size = new System.Drawing.Size(63, 17);
     
    210266                        this.linkWebSite.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
    211267                                | System.Windows.Forms.AnchorStyles.Right)));
    212                         this.linkWebSite.Location = new System.Drawing.Point(67, 350);
     268                        this.linkWebSite.Location = new System.Drawing.Point(67, 305);
    213269                        this.linkWebSite.Name = "linkWebSite";
    214                         this.linkWebSite.Size = new System.Drawing.Size(338, 16);
     270                        this.linkWebSite.Size = new System.Drawing.Size(448, 16);
    215271                        this.linkWebSite.TabIndex = 2;
    216272                        this.linkWebSite.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkWebSite_LinkClicked);
     
    219275                        //
    220276                        this.buttonBrowse.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
    221                         this.buttonBrowse.Location = new System.Drawing.Point(322, 323);
     277                        this.buttonBrowse.Location = new System.Drawing.Point(327, 327);
    222278                        this.buttonBrowse.Name = "buttonBrowse";
    223                         this.buttonBrowse.Size = new System.Drawing.Size(87, 21);
     279                        this.buttonBrowse.Size = new System.Drawing.Size(95, 24);
    224280                        this.buttonBrowse.TabIndex = 1;
    225281                        this.buttonBrowse.Text = "ŽQÆ(&B)...";
     
    234290                        this.listViewFaces.Location = new System.Drawing.Point(0, 0);
    235291                        this.listViewFaces.Name = "listViewFaces";
    236                         this.listViewFaces.Size = new System.Drawing.Size(410, 318);
     292                        this.listViewFaces.Size = new System.Drawing.Size(427, 301);
    237293                        this.listViewFaces.TabIndex = 0;
    238294                        this.listViewFaces.DoubleClick += new System.EventHandler(this.listViewFaces_DoubleClick);
     
    246302                        this.imageListFacePreviews.TransparentColor = System.Drawing.Color.Transparent;
    247303                        //
    248                         // panelAppearance
    249                         //
    250                         this.panelAppearance.Controls.Add(this.checkMouseMessage);
    251                         this.panelAppearance.Controls.Add(this.label3);
    252                         this.panelAppearance.Controls.Add(this.label2);
    253                         this.panelAppearance.Controls.Add(this.label1);
    254                         this.panelAppearance.Controls.Add(this.trackBarOpacity);
    255                         this.panelAppearance.Dock = System.Windows.Forms.DockStyle.Fill;
    256                         this.panelAppearance.Location = new System.Drawing.Point(0, 0);
    257                         this.panelAppearance.Name = "panelAppearance";
    258                         this.panelAppearance.Size = new System.Drawing.Size(411, 371);
    259                         this.panelAppearance.TabIndex = 0;
    260                         //
    261                         // checkMouseMessage
    262                         //
    263                         this.checkMouseMessage.Location = new System.Drawing.Point(5, 115);
    264                         this.checkMouseMessage.Name = "checkMouseMessage";
    265                         this.checkMouseMessage.Size = new System.Drawing.Size(400, 16);
    266                         this.checkMouseMessage.TabIndex = 4;
    267                         this.checkMouseMessage.Text = "ƒ}ƒEƒX‚Ì“®ì‚ð”w–ʂ̃EƒBƒ“ƒhƒE‚Ö“`‚¦‚é(&T)";
    268                         //
    269                         // label3
    270                         //
    271                         this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    272                         this.label3.Location = new System.Drawing.Point(364, 73);
    273                         this.label3.Name = "label3";
    274                         this.label3.Size = new System.Drawing.Size(45, 11);
    275                         this.label3.TabIndex = 3;
    276                         this.label3.Text = "•s“§–¾";
    277                         //
    278                         // label2
    279                         //
    280                         this.label2.Location = new System.Drawing.Point(4, 73);
    281                         this.label2.Name = "label2";
    282                         this.label2.Size = new System.Drawing.Size(31, 11);
    283                         this.label2.TabIndex = 2;
    284                         this.label2.Text = "“§–¾";
    285                         //
    286                         // label1
    287                         //
    288                         this.label1.Location = new System.Drawing.Point(2, 5);
    289                         this.label1.Name = "label1";
    290                         this.label1.Size = new System.Drawing.Size(196, 18);
    291                         this.label1.TabIndex = 1;
    292                         this.label1.Text = "“§–¾“x:";
    293                         //
    294                         // trackBarOpacity
    295                         //
    296                         this.trackBarOpacity.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    297                                 | System.Windows.Forms.AnchorStyles.Right)));
    298                         this.trackBarOpacity.LargeChange = 10;
    299                         this.trackBarOpacity.Location = new System.Drawing.Point(8, 26);
    300                         this.trackBarOpacity.Maximum = 100;
    301                         this.trackBarOpacity.Name = "trackBarOpacity";
    302                         this.trackBarOpacity.Size = new System.Drawing.Size(400, 42);
    303                         this.trackBarOpacity.TabIndex = 0;
    304                         this.trackBarOpacity.TickFrequency = 10;
    305                         //
    306304                        // ConfigurationForm
    307305                        //
    308306                        this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
    309                         this.ClientSize = new System.Drawing.Size(616, 450);
     307                        this.ClientSize = new System.Drawing.Size(795, 492);
    310308                        this.Controls.Add(this.panelContainer);
    311309                        this.Controls.Add(this.labelTitle);
     
    319317                        this.Load += new System.EventHandler(this.ConfigurationForm_Load);
    320318                        this.panelContainer.ResumeLayout(false);
    321                         this.panelFacePatternList.ResumeLayout(false);
    322319                        this.panelAppearance.ResumeLayout(false);
    323320                        ((System.ComponentModel.ISupportInitialize)(this.trackBarOpacity)).EndInit();
     321                        this.panelFacePatternList.ResumeLayout(false);
    324322                        this.ResumeLayout(false);
    325323
     
    330328                {
    331329                        // ‘S”Ê‚ð•\Ž¦B
    332                         foreach (Panel pane in panelContainer.Controls)
     330                        foreach (Panel pane in panelContainer.Controls)
     331                        {
    333332                                pane.Visible = false;
     333                                pane.Dock = DockStyle.Fill;
     334                        }
    334335
    335336                        panelAppearance.Show();
     
    351352                private void treeCategory_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
    352353                {
    353                         Panel container;
    354 
    355354                        // ‚Ä‚«‚Æ‚¤
    356355                        if (e.Node.Text == labelTitle.Text) return;
     
    365364                                        listViewFaces.Items.Clear();
    366365                                        imageListFacePreviews.Images.Clear();
    367                                         int i = 0;
     366                                        panelFacePatternList.Show();
    368367
    369368                                        using (Bitmap tmpImage = new Bitmap(128, 128))
     
    386385                                                }
    387386                                        }
    388 
    389                                         panelFacePatternList.Show();
    390387                                        break;
    391388                        }
Note: See TracChangeset for help on using the changeset viewer.