Hi have still got issues with touch events not being accepted for a window.
If I create an XML file as follows the system still responds to touch events:
<Glide Version="1.0.4">
<Window Name="phoneWindow" Width="480" Height="272" BackColor="F0F0A0">
<Button Name="cancelPhoneButton" X="392" Y="222" Width="80" Height="42" Alpha="255" Text="Cancel" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
<Button Name="acceptPhoneButton" X="8" Y="222" Width="80" Height="42" Alpha="255" Text="Accept" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
<TextBlock Name="titlePhoneText" X="0" Y="0" Width="480" Height="24" Alpha="255" Text="SMS Phone Number Setup" TextAlign="Center" TextVerticalAlign="Top" Font="4" FontColor="0" BackColor="A0A0A0" ShowBackColor="True"/>
<TextBox Name="phone1Text" X="80" Y="30" Width="150" Height="32" Alpha="255" Text=" " TextAlign="Left" Font="4" FontColor="000000"/>
<TextBox Name="phone2Text" X="80" Y="65" Width="150" Height="32" Alpha="255" Text=" " TextAlign="Left" Font="4" FontColor="000000"/>
<TextBox Name="phone3Text" X="80" Y="100" Width="150" Height="32" Alpha="255" Text=" " TextAlign="Left" Font="4" FontColor="000000"/>
<TextBox Name="phone4Text" X="80" Y="135" Width="150" Height="32" Alpha="255" Text=" " TextAlign="Left" Font="4" FontColor="000000"/>
</Window>
</Glide>
If I then add another textbox, it stops responding to touch events. I can pause the application and my other threads are still running. I just don’t get any more touch events for this window. This code below causes the event handler to stop working.
<Glide Version="1.0.4">
<Window Name="phoneWindow" Width="480" Height="272" BackColor="F0F0A0">
<Button Name="cancelPhoneButton" X="392" Y="222" Width="80" Height="42" Alpha="255" Text="Cancel" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
<Button Name="acceptPhoneButton" X="8" Y="222" Width="80" Height="42" Alpha="255" Text="Accept" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
<TextBlock Name="titlePhoneText" X="0" Y="0" Width="480" Height="24" Alpha="255" Text="SMS Phone Number Setup" TextAlign="Center" TextVerticalAlign="Top" Font="4" FontColor="0" BackColor="A0A0A0" ShowBackColor="True"/>
<TextBox Name="phone1Text" X="80" Y="30" Width="150" Height="32" Alpha="255" Text=" " TextAlign="Left" Font="4" FontColor="000000"/>
<TextBox Name="phone2Text" X="80" Y="65" Width="150" Height="32" Alpha="255" Text=" " TextAlign="Left" Font="4" FontColor="000000"/>
<TextBox Name="phone3Text" X="80" Y="100" Width="150" Height="32" Alpha="255" Text=" " TextAlign="Left" Font="4" FontColor="000000"/>
<TextBox Name="phone4Text" X="80" Y="135" Width="150" Height="32" Alpha="255" Text=" " TextAlign="Left" Font="4" FontColor="000000"/>
<TextBox Name="phone5Text" X="80" Y="170" Width="150" Height="32" Alpha="255" Text=" " TextAlign="Left" Font="4" FontColor="000000"/>
</Window>
</Glide>
I am disposing of the previous window and creating this new one each time. I was running out of memory trying to keep them all in memory at the same time. With a 200Mhz processor there is hardly any delay.
I have in total 9 different windows and this is the only one I am having issues with. My main screen has 26 TextBox objects on it and it works without a hitch.
I used the Glide online editor to create the windows.
Any ideas where to start looking?
Cheers.