diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-12-04 20:27:22 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-12-04 20:27:22 +0100 |
| commit | 2b974cc30f568a82bb0b1da9c82339ab943ac841 (patch) | |
| tree | ff463aeb523c14bf9f5c1c2ea80f0a90cc887236 /Samples | |
| parent | a3d4977a3cb6d7e4ce4f9627842398e6ab25d9a8 (diff) | |
wipBackends
Diffstat (limited to 'Samples')
| -rw-r--r-- | Samples/HelloWorld/main.cs | 9 | ||||
| -rw-r--r-- | Samples/PerfTests/Program.cs | 2 | ||||
| -rw-r--r-- | Samples/ShowCase/ShowCase.cs | 3 | ||||
| -rw-r--r-- | Samples/common/src/SampleBase.cs | 2 |
4 files changed, 11 insertions, 5 deletions
diff --git a/Samples/HelloWorld/main.cs b/Samples/HelloWorld/main.cs index 20fa9a27..fd70a2b9 100644 --- a/Samples/HelloWorld/main.cs +++ b/Samples/HelloWorld/main.cs @@ -6,12 +6,17 @@ using Samples; namespace HelloWorld { class Program : Interface { - Program() : base (800, 600, true, true) {} + Program() : base (800, 600, true) {} static void Main (string[] args) { using (Program app = new Program ()) { - app.Initialized += (sender, e) => app.LoadIMLFragment (@"<Label Text='Hello World'/>"); + //app.Initialized += (sender, e) => app.LoadIMLFragment (@"<Label Text='Hello World' Background='Red' Top='50' Margin='0'/>"); + //app.Initialized += (sender, e) => app.LoadIMLFragment (@"<Window Caption='hello world'/>"); app.Run (); } } + protected override void OnInitialized() + { + Load ("/mnt/devel/crow/Samples/HelloWorld/ui/helloworld.crow"); + } } } diff --git a/Samples/PerfTests/Program.cs b/Samples/PerfTests/Program.cs index b4ec4bb1..b1c6d950 100644 --- a/Samples/PerfTests/Program.cs +++ b/Samples/PerfTests/Program.cs @@ -64,7 +64,7 @@ namespace PerfTests } public TestInterface (string[] args, int width = 800, int height = 600) - : base (width, height, true, false) + : base (width, height, true) { string outDir = null; diff --git a/Samples/ShowCase/ShowCase.cs b/Samples/ShowCase/ShowCase.cs index 9096ebe6..958a6b13 100644 --- a/Samples/ShowCase/ShowCase.cs +++ b/Samples/ShowCase/ShowCase.cs @@ -35,7 +35,6 @@ namespace ShowCase Environment.SetEnvironmentVariable ("FONTCONFIG_PATH", @"C:\Users\Jean-Philippe\source\vcpkg\installed\x64-windows\tools\fontconfig\fonts"); using (Showcase app = new Showcase ()) { - app.WindowTitle = "C.R.O.W Showcase"; //app.SetWindowIcon ("#Crow.Icons.crow.png"); //app.Theme = @"C:\Users\Jean-Philippe\source\Crow\Themes\TestTheme"; CurrentProgramInstance = app; @@ -127,6 +126,8 @@ namespace ShowCase protected override void OnInitialized () { base.OnInitialized (); + WindowTitle = "C.R.O.W Showcase"; + Load ("#ShowCase.showcase.crow").DataSource = this; crowContainer = FindByName ("CrowContainer") as Container; editor = FindByName ("tb") as Editor; diff --git a/Samples/common/src/SampleBase.cs b/Samples/common/src/SampleBase.cs index 2e7440a1..e469016c 100644 --- a/Samples/common/src/SampleBase.cs +++ b/Samples/common/src/SampleBase.cs @@ -19,7 +19,7 @@ namespace Samples public class SampleBase : Interface { public SampleBase(IntPtr hWin) : base(800, 600, hWin) { } - public SampleBase() : base(800, 600, true, true) { } + public SampleBase() : base (800, 600, true) { } public Version CrowVersion => Assembly.GetAssembly(typeof(Widget)).GetName().Version; |