Hi,
I will like to create J2ME touch buttons. I have created a rectangle canvas and will like to use the coordinates to fire the event. Appreciate if you can post some codes or links to help.
Thanks,
Hi,
I will like to create J2ME touch buttons. I have created a rectangle canvas and will like to use the coordinates to fire the event. Appreciate if you can post some codes or links to help.
Thanks,
something like this ?
http://wiki.forum.nokia.com/index.ph...dition_devices
not really. I will like to have two touchable buttons (no tactile) and each button will go to the next page. But this is a wonderful url. I will keep researching
You can also ref. to this code example: http://wiki.forum.nokia.com/index.ph..._Touch_Devices
Making complete keyboard on Canvas that works with touch.
thanks,
~Amitabh
Guys, Thanks for your help. I am understanding this better now.
I have to use CustomItem to create the button so that it calls on the 'button'. I have create two customitem but how can l make each customitem run its own function when pressed?
Example: When C1 is pressed, it runs function A, and when C2 is pressed, it runs a separate function?
attach codes
form = new Form("CustomItemMIDletExample");
exit = new Command("Exit", Command.EXIT, 0);
CustomItemExample C1 = new CustomItemExample("Enter");
form.append(C1);
CustomItemExample C2 = new CustomItemExample("Exit");
form.append(C2);
are you cgonna useCommands ?
then u need the Commandlistener interface...
i want to use two touch buttons. not using the left and right soft keys.
well then you will have to use your own logic..
The link I posted is still usable, in that code you can see how to react on an user actually pressing on your canvas...
then you take the coordinates of this "click", check if they are within the boundaries of one of your buttons and act according to that...
That means you can create your own customItem (which has it's own canvas if I'm not mistaken) and use the above to implement your two buttons and act on any of those being pressed...
May I ask what you mean with "I will like to have two touchable buttons (no tactile)" ?
Tactile is another word for touch...