auto-alignment of words

Forum for J2ME mobile games related topics including programming doubts, books and other resources for J2ME game development

auto-alignment of words

Postby koey » Sat Jul 14, 2007 11:11 am

can the words displayed on the screen of mobile be auto-aligned to the next line? e.g. if 1 line can only fit for 20 characters display, from the 21th character, can it be auto-align in the next lines by using some functions?

or I need to count the words display and align it myself?

Posts: 44
Joined: Fri Jan 19, 2007 5:07 pm

Postby DevelopmentTeam » Sat Jul 14, 2007 11:43 am

if you mean in a Canvas when using DrawString, I am sure you need to write a function which will split string into string[] according to the width occupied by the string on the screen. But when u are speaking about Midlet, it is already taken care.
User avatar
Site Admin
Posts: 661
Joined: Tue Aug 15, 2006 8:39 am
Location: India

Postby koey » Sat Jul 14, 2007 3:27 pm poor that I am using Canvas......

Thanks a lot. I have already make the alignment myself. A troublesome but easy task actually.
Posts: 44
Joined: Fri Jan 19, 2007 5:07 pm

Return to J2ME Games

Who is online

Users browsing this forum: No registered users and 1 guest