×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    17

    Selected bold of the text display

    Part of my code is:
    self4.gethost= lightblue.gethostaddr()
    self4.finddname= lightblue.finddevicename(lightblue.gethostaddr())
    self4.gethostcl= lightblue.gethostclass()

    self4.text = u"Host device name : %s\nHost device class : %s\nHost MAC address : %s\n" % (self4.finddname,self4.gethostcl, self4.gethost)

    Below my code that will 'BOLD' all my texts including the received datas:
    tx=appuifw.Text()
    tx.style=appuifw.STYLE_BOLD
    appuifw.app.body=tx
    #appuifw.app.body = appuifw.Text()

    My question is how to 'BOLD' my texts:

    Host device name :
    Host device class:
    Host MAC address:

    and not 'BOLD' the received datas from the phone?

    eg. Nokia N95, 452,00:54:G5:F6:68:45,

  2. #2
    Regular Contributor
    Join Date
    Jan 2004
    Location
    Helsinki
    Posts
    376

    Re: Selected bold of the text display

    Search for TextRenderer class in this forums, it allows you to render non-editable text on canvas.

    Quote Originally Posted by ComThink View Post
    Part of my code is:
    self4.gethost= lightblue.gethostaddr()
    self4.finddname= lightblue.finddevicename(lightblue.gethostaddr())
    self4.gethostcl= lightblue.gethostclass()

    self4.text = u"Host device name : %s\nHost device class : %s\nHost MAC address : %s\n" % (self4.finddname,self4.gethostcl, self4.gethost)

    Below my code that will 'BOLD' all my texts including the received datas:
    tx=appuifw.Text()
    tx.style=appuifw.STYLE_BOLD
    appuifw.app.body=tx
    #appuifw.app.body = appuifw.Text()

    My question is how to 'BOLD' my texts:

    Host device name :
    Host device class:
    Host MAC address:

    and not 'BOLD' the received datas from the phone?

    eg. Nokia N95, 452,00:54:G5:F6:68:45,
    Mikko Ohtamaa

    http://mfabrik.com
    http://blog.mfabrik.com

Similar Threads

  1. How to display text stored in a TBuf or TDesc?
    By s3ni in forum Symbian User Interface
    Replies: 17
    Last Post: 2009-08-10, 08:45
  2. Nokia N-Series Complete Model Line-Up
    By Dopod in forum General Development Questions
    Replies: 6
    Last Post: 2008-07-22, 20:16
  3. Grid Text Label Display Problem..........
    By pravin_swami in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-02-12, 08:51
  4. Replies: 1
    Last Post: 2003-07-16, 08:07
  5. Text display in listbox - Series 60
    By nitinkumar in forum Symbian User Interface
    Replies: 2
    Last Post: 2003-06-18, 07:34

Posting Permissions

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