From: jpbruyere Date: Wed, 27 Jan 2016 13:01:18 +0000 (+0100) Subject: test refresh of scrollbar in listbox template, add RegisterForGraphicUpdate in scroll... X-Git-Tag: 0.3~91 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=bd45fd655c1314660349e009e761d1b0abb68fa6;p=jp%2Fcrow.git test refresh of scrollbar in listbox template, add RegisterForGraphicUpdate in scroller props --- diff --git a/Tests/GOLIBTest_Listbox.cs b/Tests/GOLIBTest_Listbox.cs index 1d6b2f38..cedf695a 100644 --- a/Tests/GOLIBTest_Listbox.cs +++ b/Tests/GOLIBTest_Listbox.cs @@ -82,13 +82,21 @@ namespace test { base.OnLoad (e); - TestList = Directory.GetFileSystemEntries("/home/jp/tmp/mtgdata/a", "*.txt",SearchOption.AllDirectories).ToList(); + //TestList = Directory.GetFileSystemEntries("/home/jp/tmp/mtgdata/a", "*.txt",SearchOption.AllDirectories).ToList(); GraphicObject tlb = LoadInterface("Interfaces/test_Listbox.goml"); tlb.DataSource = this; // TestList [1].Field = "test string"; // ValueChanged.Raise(this, new ValueChangeEventArgs ("TestList", TestList)); } + void OnClear (object sender, MouseButtonEventArgs e){ + TestList = null; + ValueChanged.Raise(this, new ValueChangeEventArgs ("TestList", TestList)); + } + void OnLoadList (object sender, MouseButtonEventArgs e){ + TestList = Directory.GetFileSystemEntries("/home/jp/tmp/mtgdata/a", "*.txt",SearchOption.AllDirectories).ToList(); + ValueChanged.Raise(this, new ValueChangeEventArgs ("TestList", TestList)); + } protected override void OnMouseMove (MouseMoveEventArgs e) { base.OnMouseMove (e); @@ -102,7 +110,8 @@ namespace test } protected override void OnKeyDown (KeyboardKeyEventArgs e) { - TestList.Add ("newly added list item"); + TestList = Directory.GetFileSystemEntries("/home/jp/tmp/mtgdata/a", "*.txt",SearchOption.AllDirectories).ToList(); + //TestList.Add ("newly added list item"); ValueChanged.Raise(this, new ValueChangeEventArgs ("TestList", TestList)); } diff --git a/Tests/Interfaces/test_Listbox.goml b/Tests/Interfaces/test_Listbox.goml index 342f2909..fa4b730c 100755 --- a/Tests/Interfaces/test_Listbox.goml +++ b/Tests/Interfaces/test_Listbox.goml @@ -1,25 +1,27 @@  - -