Main Site Documentation

Textblock positioning in designer


#1

I’ve made a xml file in the designer.
I set textblocks and all looks fine, but on the display these textblocks are not correct in position.


<Glide Version="1.0.3">
  <Window Name="adjust" Width="480" Height="270" BackColor="dce3e7">
    <Button Name="home" X="0" Y="0" Width="50" Height="32" Alpha="255" Text="Home" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <TextBox Name="genauigkeit_wert" X="32" Y="77" Width="80" Height="32" Alpha="255" Text="" TextAlign="Left" Font="4" FontColor="000000"/>
    <TextBlock Name="text_genauigkeit" X="32" Y="60" Width="100" Height="32" Alpha="255" Text="Genauigkeit" TextAlign="Left" TextVerticalAlign="Bottom" Font="4" FontColor="0" BackColor="000000" ShowBackColor="False"/>
    <TextBlock Name="text_helligkeit" X="197" Y="60" Width="100" Height="32" Alpha="255" Text="Helligkeit" TextAlign="Left" TextVerticalAlign="Bottom" Font="4" FontColor="0" BackColor="000000" ShowBackColor="False"/>
    <TextBox Name="helligkeit_wert" X="190" Y="77" Width="80" Height="32" Alpha="255" Text="" TextAlign="Left" Font="4" FontColor="000000"/>
    <TextBlock Name="text_fade" X="363" Y="60" Width="100" Height="32" Alpha="255" Text="Fade" TextAlign="Left" TextVerticalAlign="Bottom" Font="4" FontColor="0" BackColor="000000" ShowBackColor="False"/>
    <TextBox Name="fade_wert" X="347" Y="77" Width="80" Height="32" Alpha="255" Text="" TextAlign="Left" Font="4" FontColor="000000"/>
    <Button Name="save" X="188" Y="0" Width="80" Height="32" Alpha="255" Text="Save" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
  </Window>
</Glide>

cu
Andreas


#2

when you boot is your screen set to 320x… resolution ot 480x272…?

Might need to run calibrate code if this is the case.

http://www.tinyclr.com/forum/search/?q=calibrate