×

Discussion Board

Results 1 to 7 of 7

Thread: TextBox

  1. #1
    Registered User
    Join Date
    Apr 2005
    Location
    Moscow, Russia
    Posts
    3

    TextBox

    How can I create TextBox in MIDP 1.0 (Nokia 6100) with inline editing, like in "Converter II" application?
    Last edited by seregindv; 2005-04-18 at 15:13.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    34
    I'm not sure exactly what you mean, but the object textField has been availalbe since 1.0 and allows the user to enter text and go back and edit it, just like any textField, really.

    Åge Kruger

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    6

    Text box

    yes I know what is being asked and am wondering the same thing.

    In converter II there is some sort of text field, but when it is highlighted it does not show the Edit button. Instead there is a flashing cursor, and text is entered on same screen.

    I have managed to do similar, by creating a canvas and capturing the keystrokes. And using drawString.

  4. #4
    Registered User
    Join Date
    Apr 2005
    Location
    Moscow, Russia
    Posts
    3
    2 AgeKruger:
    A TextField, which you edit on the same screen (but not press "Edit", edit on new Screen, then press left soft key and on the 3rd screen press "OK"), where it is located.

    2 psycik:
    And what about flashing cursor? I think it would be too difficult...

  5. #5
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    It's not that difficult to create your own text field on a canvas. There are also at least 3 or 4 open source implementations.
    Code:
    And what about flashing cursor? I think it would be too difficult...
    You need to have a thread running in the background. It's not only for the flashing cursor, you also need to move the cursor forward after a set time if the user hasn't pressed any key.

    shmoove

  6. #6
    Registered User
    Join Date
    Apr 2005
    Location
    Moscow, Russia
    Posts
    3
    Originally posted by shmoove
    There are also at least 3 or 4 open source implementations.
    Would you give some links?

  7. #7
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Synclast, J2ME Polish, and a couple more I forget.

    shmoove

Posting Permissions

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