01-16-2009 06:44 PM
This is my first attempt at development for the BB storm, and I'm using JDE 4.7.
I started with an Hello World application I found and I modified it to add a simple button that says RED. When clicked I wanted the screen background to turn RED and change the button to say BLUE, when that is clicked it turns BLUE and changes the button back to RED again.
I implement this using a standard ButtonField listener (which I call bhandler in my code). The program kind of works, with the only weird effect on the simulator being that when I click on the button, the background color does change but a small menu appears. Anyone else seen this menu issue? I'm not expecting to see a menu and I haven't coded anything to ask for a menu to appear when I click this button.
Here is my source code. The handler is in bold text. Note that the blog messes with the code so it might be changed slightly by the smileys... Any answers as to why I see a menu would be most appreciated.....thanks.
Solved! Go to Solution.
01-16-2009 07:32 PM
Thank you so much!
I just tried it and that solved it. I was wondering how to use that second field. How events are processed (obviously from front to back) is something I'm unfamiliar with this GUI yet. I'll have to look at these flags some more to see how these events pass from screen to screen or field to field.
Thanks again. Problem solved. I gave you the Kudos :-)