Changeset 20712 for lang/csharp

Show
Ignore:
Timestamp:
10/04/08 22:49:49 (2 months ago)
Author:
poolmmjp
Message:

新着があったときに自動で一番下までスクロールする設定を可能にした。

Location:
lang/csharp/MMMMB/MMMMB
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/csharp/MMMMB/MMMMB/MiniBlogView.Designer.cs

    r19727 r20712  
    3939            this.browserPanel = new System.Windows.Forms.Panel(); 
    4040            this.filterPanel = new System.Windows.Forms.Panel(); 
     41            this.notifyInput = new System.Windows.Forms.ComboBox(); 
     42            this.allowInput = new System.Windows.Forms.ComboBox(); 
     43            this.denyInput = new System.Windows.Forms.ComboBox(); 
    4144            this.notifyInputLabel = new System.Windows.Forms.Label(); 
    4245            this.allowInputLabel = new System.Windows.Forms.Label(); 
     
    4447            this.filterCheck = new System.Windows.Forms.CheckBox(); 
    4548            this.panel = new System.Windows.Forms.Panel(); 
    46             this.denyInput = new System.Windows.Forms.ComboBox(); 
    47             this.allowInput = new System.Windows.Forms.ComboBox(); 
    48             this.notifyInput = new System.Windows.Forms.ComboBox(); 
     49            this.autoScrollCheck = new System.Windows.Forms.CheckBox(); 
    4950            this.browserPanel.SuspendLayout(); 
    5051            this.filterPanel.SuspendLayout(); 
     
    130131            this.browserPanel.Name = "browserPanel"; 
    131132            this.browserPanel.Size = new System.Drawing.Size(381, 278); 
    132             this.browserPanel.TabIndex = 7; 
     133            this.browserPanel.TabIndex = 1; 
    133134            //  
    134135            // filterPanel 
     
    148149            this.filterPanel.TabIndex = 0; 
    149150            //  
     151            // notifyInput 
     152            //  
     153            this.notifyInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     154                        | System.Windows.Forms.AnchorStyles.Right))); 
     155            this.notifyInput.FormattingEnabled = true; 
     156            this.notifyInput.Location = new System.Drawing.Point(56, 77); 
     157            this.notifyInput.Name = "notifyInput"; 
     158            this.notifyInput.Size = new System.Drawing.Size(318, 20); 
     159            this.notifyInput.TabIndex = 6; 
     160            this.notifyInput.TextChanged += new System.EventHandler(this.filterInput_TextChanged); 
     161            //  
     162            // allowInput 
     163            //  
     164            this.allowInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     165                        | System.Windows.Forms.AnchorStyles.Right))); 
     166            this.allowInput.FormattingEnabled = true; 
     167            this.allowInput.Location = new System.Drawing.Point(56, 51); 
     168            this.allowInput.Name = "allowInput"; 
     169            this.allowInput.Size = new System.Drawing.Size(318, 20); 
     170            this.allowInput.TabIndex = 4; 
     171            this.allowInput.TextChanged += new System.EventHandler(this.filterInput_TextChanged); 
     172            //  
     173            // denyInput 
     174            //  
     175            this.denyInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
     176                        | System.Windows.Forms.AnchorStyles.Right))); 
     177            this.denyInput.FormattingEnabled = true; 
     178            this.denyInput.Location = new System.Drawing.Point(56, 25); 
     179            this.denyInput.Name = "denyInput"; 
     180            this.denyInput.Size = new System.Drawing.Size(318, 20); 
     181            this.denyInput.TabIndex = 2; 
     182            this.denyInput.TextChanged += new System.EventHandler(this.filterInput_TextChanged); 
     183            //  
    150184            // notifyInputLabel 
    151185            //  
     
    196230            this.panel.Name = "panel"; 
    197231            this.panel.Size = new System.Drawing.Size(381, 303); 
    198             this.panel.TabIndex = 8; 
    199             //  
    200             // denyInput 
    201             //  
    202             this.denyInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    203                         | System.Windows.Forms.AnchorStyles.Right))); 
    204             this.denyInput.FormattingEnabled = true; 
    205             this.denyInput.Location = new System.Drawing.Point(56, 25); 
    206             this.denyInput.Name = "denyInput"; 
    207             this.denyInput.Size = new System.Drawing.Size(318, 20); 
    208             this.denyInput.TabIndex = 2; 
    209             this.denyInput.TextChanged += new System.EventHandler(this.filterInput_TextChanged); 
    210             //  
    211             // allowInput 
    212             //  
    213             this.allowInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    214                         | System.Windows.Forms.AnchorStyles.Right))); 
    215             this.allowInput.FormattingEnabled = true; 
    216             this.allowInput.Location = new System.Drawing.Point(56, 51); 
    217             this.allowInput.Name = "allowInput"; 
    218             this.allowInput.Size = new System.Drawing.Size(318, 20); 
    219             this.allowInput.TabIndex = 4; 
    220             this.allowInput.TextChanged += new System.EventHandler(this.filterInput_TextChanged); 
    221             //  
    222             // notifyInput 
    223             //  
    224             this.notifyInput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
    225                         | System.Windows.Forms.AnchorStyles.Right))); 
    226             this.notifyInput.FormattingEnabled = true; 
    227             this.notifyInput.Location = new System.Drawing.Point(56, 77); 
    228             this.notifyInput.Name = "notifyInput"; 
    229             this.notifyInput.Size = new System.Drawing.Size(318, 20); 
    230             this.notifyInput.TabIndex = 6; 
    231             this.notifyInput.TextChanged += new System.EventHandler(this.filterInput_TextChanged); 
     232            this.panel.TabIndex = 6; 
     233            //  
     234            // autoScrollCheck 
     235            //  
     236            this.autoScrollCheck.AutoSize = true; 
     237            this.autoScrollCheck.Location = new System.Drawing.Point(5, 79); 
     238            this.autoScrollCheck.Name = "autoScrollCheck"; 
     239            this.autoScrollCheck.Size = new System.Drawing.Size(109, 16); 
     240            this.autoScrollCheck.TabIndex = 5; 
     241            this.autoScrollCheck.Text = "自動スクロール(&S)"; 
     242            this.autoScrollCheck.UseVisualStyleBackColor = true; 
    232243            //  
    233244            // MiniBlogView 
     
    235246            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); 
    236247            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 
     248            this.Controls.Add(this.autoScrollCheck); 
    237249            this.Controls.Add(this.panel); 
    238250            this.Controls.Add(this.reloadButton); 
     
    271283        private System.Windows.Forms.ComboBox notifyInput; 
    272284        private System.Windows.Forms.ComboBox allowInput; 
     285        private System.Windows.Forms.CheckBox autoScrollCheck; 
    273286    } 
    274287} 
  • lang/csharp/MMMMB/MMMMB/MiniBlogView.cs

    r20447 r20712  
    215215            Template main = new Template("main"); 
    216216            main.SetValue("items", sb.ToString()); 
    217             main.SetValue("scroll", scrollY.ToString()); 
     217            main.SetValue("scroll", (autoScrollCheck.Checked ? int.MaxValue : scrollY).ToString()); 
    218218            main.SetValue("servicename", miniBlog.ServiceName); 
    219219            return main.ToString();