change how labels are drawn on elements

debugged concurrent modification exception on painting in Visual
This commit is contained in:
Macocian Adrian Radu
2020-06-30 15:53:19 +03:00
parent 33eb129120
commit 4428e45ddd
19 changed files with 127 additions and 425 deletions

24
resources/otherui.xml Normal file
View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<Window
Name="Window"
Visible="True"
Title="GUI DEMO"
Size="1024, 576">
<Button
BackgroundColor="#ff0000"
Label="Button 1"
Icon="circle"
Location="top_left"
Size="0.3f, 0.1f"/>
<ToggleButton
BackgroundColor="#00ff00"
Label="Button 2"
Icon="arrow_up_white"
Location="top_right"
Size="0.3f, 0.3f"/>
<Panel
BackgroundColor="#555555"
Size="0.5f, 0.5f"
Location="0f, 0.5f"
/>
</Window>

View File

@@ -25,28 +25,52 @@
Margins="10"
Name="Image"
Image="clover"/>
<RadioButtons
<RadioButtonList
Name="Radio Buttons"
Size="0.4f, 0.3f">
<RadioButton
Text="Up"
Label="Up"
Name="Up"
Size="300, 20"
Icon="circle"
/>
<RadioButton
Text="Middle"
Name="Middle"
Size="300, 20"
Icon="circle"
Label="Middle"
Name="Middle"
Size="300, 20"
Icon="circle"
/>
<RadioButton
Text="Down"
Name="Down"
Size="300, 20"
Icon="circle"
Label="Down"
Name="Down"
Size="300, 20"
Icon="circle"
/>
</RadioButtons>
</RadioButtonList>
<CheckBoxList
Name="Check Box"
Size="0.4f, 0.3f"
Location="0.5f, 0.0f">
<CheckBox
Label="Up"
Name="Up"
Size="300, 20"
Icon="circle"
/>
<CheckBox
Label="Middle"
Name="Middle"
Size="300, 20"
Icon="circle"
/>
<CheckBox
Label="Down"
Name="Down"
Size="300, 20"
Icon="circle"
/>
</CheckBoxList>
<InputTextBox
BackgroundColor="#999999"