diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-12-07 12:37:23 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-12-07 12:37:23 +0100 |
| commit | f4762349a9956bd7ae4fc11f1e165eafb0d2c444 (patch) | |
| tree | f7148e8510b18e4a929e80466696b7b79fba7c1f /Samples/dockableWindows/dockableWindows.cs | |
| parent | a77e1d7b06d860e040097b72cb9244a45e634e62 (diff) | |
stickyMouse, dragNdrop + mdiWins debug and teststemp
Diffstat (limited to 'Samples/dockableWindows/dockableWindows.cs')
| -rw-r--r-- | Samples/dockableWindows/dockableWindows.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Samples/dockableWindows/dockableWindows.cs b/Samples/dockableWindows/dockableWindows.cs new file mode 100644 index 00000000..65223acc --- /dev/null +++ b/Samples/dockableWindows/dockableWindows.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using Crow; +using Glfw; + +namespace tests +{ + public class BasicTests : SampleBase + { + static void Main () + { + using (BasicTests app = new BasicTests ()) { + app.Run (); + } + } + + protected override void OnInitialized () { + Load ("#ui.test.crow").DataSource = this; + AddWidget (new DockWindow (this) { Background = Colors.Blue, Left = 10, Top = 110, Resizable = true }); + AddWidget (new DockWindow (this) { Background = Colors.Red, Left = 30, Top = 130, Resizable = true }); + AddWidget (new DockWindow (this) { Background = Colors.Green, Left = 50, Top = 150, Resizable = true }); + AddWidget (new DockWindow (this) { Background = Colors.Yellow, Left = 70, Top = 170, Resizable = true }); + AddWidget (new DockWindow (this) { Background = Colors.Grey, Left = 90, Top = 190, Resizable = true }); + } + private void refreshGraphicTree (object sender, MouseButtonEventArgs e) { + NotifyValueChanged ("GraphicTree", (object)null); + NotifyValueChanged ("GraphicTree", GraphicTree); + } + + } +} |