]> O.S.I.I.S - jp/crow.git/commitdiff
debug
authorjpbruyere <jp.bruyere@hotmail.com>
Sun, 6 Sep 2015 07:09:09 +0000 (09:09 +0200)
committerjpbruyere <jp.bruyere@hotmail.com>
Sun, 6 Sep 2015 07:09:09 +0000 (09:09 +0200)
Templates/Spinner.goml
Tests/Tests.csproj
src/GraphicObjects/Checkbox.cs
src/GraphicObjects/GenericStack.cs

index c537f9779f682039545bc7de419cb5529b451976..36af43c1ab9a400b6e12def32e20ab0ef108242d 100755 (executable)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <Border CornerRadius="0" Margin="0" BorderWidth="1" Width="0" Height="-1">
        <HorizontalStack Name="hstack" Margin="0" Spacing="5" Width="0" Height="-1">
-               <Label Width="0" Name="labCpt" Text="55" Margin="1" TextAlignment="RightCenter"/>
+               <Label Width="0" Name="labCpt" Text="{Value}" Margin="1" TextAlignment="RightCenter"/>
                <VerticalStack Spacing="1" Name="vstack">
                        <Button Width="10" Height="8" MouseClick="onUp">
                                <Image Margin="1" Path="#go.Images.Icons.updown.svg" SvgSub="up"/>
index 1b02997224cf2bd4a4ac43f1148fe055fe618412..6e2973a4815a8c4c4f24576a274ffab80ac40ad9 100644 (file)
@@ -8,7 +8,7 @@
     <OutputType>Exe</OutputType>
     <RootNamespace>Tests</RootNamespace>
     <AssemblyName>Tests</AssemblyName>
-    <StartupObject>test.GOLIBTest_Window</StartupObject>
+    <StartupObject>test.GOLIBTest_4</StartupObject>
     <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
     <OutputPath>..\bin\$(configuration)</OutputPath>
     <IntermediateOutputPath>obj\$(configuration)</IntermediateOutputPath>
index 49532820c55f2ebbe1ed88aa1528f7dcca454230..930fce1a367e9535205a61834d35a124770fde7d 100644 (file)
@@ -58,7 +58,8 @@ namespace go
                                        _image.SvgSub = "checked";\r
                                else\r
                                        _image.SvgSub = "unchecked";\r
-                                               \r
+                                          \r
+                               NotifyValueChanged("IsChecked",  IsChecked);\r
                 //registerForGraphicUpdate();\r
             }\r
         }\r
index 20130576f9f928dfc1966d4456ca9bf4fd683e28..fc7aa2477cecfcdffcd1462a7f852fa660a43731 100644 (file)
@@ -125,7 +125,7 @@ namespace go
                                                else if (gobjs.Length == 1) {\r
                                                        int sz = Children.Where(ch=>ch.Visible).Except (gobjs).Sum (g => g.Slot.Width);\r
                                                        if (sz < Slot.Width) {\r
-                                                               gobjs [0].Slot.Width = Slot.Width - sz - (Children.Count+1) * Spacing;\r
+                                                               gobjs [0].Slot.Width = Slot.Width - sz - (Children.Count-1) * Spacing;\r
                                                                int idx = Children.IndexOf (gobjs [0]);\r
                                                                if (idx > 0 && idx < Children.Count - 1)\r
                                                                        gobjs [0].Slot.Width -= Spacing;\r
@@ -145,7 +145,7 @@ namespace go
                                                else if (gobjs.Length == 1) {\r
                                                        int sz = Children.Where(ch=>ch.Visible).Except (gobjs).Sum (g => g.Slot.Height);\r
                                                        if (sz < Slot.Height) {\r
-                                                               gobjs [0].Slot.Height = Slot.Height - sz;\r
+                                                               gobjs [0].Slot.Height = Slot.Height - sz- (Children.Count-1) * Spacing;\r
                                                                int idx = Children.IndexOf (gobjs [0]);\r
                                                                if (idx > 0 && idx < Children.Count - 1)\r
                                                                        gobjs [0].Slot.Height -= Spacing;\r