×

Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    Regular Contributor
    Join Date
    Jan 2012
    Posts
    139

    Re: reading doc or pdf file

    when i display my data in the text editor, automatically my cursor is presented at last and whole data is highlited.
    how can i remove this???

  2. #17
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: reading doc or pdf file

    Quote Originally Posted by nishantanindya View Post
    when i display my data in the text editor, automatically my cursor is presented at last and whole data is highlited.
    how can i remove this???
    Try to use: SetCursorPosL() & ClearSelectionL() functions.

  3. #18
    Regular Contributor
    Join Date
    Jan 2012
    Posts
    139

    Re: reading doc or pdf file

    I am using this way, but nothing happen
    iEditor->SetTextL(&ptr);
    iEditor->ClearSelectionL();
    iEditor->SetCursorPosL(0,EFalse);
    what should I do??
    :(

  4. #19
    Regular Contributor
    Join Date
    Jan 2012
    Posts
    139

    Re: reading doc or pdf file

    Hello All,
    There are still two area in which I am facing problem.
    1.
    This code is not working fine
    iEditor->SetTextL(&ptr);
    iEditor->ClearSelectionL();
    iEditor->SetCursorPosL(0,EFalse);
    2.
    Scrollbar is visible but scrolling is not working on device but it is working fine on emulator
    As I am using N73 to test that code and one more thing It is also working fine on C5-03(touch screen).
    What is going wrong??? Is am I missing something or what???
    Kindly help me.
    Thank you.

  5. #20
    Regular Contributor
    Join Date
    Jan 2012
    Posts
    139

    Re: reading doc or pdf file

    in 1.
    my whole text is highlighted. and cursor is at last positon.
    :(

  6. #21
    Regular Contributor
    Join Date
    Jan 2012
    Posts
    139

    Re: reading doc or pdf file

    I am adding ClearSelectionL(); at draw method
    now it has been unhighlighted
    but still unable to scrolling.
    problem is my code is not going into offerkeyevent
    what should I do...???
    :(
    please help me
    thank you

  7. #22
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: reading doc or pdf file

    problem is my code is not going into offerkeyevent
    Check if you have added your container's object into Stack by using AddToStackL() or not. If not, then do add it.

  8. #23
    Regular Contributor
    Join Date
    Jan 2012
    Posts
    139

    Re: reading doc or pdf file

    Check if you have added your container's object into Stack by using AddToStackL() or not. If not, then do add it.
    You are right pooja
    But still position of cursor is showing at last.
    not at the starting.
    I am using
    iEditor->SetCursorPosL(0,EFalse);
    but it doesnt work.
    kindly help me.
    Thank you

Similar Threads

  1. Replies: 2
    Last Post: 2007-12-28, 15:53
  2. Replies: 3
    Last Post: 2007-11-17, 10:31
  3. File reading & writing help, wav file redaing help
    By shubhamlahoti in forum Mobile Java General
    Replies: 6
    Last Post: 2007-06-27, 09:07
  4. Reading a .txt file from jar without knowing the size of the file !
    By ionutianasi in forum Mobile Java General
    Replies: 12
    Last Post: 2004-06-24, 00:27
  5. reading text file from a jar file -> file not found!
    By iecomdev in forum Mobile Java General
    Replies: 1
    Last Post: 2002-09-30, 12:27

Posting Permissions

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