Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Apr 2006

    Exclamation TThreadFunction n Refresh

    Hi All Experts!

    I have created a new RThread in AO.

    When the thread is resumed, it is executing the function wrapped in TThreadFunction.
    While executing that function I want to get the update status on screen.

    Simply I wanna refresh the screen n display the current status of execution.

    I have used CEikLabel for displaying text in my container.

    The screen is getting refreshed automatically twice i.e. when I create the thread in AO(b4 resume) n when the TThreadFunction execution completes(i.e when it comes in RunL of AO)

    My screen is not getting refreshed automatically when the TThreadFunction is getting executed though I call AO refresh function from it.

    But when I press any key its getting updated with the current status.

    Its probably coz I am launching new thread in my app process.

    I have tried all possible options like DrawNow, DrawDeferred, ActivateL ..TRawEvent

    Badly stuck with this issue :-(

    Pls guide.

    Shilpa Kulkarni

  2. #2
    Regular Contributor
    Join Date
    Mar 2006

    Re: TThreadFunction n Refresh

    Hi Shilpa,

    I am facing the same problem as you, in that i am unable to refresh screen from another thread.

    I am calling DrawNow()/DrawDeferred() from my child thread.I am using a child thread instead of a timer, to call Draw periodically.

    I came across some posts saying updating is not possible, with such an approach.Did you find any solution.If yes can you please share with me.

    I will be happy to hear from you.


Similar Threads

  1. When can you set the screensaver's Refresh Timer Value?
    By azhrei in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2008-08-23, 10:12
  2. Periodically Refresh Message Inbox
    By limssd in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2006-06-29, 03:13
  3. Dynamic ListBox Refresh Problem
    By hclemson in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-05-03, 10:21
  4. TThreadFunction?
    By Sasuturunen in forum Symbian
    Replies: 1
    Last Post: 2004-08-11, 09:24
  5. refresh issue with conversion of wml to xhtml
    By jonnystewart in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2003-08-29, 09:33

Posting Permissions

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