×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2013
    Posts
    153

    text alignment problem on pointerpress and pointerrealse method...

    hii.
    I am working on nokia asha sdk2.0 using lwuit1.5 .my problem is that i am using pointerlease (int x ,int y) and pointerpress(int x ,int y) .I am using textArea in my app .but when i changed the text in textArea on each click of pointerrelease and press method.I set the left alignment of text in textArea using textarea.setunselectedstyle.setAlignment(Component.LEFT)
    but some time text shifte to rightside and outof boundry . i am sending snapshot to you .please help me
    http://imgur.com/ObMeboj

  2. #2
    Registered User
    Join Date
    Dec 2012
    Location
    India
    Posts
    264

    Re: text alignment problem on pointerpress and pointerrealse method...

    Does it snap back after you let go ?

    I am suspecting that a drag event occurs which pushes your textarea out of bounds.Try setting setDraggable(false) for the textarea.

  3. #3
    Registered User
    Join Date
    May 2013
    Posts
    153

    Re: text alignment problem on pointerpress and pointerrealse method...

    thanks for reply but this is not working till now it set out of boundries..tell me a another solution...

  4. #4
    Registered User
    Join Date
    May 2013
    Posts
    270

    Re: text alignment problem on pointerpress and pointerrealse method...

    Thanks arunkam,, i got it fixed through the same code u gave it as a solution of http://developer.nokia.com/Community...t-till-the-end .
    Last edited by Manpreet_Singh; 2013-12-13 at 07:02.

Similar Threads

  1. Text alignment + wrapping
    By AhmedAndre in forum Symbian
    Replies: 7
    Last Post: 2010-01-23, 04:34
  2. Alignment of text using Drawtext
    By contra03 in forum Symbian
    Replies: 2
    Last Post: 2009-11-16, 06:38
  3. Problem in paragraph alignment in rich text editor.
    By kumar_sai123 in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-01-28, 14:39
  4. SVG-T Text alignment problem
    By beckersbester in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-06-30, 23:42
  5. Text Alignment
    By zivgr in forum Mobile Java General
    Replies: 2
    Last Post: 2003-05-18, 14:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •