No touch response for a new window

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.

So, out of 9 total windows only that one doesn’t work?

Yes. That is what is strange.

I have copied and pasted bits at a time. When I add that 5th button it fails.

I have also tonight tried to create the window in code and same thing happens.

All the other windows work fine.

If I breakpoint into the even handler in Glide, there is no calls being made.

Dave…

I wonder. I see that your problematic window has the same name as the first one. Try using a different name? This is a wild guess.

The next step would be to get full glide source code and try to debug earlier in the event propagation and see where does it stop.

I just noticed that I posted the full code and not the cutdown one for the first block. Edited now.

I have been stepping into the Glide source but don’t see any reason it would stop handling events.

My code sets up the 2 buttons for OnTapEvents after the XML is loaded but the event handler in Glide just stops being called.

Stepping the loader, I can see that the window gets event handling enabled so that part is being called.

If I write a timeout handler to return to the main window, it then starts to get events.

All very strange and taking up a lot of my time to get this completed.

Dave…
PS… I’ll try the name change but I don’t see how that would affect it.