Too many buttons and no response

I have a simple password window that has a textbox for the password string display and a series of buttons.

This loads OK and I have stepped into the loader and all buttons load and create fine. They all appear when the window is drawn.

The trouble is that there is no touch responce to anything in this window. For starters and testing I only enabled the ACCEPT and CANCEL buttons with OnTap handlers. Nothing responds.

If I remove buttons 7, 8, 9 and 0 it works. If I add back button 7 it fails. If add a TextBox it works.

It seems to be a limit with buttons??

XML code for the window:

<Glide Version="1.0.3">
  <Window Name="passwordWindow" Width="480" Height="272" BackColor="C0C0C0">
    <Button Name="cancelButton" X="392" Y="222" Width="80" Height="42" Alpha="255" Text="Cancel" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="acceptButton" X="8" Y="222" Width="80" Height="42" Alpha="255" Text="Accept" Font="4" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <TextBlock Name="label1" X="0" Y="0" Width="480" Height="24" Alpha="255" Text="Enter Password to Gain Access to the System Settings" TextAlign="Center" TextVerticalAlign="Top" Font="4" FontColor="0" BackColor="909090" ShowBackColor="False"/>
    <PasswordBox Name="passwordBox" X="200" Y="26" Width="80" Height="32" Alpha="255" Text="" TextAlign="Center" Font="4" FontColor="000000"/>
    <Button Name="button1" X="160" Y="60" Width="48" Height="48" Alpha="255" Text="1" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="button2" X="216" Y="60" Width="48" Height="48" Alpha="255" Text="2" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="button3" X="272" Y="60" Width="48" Height="48" Alpha="255" Text="3" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="button4" X="160" Y="112" Width="48" Height="48" Alpha="255" Text="4" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="button5" X="216" Y="112" Width="48" Height="48" Alpha="255" Text="5" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="button6" X="272" Y="112" Width="48" Height="48" Alpha="255" Text="6" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="button7" X="160" Y="164" Width="48" Height="48" Alpha="255" Text="7" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="button8" X="216" Y="164" Width="48" Height="48" Alpha="255" Text="8" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="button9" X="272" Y="164" Width="48" Height="48" Alpha="255" Text="9" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
    <Button Name="button0" X="216" Y="216" Width="48" Height="48" Alpha="255" Text="0" Font="8" FontColor="000000" DisabledFontColor="808080" TintColor="000000" TintAmount="0"/>
</Window>
</Glide>

Are you running this on a device or in the emulator?

On a device.

Strangely enough, if I run on the emulator it works.

I have change the code for the window with the issue and creating the components in code instead of calling the XML loader and now it works.

I have another window doing the very same tonight with 7 buttons on it.

I am havig a look in the Source code to try and see what is different or happening here.

Dave…

Hi Josh,

I have a demo application that shows the problem. A friend ran it on his Fez Cobra and it didn’t work either.

I’ve put a ZIP copy of this on my website.

http://www.axoninstruments.biz/Download/ButtonTest.zip

Cheers,
Dave…

I ran your example on a ChipworkX with the latest Glide DLL and it worked. I notice your tap events don’t have any output. I added a Debug.Print and each button (that has an event) responded to a tap.

Here is a really poor quality video showing it work:
http://www.tinyclr.com/uploads/movie.mp4

Thanks Josh. Is a bit strange. Creating them in my own code works and yet this is exactly what the Loader does in the Glibe library as it parses the XML so it should be just the same.

I am trying to run this on a board from Sytech (sorry it is not GHI but I needed the faster processor - 200Mhz)

Most of the time, the windows work but some just don’t.

PS… I realise that Glide is open source and states it can be used on any hardware but I believe that for commercial use there is a fee? Is this correct and if so, who do I contact to find this out?

I am still having issues even if I create the window with code or use XML.

I have a simple window with 5 buttons for setup selection and one button to return to the previous screen.

I am creating the screens just before I set Glide.MainWindow to them. I dispose of the window after I use it. I set Glide.MainWindow to null and this causes the underlying code to remove the tap events from the window and then I set the new window and the events get added again.

This is all working in regards to dispose and create but the setup window does not respond to buttons. I step into the code for Glide and I can see that it does indeed set the touchdown and touchup handlers for this window but there is no response to the touch. The event handler never gets called.

I have a timeout that causes the system to return to the main window in the event of no key presses and when it does, the main window responds to the events. Go back the setup window and nothing.

Now, I decided to add an extra button to test something and guess what, the window now responds to key presses. This does not work for all windows. I have another window that does not respond to events either and that has 7 buttons. I added an 8th button and still no response.

:o(

Dave…