Changeset 28448

Show
Ignore:
Timestamp:
01/15/09 16:32:28 (4 years ago)
Author:
syo68k
Message:

リスト固定モードでもスクロールしてしまうことがある現象を修正(暫定)

Location:
lang/vb2005/Tween/Tween
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/vb2005/Tween/Tween/Resources/ChangeLog.txt

    r28446 r28448  
    77-アニメーションGIFを使用したアイコンに対応 
    88-Configファイルから正規表現を使用したフィルタを読み込んだ場合のエラーチェック強化 
     9-リスト固定モードでもスクロールしてしまうことがある現象を修正 
    910***Ver0.2.1.0(2009/1/14) 
    1011-Fav結果検証の際に壊れたxmlが返ってくると例外が発生していたのを修正 
  • lang/vb2005/Tween/Tween/Tween.vb

    r28446 r28448  
    797797        Next 
    798798        'スクロール制御 
    799         If topItem IsNot Nothing Then 
    800             If _curList.Items.Count > 0 AndAlso topItem.Index > -1 Then 
    801                 _curList.EnsureVisible(_curList.Items.Count - 1) 
    802                 _curList.EnsureVisible(topItem.Index) 
    803             End If 
    804         Else 
    805             If _statuses.SortOrder = SortOrder.Ascending AndAlso _curList.Items.Count > 0 Then 
    806                 _curList.EnsureVisible(_curList.Items.Count - 1) 
    807             End If 
    808         End If 
    809  
    810         '新着通知 
    811         If NewPostPopMenuItem.Checked AndAlso notifyPosts.Count > 0 AndAlso Not _initial Then 
    812             Dim sb As New StringBuilder 
    813             Dim reply As Boolean = False 
    814             For Each post As PostClass In notifyPosts 
    815                 If post.IsReply Then reply = True 
    816                 If sb.Length > 0 Then sb.Append(System.Environment.NewLine) 
    817                 Select Case SettingDialog.NameBalloon 
    818                     Case NameBalloonEnum.UserID 
    819                         sb.Append(post.Name).Append(" : ") 
    820                     Case NameBalloonEnum.NickName 
    821                         sb.Append(post.Nickname).Append(" : ") 
    822                 End Select 
    823                 sb.Append(post.Data) 
    824             Next 
    825             If SettingDialog.DispUsername Then NotifyIcon1.BalloonTipTitle = _username + " - " Else NotifyIcon1.BalloonTipTitle = "" 
    826             If Dm Then 
    827                 NotifyIcon1.BalloonTipIcon = ToolTipIcon.Warning 
    828                 NotifyIcon1.BalloonTipTitle += "Tween [DM] " + My.Resources.RefreshDirectMessageText1 + " " + addCount.ToString() + My.Resources.RefreshDirectMessageText2 
    829             ElseIf reply Then 
    830                 NotifyIcon1.BalloonTipIcon = ToolTipIcon.Warning 
    831                 NotifyIcon1.BalloonTipTitle += "Tween [Reply!] " + My.Resources.RefreshTimelineText1 + " " + addCount.ToString() + My.Resources.RefreshTimelineText2 
     799        If Not ListLockMenuItem.Checked Then 
     800            If topItem IsNot Nothing Then 
     801                If _curList.Items.Count > 0 AndAlso topItem.Index > -1 Then 
     802                    _curList.BeginUpdate() 
     803                    _curList.EnsureVisible(_curList.Items.Count - 1) 
     804                    _curList.EnsureVisible(topItem.Index) 
     805                    _curList.EndUpdate() 
     806                End If 
    832807            Else 
    833                 NotifyIcon1.BalloonTipIcon = ToolTipIcon.Info 
    834                 NotifyIcon1.BalloonTipTitle += "Tween " + My.Resources.RefreshTimelineText1 + " " + addCount.ToString() + My.Resources.RefreshTimelineText2 
    835             End If 
    836             NotifyIcon1.BalloonTipText = sb.ToString() 
    837             NotifyIcon1.ShowBalloonTip(500) 
    838         End If 
    839  
    840         '★★★リストリフレッシュ必要か?要検証★★★ 
    841  
    842         'サウンド再生 
    843         If Not _initial AndAlso SettingDialog.PlaySound AndAlso soundFile <> "" Then 
    844             Try 
    845                 My.Computer.Audio.Play(My.Application.Info.DirectoryPath.ToString() + "\" + soundFile, AudioPlayMode.Background) 
    846             Catch ex As Exception 
    847  
    848             End Try 
    849         End If 
    850  
    851         SetMainWindowTitle() 
    852         If Not StatusLabelUrl.Text.StartsWith("http") Then SetStatusLabel() 
    853         'TimerColorize.Stop() 
    854         'TimerColorize.Start() 
     808                If _statuses.SortOrder = SortOrder.Ascending AndAlso _curList.Items.Count > 0 Then 
     809                    _curList.BeginUpdate() 
     810                    _curList.EnsureVisible(_curList.Items.Count - 1) 
     811                    _curList.EndUpdate() 
     812                End If 
     813            End If 
     814        End If 
     815 
     816            '新着通知 
     817            If NewPostPopMenuItem.Checked AndAlso notifyPosts.Count > 0 AndAlso Not _initial Then 
     818                Dim sb As New StringBuilder 
     819                Dim reply As Boolean = False 
     820                For Each post As PostClass In notifyPosts 
     821                    If post.IsReply Then reply = True 
     822                    If sb.Length > 0 Then sb.Append(System.Environment.NewLine) 
     823                    Select Case SettingDialog.NameBalloon 
     824                        Case NameBalloonEnum.UserID 
     825                            sb.Append(post.Name).Append(" : ") 
     826                        Case NameBalloonEnum.NickName 
     827                            sb.Append(post.Nickname).Append(" : ") 
     828                    End Select 
     829                    sb.Append(post.Data) 
     830                Next 
     831                If SettingDialog.DispUsername Then NotifyIcon1.BalloonTipTitle = _username + " - " Else NotifyIcon1.BalloonTipTitle = "" 
     832                If Dm Then 
     833                    NotifyIcon1.BalloonTipIcon = ToolTipIcon.Warning 
     834                    NotifyIcon1.BalloonTipTitle += "Tween [DM] " + My.Resources.RefreshDirectMessageText1 + " " + addCount.ToString() + My.Resources.RefreshDirectMessageText2 
     835                ElseIf reply Then 
     836                    NotifyIcon1.BalloonTipIcon = ToolTipIcon.Warning 
     837                    NotifyIcon1.BalloonTipTitle += "Tween [Reply!] " + My.Resources.RefreshTimelineText1 + " " + addCount.ToString() + My.Resources.RefreshTimelineText2 
     838                Else 
     839                    NotifyIcon1.BalloonTipIcon = ToolTipIcon.Info 
     840                    NotifyIcon1.BalloonTipTitle += "Tween " + My.Resources.RefreshTimelineText1 + " " + addCount.ToString() + My.Resources.RefreshTimelineText2 
     841                End If 
     842                NotifyIcon1.BalloonTipText = sb.ToString() 
     843                NotifyIcon1.ShowBalloonTip(500) 
     844            End If 
     845 
     846            '★★★リストリフレッシュ必要か?要検証★★★ 
     847 
     848            'サウンド再生 
     849            If Not _initial AndAlso SettingDialog.PlaySound AndAlso soundFile <> "" Then 
     850                Try 
     851                    My.Computer.Audio.Play(My.Application.Info.DirectoryPath.ToString() + "\" + soundFile, AudioPlayMode.Background) 
     852                Catch ex As Exception 
     853 
     854                End Try 
     855            End If 
     856 
     857            SetMainWindowTitle() 
     858            If Not StatusLabelUrl.Text.StartsWith("http") Then SetStatusLabel() 
     859            'TimerColorize.Stop() 
     860            'TimerColorize.Start() 
    855861    End Sub 
    856862