Hi all!
i custom font in Canvas J2ME already and then i wanna do something like cursor with my custom Font. any idea or code. Please help me to do that.
Thanks,,
Raksa
Hi all!
i custom font in Canvas J2ME already and then i wanna do something like cursor with my custom Font. any idea or code. Please help me to do that.
Thanks,,
Raksa
Well you can move ahead like this-
1.Take the String arrays related containing the values you want to have on the particular key.
2.In the key pressed get the key code for every key pressed.
3.then draw the particular string array item of that key code...
4.In order to draw the next char(value) of that key code will be done according to the system time...
5.For the cursor you can draw the vertical line..
6.On every key pressed you have to increase the x-pos of the cursor by the font width per char.
please check that these line can help you in any means.
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
Hi!
I try this. First i just design a courser with animation i mean in gif file then i put it in my app in Metlet but it not work as my image. What wrong with it?
Please help.
Thanks,,
Raksa
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
hi
Without animation it will confuse.
Thanks,,
Raksa
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
you also might consider using a Sprite with an animation, so you could for example use 2-3 images to animate the blinking... that is, if ur using GameCanvas![]()
Hi,
Rather taking the sprite and making the application bounded with the newer devices like MIDP 2.0,and CLDC,you can draw the vertical line with the height that you want to take,
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
sorry to say could not get you wht u want to say....will you plz be elobarate
Thanks and Regards,
Manjul.
Thanks with Regards,
R a j - The K e r n e l
Join Delhi-NCR Nokia Developer's Community,
chaoraksa,
If u want to implement the full cursor like functionality on canvas, den u must draw Verical line at the place where u drawing your characters on canvas.Den using timer and timer task just write the logic to blink the cursor(i.e vertical line here),(the logic is like use flags which will draw that verical line White at one go and black at one go...)which wil give blinkin effect to line. And after entering any chararcter on canvas just move that vertical line by the zise of that entered character.
The logic to blink the cursor changes frm person to person. Do the easiest way u find.
Thanks,
Pritesh