Blackberry Developement
Posted
by varun
on Stack Overflow
See other posts from Stack Overflow
or by varun
Published on 2010-04-18T12:10:12Z
Indexed on
2010/04/18
12:13 UTC
Read the original article
Hit count: 154
blackberry
Hi, I am new to Blackberry Development.This is my first Question for you people. I am creating a search box for my project. But it looks like blackberry doesn't have an internal api for creating single line Edit field. I have created a Custom Field by extending BasciEditField overriding methods like layout, paint. In paint i am drawing a rectangle with getpreferred width and height. But the cursor is coming at default position (top-left) in Edit Field. Can any body tell me how i can draw it where my text is(i.e in middle of Edit Field by calling drwaText()). Thanks,
© Stack Overflow or respective owner