Hi,
How to build a drop down box in j2me Canvas?
I have tried doing it in form using ChoiceGroup.POPUP, it works.
But i want to do it in a canvas. Can anyone help me?
Hi,
How to build a drop down box in j2me Canvas?
I have tried doing it in form using ChoiceGroup.POPUP, it works.
But i want to do it in a canvas. Can anyone help me?
I dont know about J2me but in blackberry U can customize everything
earlier I was also trying to do this and found some +ve results
as guage is already converted to low level GUI (found in wiki)
I suggest to build class extending Canvas and using its paint method to suit your needs
Regards,
Saurabh
Hi, i cnt write code for you, just could give you idea, take a vector and add all the elements in it, in paint method of canvas, draw it, on key press(fire or lsoft key) simply draw all the elements of vector on canvas.
Thanks and Regards,
Manjul.
Hi,
You can take the all items as Manjul has described,in the vector or in the string array.
Then you also take the image with the shape of the choice box and draw.In that draw the items when user select the same.Like on the fire key pressed,draw the items after reading from the vector or array.Take a int variable for keeping track for the current selection implementation,
Hope that this make some sense.
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
Hi,
When using Canvas you must take care of everything yourself, no tricks here. Raj has given you a good starting point, you can also look for some open source code on the web and reuse them.
Br,
Juarez Alvares Barbosa Junior - Brazil