From a4ba4781ad7c88166b977e4144be6aaf4488fd57 Mon Sep 17 00:00:00 2001 From: jpbruyere Date: Tue, 8 Mar 2016 07:29:36 +0100 Subject: [PATCH] combo popup sizing, binding creation in code --- .gitignore | 1 + Templates/ComboBox.goml | 15 ++++--- Tests/GOLIBTestsOTK.cs | 3 +- Tests/Interfaces/testColorList.crow | 6 ++- Tests/Interfaces/testCombobox.goml | 4 +- src/CompilerServices/CompilerServices.cs | 5 +++ src/GraphicObjects/ComboBox.cs | 2 +- src/GraphicObjects/GraphicObject.cs | 25 ++++++++---- src/GraphicObjects/ListBox.cs | 52 +++++++++++++----------- 9 files changed, 69 insertions(+), 44 deletions(-) diff --git a/.gitignore b/.gitignore index 27a2e1e4..7aa58178 100644 --- a/.gitignore +++ b/.gitignore @@ -9,6 +9,7 @@ packages /obj/* /GOLib.userprefs /Tests/obj/* +/OTKCrow/obj /Tests/bin/* /UnitTest/obj /UnitTest/bin diff --git a/Templates/ComboBox.goml b/Templates/ComboBox.goml index 8c5782fc..a114bed8 100755 --- a/Templates/ComboBox.goml +++ b/Templates/ComboBox.goml @@ -13,14 +13,17 @@ - - + + Height="-1" Width="{../WidthPolicy}" Name="List" Margin="0" + HorizontalAlignment="Left" + VerticalAlignment="Top"/> diff --git a/Tests/GOLIBTestsOTK.cs b/Tests/GOLIBTestsOTK.cs index feacdd86..9c522b32 100644 --- a/Tests/GOLIBTestsOTK.cs +++ b/Tests/GOLIBTestsOTK.cs @@ -29,8 +29,9 @@ namespace testOTK int frameCpt = 0; int idx = 0; string[] testFiles = { - "0.crow", "testColorList.crow", + "testCombobox.goml", + "0.crow", "testCheckbox.goml", "testWindow.goml", "fps.goml", diff --git a/Tests/Interfaces/testColorList.crow b/Tests/Interfaces/testColorList.crow index 054c4c1a..f98ef134 100755 --- a/Tests/Interfaces/testColorList.crow +++ b/Tests/Interfaces/testColorList.crow @@ -2,7 +2,7 @@