×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    6

    Thread trying to update and draw a progress bar control in a dialog... help

    I have a dialog which creates a thread during its PostLayoutDynInitL. The thread periodically needs to SetAndDraw the value of a progress control (CEikProgressInfo). At the moment the SetAndDraw call seems to update the value of the progress control, but it doesn't get re-drawn unless I actually click on the dialog to get it to refresh. If I wait until the thread calls SetAndDraw 2 times without clicking on the dialog to get it to refresh, then I get a crash on the second SetAndDraw call.

    I've tried calling SetFocus, ActivateL, DrawNow, DrawDeferred, and MakeVisible all to no avail. I've also tried changing the code so that the thread actually calls the dialogs OkToExitL function with a specific keycode, and then it performs the SetAndDraw, but this didn't help.

    Anyone got any idea how I can get this working, or have any example code on how to code a thread to update a control in a dialog?

    Thanks in advance.

  2. #2
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    Re: Thread trying to update and draw a progress bar control in a dialog... help

    I have the same problem.

  3. #3
    Registered User
    Join Date
    Jul 2007
    Posts
    1

    Re: Thread trying to update and draw a progress bar control in a dialog... help

    Hi,

    I also facing the same problem. Can u share the solution with me plese?

    Regards,
    Jobin

Posting Permissions

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