×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    77

    Has appuifw.Text() a read only mode?

    Is it possible to use appuifw.Text() to display text that cannot be edited?

    I tried:
    Code:
    text = appuifw.Text()
    appuifw.app.body = text
    text.focus = False
    text.add(text_content)
    With 'focus = False' the cursor isn't shown and the input mode cannot be altered, but characters can still be entered.

    Any hints?

    TIA Martin

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Has appuifw.Text() a read only mode?

    It's currently only possible with the appuifw2 extension:
    http://code.google.com/p/appuifw2/

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    77

    Re: Has appuifw.Text() a read only mode?

    Bogdan, thanks for your reply!

    I'm currently reluctant with using 'third party' extensions (in applications I want to release), because I'm somewhat afraid of (future) compatibility and signing issues.

    Could another way be Canvas? But then I would have to handle the scrolling myself, right?

    Martin

  4. #4
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Has appuifw.Text() a read only mode?

    Yes, you would have to handle scrolling.

    One thing you could try is to detect all the keys except perhaps the softkeys using the keycapture module. This cancels their actions (if I remember correctly), so characters won't be entered. There is a code example that you can adapt here:
    http://wiki.forum.nokia.com/index.ph...sses_in_Python

  5. #5
    Registered User
    Join Date
    Sep 2003
    Posts
    77

    Re: Has appuifw.Text() a read only mode?

    keycapture.all_keys indeed works. I tried it already ;-) But then I saw that keycapture needs the SwEvent capability, which isn't user grantable and needs Express- or OpenSigned.
    I'll start with appuifw.Text() now (and switch to appuifw.Canvas() if I'm annoyed of unwanted characters accidentally entered).

    Thanks
    Martin

Similar Threads

  1. How to Read image file in binary mode
    By swapnil_mahajan in forum Symbian
    Replies: 3
    Last Post: 2008-08-15, 08:52
  2. How about a simple silent mode delay!!!
    By gsgriffin in forum General Development Questions
    Replies: 2
    Last Post: 2008-01-25, 02:04
  3. How to set WLAN IAP network mode to Ad-hoc instead of Infrastructure?
    By PopAndDestroy in forum Wired and Wireless interfaces (Closed)
    Replies: 2
    Last Post: 2007-08-29, 08:04
  4. skinning in landscape mode.
    By ravinder007 in forum Symbian
    Replies: 0
    Last Post: 2007-01-24, 11:01
  5. Replies: 5
    Last Post: 2006-08-02, 12:35

Posting Permissions

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