diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-04-21 15:45:23 +0200 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2020-05-10 00:50:02 +0200 |
| commit | df2ad1e48d1aba38e93834bc89566761d56d35ff (patch) | |
| tree | 235f96f4afcbfb226a9f8825e1d966a991a724ed /Samples/common/ui/Interfaces | |
| parent | 6b4d2ea66d5312a2494d49beb6d868da68f11e9d (diff) | |
add facilities for using icons for EnumSelector + path parsing documentation and test
Diffstat (limited to 'Samples/common/ui/Interfaces')
4 files changed, 25 insertions, 10 deletions
diff --git a/Samples/common/ui/Interfaces/Divers/0.crow b/Samples/common/ui/Interfaces/Divers/0.crow index 8850e26d..c98d6410 100644 --- a/Samples/common/ui/Interfaces/Divers/0.crow +++ b/Samples/common/ui/Interfaces/Divers/0.crow @@ -64,10 +64,10 @@ </VerticalStack> <Splitter /> <VerticalStack Width="50%"> - <RadioButton Style="RadioButton2" /> - <RadioButton Style="RadioButton2" /> - <RadioButton Style="RadioButton2" /> - <RadioButton Style="RadioButton2" /> + <RadioButton Style="CheckBox2" /> + <RadioButton Style="CheckBox2" /> + <RadioButton Style="CheckBox2" /> + <RadioButton Style="CheckBox2" /> </VerticalStack> </HorizontalStack> </GroupBox> diff --git a/Samples/common/ui/Interfaces/Divers/testShape.crow b/Samples/common/ui/Interfaces/Divers/testShape.crow index 99b89b07..14af0f21 100644 --- a/Samples/common/ui/Interfaces/Divers/testShape.crow +++ b/Samples/common/ui/Interfaces/Divers/testShape.crow @@ -1,6 +1,5 @@ <?xml version="1.0"?> -<Container Fit="true" Background="Red" Tooltip="test tooltip" > - <Shape Foreground="Transparent" Background="DimGrey" Size="11,11" Path="M 5.5,0.5 L 10.5,10.5 L 0.5,10.5 Z" - MouseEnter="{Background=hgradient|0:DimGrey|0.5:RoyalBlue|1:Black}" - MouseLeave="{Background=DimGrey}"/> -</Container>
\ No newline at end of file +<VerticalStack> + <TextBox Text="{²../shape.Path}"/> + <Shape Margin="0" Width="400" Height="400" Name="shape" Foreground="Blue" Background="DimGrey" Size="100,100" Path="M 5.5,0.5 L 10.5,10.5 L 0.5,10.5 Z G"/> +</VerticalStack>
\ No newline at end of file diff --git a/Samples/common/ui/Interfaces/GraphicObject/5.crow b/Samples/common/ui/Interfaces/GraphicObject/5.crow index 0e0560fc..8fdf887d 100644 --- a/Samples/common/ui/Interfaces/GraphicObject/5.crow +++ b/Samples/common/ui/Interfaces/GraphicObject/5.crow @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<HorizontalStack Width="Stretched" Height="Fit" Margin="5" Background="Mantis"> +<HorizontalStack Width="Stretched" Height="Fit" Margin="5" Background="RoyalBlue"> <Widget Background="Carmine" Width="10%" Height="20"/> <Widget Background="Carmine" Width="Stretched" Height="20"/> <Widget Background="Carmine" Width="10%" Height="20"/> diff --git a/Samples/common/ui/Interfaces/TemplatedControl/testEnumSelector.crow b/Samples/common/ui/Interfaces/TemplatedControl/testEnumSelector.crow new file mode 100644 index 00000000..303f5432 --- /dev/null +++ b/Samples/common/ui/Interfaces/TemplatedControl/testEnumSelector.crow @@ -0,0 +1,16 @@ +<?xml version="1.0"?> +<VerticalStack Spacing="5" Margin="5"> + <Image Path="#images.valign.svg" Fit="True" Background="White" Margin="5" SvgSub="{²CurrentVAlign}"/> + <Border Height="100" Width="Fit" Background="Jet"> + <Label Margin="5" Text="vertical aligned text" VerticalAlignment="{CurrentVAlign}" Background="DarkBlue"/> + </Border> + <EnumSelector Name="valign" Caption="Vertical Alignment" EnumValue="{²CurrentVAlign}" /> + <EnumSelector RadioButtonStyle="CheckBox3" Name="valign" Caption="Vertical Alignment" EnumValue="{²CurrentVAlign}" > + <Template> + <VerticalStack Name="Content" Width="100"/> + </Template> + </EnumSelector> + <EnumSelector RadioButtonStyle="CheckBox2" Name="valign" Caption="Vertical Alignment" EnumValue="{²CurrentVAlign}" /> + <EnumSelector RadioButtonStyle="valignStyle" Name="valign1" Caption="Vertical Alignment" EnumValue="{²CurrentVAlign}" /> + <EnumSelector RadioButtonStyle="valignStyle2" Name="valign2" Caption="Vertical Alignment" EnumValue="{²CurrentVAlign}" /> +</VerticalStack>
\ No newline at end of file |