[Tween-svn] [1342] TreeView上をカーソルキーで動くときはノードを自動的に展開しないように

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2011年 1月 11日 (火) 21:14:52 JST


Revision: 1342
          http://sourceforge.jp/projects/tween/svn/view?view=rev&revision=1342
Author:   f_swallow
Date:     2011-01-11 21:14:51 +0900 (Tue, 11 Jan 2011)

Log Message:
-----------
TreeView上をカーソルキーで動くときはノードを自動的に展開しないように

Modified Paths:
--------------
    trunk/Tween/AppendSettingDialog.vb
    trunk/Tween/Tween.vbproj


-------------- next part --------------
Modified: trunk/Tween/AppendSettingDialog.vb
===================================================================
--- trunk/Tween/AppendSettingDialog.vb	2011-01-11 00:47:24 UTC (rev 1341)
+++ trunk/Tween/AppendSettingDialog.vb	2011-01-11 12:14:51 UTC (rev 1342)
@@ -138,6 +138,12 @@
         pnl.Visible = True
     End Sub
 
+    Private Sub TreeView1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TreeView1.KeyDown
+        If e.KeyCode = Keys.Down OrElse e.KeyCode = Keys.Up Then
+            FirstExpandNode = True
+        End If
+    End Sub
+
     Private Sub Save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Save.Click
         If TweenMain.IsNetworkAvailable() AndAlso _
             (ComboBoxAutoShortUrlFirst.SelectedIndex = UrlConverter.Bitly OrElse ComboBoxAutoShortUrlFirst.SelectedIndex = UrlConverter.Jmp) AndAlso _

Modified: trunk/Tween/Tween.vbproj
===================================================================
--- trunk/Tween/Tween.vbproj	2011-01-11 00:47:24 UTC (rev 1341)
+++ trunk/Tween/Tween.vbproj	2011-01-11 12:14:51 UTC (rev 1342)
@@ -48,6 +48,7 @@
     <NoWarn>42353,42354,42355</NoWarn>
     <WarningsAsErrors>41999,42016,42017,42018,42019,42020,42021,42022,42032,42036</WarningsAsErrors>
     <RemoveIntegerChecks>true</RemoveIntegerChecks>
+    <PlatformTarget>x86</PlatformTarget>
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
     <DebugType>pdbonly</DebugType>



Tween-svn メーリングリストの案内
Back to archive index