]> O.S.I.I.S - jp/crow.git/commitdiff
update tests
authorjpbruyere <jp.bruyere@hotmail.com>
Mon, 29 Feb 2016 23:02:01 +0000 (00:02 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Mon, 29 Feb 2016 23:02:01 +0000 (00:02 +0100)
Tests/GOLIBTest_0.cs
Tests/Interfaces/testCombobox.goml
Tests/Interfaces/testExpandable.goml

index 922eed40f9d0cc160f5437f80e9b49e18dbe970a..32067ae2ae9c2106970b9115897e6c08d6cea2b5 100644 (file)
@@ -28,8 +28,18 @@ namespace test6
                protected override void OnLoad (EventArgs e)
                {
                        base.OnLoad (e);
-                       g = LoadInterface("Interfaces/test0.goml");
-                       l = g.FindByName ("labCpt") as Label;
+//                     g = LoadInterface("Interfaces/test0.goml");
+//                     l = g.FindByName ("labCpt") as Label;
+                       MessageBox m = new MessageBox();
+                       m.Message = "this is a test";
+                       m.Ok += M_Ok;
+                       //m.DataSource = this;
+                       this.AddWidget(m);
+               }
+
+               void M_Ok (object sender, EventArgs e)
+               {
+                       Debug.WriteLine ("ok");
                }
 
                void onUp (object sender, MouseButtonEventArgs e)
index 181073a1c6d08f16268c00b2391c634ebed3a112..73007079237d0d20fa6e5d5814bd3f32d67deb23 100755 (executable)
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
 <VerticalStack>
-       <ComboBox Width="50" Data="{TestList}" SelectedIndex="0"
+       <ComboBox Width="250" Data="{TestList}" SelectedIndex="0"
                ItemTemplate="#Tests.Interfaces.colorItem.crow"/>
 </VerticalStack>
\ No newline at end of file
index 60433b252eae22a185b21cace014fa4e51e0622d..1ac9fb591254cffd5cfd6b8dc3939f3c56cf269b 100755 (executable)
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <Expandable Fit="true" Caption="Test expandable" Background="DimGray">
-<!--           <VerticalStack Margin="5" Background="Green" Fit="true">
+               <VerticalStack Margin="5" Background="Green" Fit="true">
                        <CheckBox Name="chk1" Background="Red" Fit="true"/>
                        <CheckBox Name="chk2" IsChecked="true" Fit="true"/>
                        <CheckBox Name="chk3" Fit="true"/>
@@ -9,5 +9,5 @@
                                <Label Name="captionFps" Text="Fps:" Width="30" TextAlignment="Right"/>
                                <Label Name="valueFps" Text="{fps}" Font="droid , 12" Width="-1" TextAlignment="Center" Background="AoEnglish"/>
                        </HorizontalStack>
-               </VerticalStack>-->
+               </VerticalStack>
 </Expandable>