Using PtProgress widget

I’m trying to use PtProgress widget in order to update the screen, I put it
inside a simple “for loop” to test it, but PtProgress doesnt run til end of
the loop…
when it hits “Pt_Continue” at the end of the function… anyone know how to
fix this? maybe PtProcessEvent()??

Ran

Hi Ran

Could you post an example of the for loop code that your having problems
with?

Regards
Brenda

ran zhang <rzhang@vamcointernational.com> wrote:

I’m trying to use PtProgress widget in order to update the screen, I put it
inside a simple “for loop” to test it, but PtProgress doesnt run til end of
the loop…
when it hits “Pt_Continue” at the end of the function… anyone know how to
fix this? maybe PtProcessEvent()??

Ran

Gui Group <gui@qnx.com> wrote:
: Hi Ran

: Could you post an example of the for loop code that your having problems
: with?

: Regards
: Brenda

: ran zhang <rzhang@vamcointernational.com> wrote:
:> I’m trying to use PtProgress widget in order to update the screen, I put it
:> inside a simple “for loop” to test it, but PtProgress doesnt run til end of
:> the loop…
:> when it hits “Pt_Continue” at the end of the function… anyone know how to
:> fix this? maybe PtProcessEvent()??

The Lengthy Operations chapter of the Photon Programmer’s Guide should
help.


Steve Reid stever@qnx.com
TechPubs (Technical Publications)
QNX Software Systems

Hi Ran,

Another thought are you damaging the widget after you call the PtProgress within
the for loop. Try doing a PtDamage(widget) after PtProgress call within the for loop.

Let me know if it works
Regards
Brenda


Gui Group <gui@qnx.com> wrote:

Hi Ran

Could you post an example of the for loop code that your having problems
with?

Regards
Brenda

ran zhang <> rzhang@vamcointernational.com> > wrote:
I’m trying to use PtProgress widget in order to update the screen, I put it
inside a simple “for loop” to test it, but PtProgress doesnt run til end of
the loop…
when it hits “Pt_Continue” at the end of the function… anyone know how to
fix this? maybe PtProcessEvent()??

Ran

Hi Ran,

On some further investigation within your for loop you need to make the
following call PtBkgdHandlerProcess(). This will process the photon events that are waiting.
Sorry for the misinformation earlier.

Let me know if this works.
Regards
Brenda


Gui Group <gui@qnx.com> wrote:

Hi Ran,

Another thought are you damaging the widget after you call the PtProgress within
the for loop. Try doing a PtDamage(widget) after PtProgress call within the for loop.

Let me know if it works
Regards
Brenda



Gui Group <> gui@qnx.com> > wrote:
Hi Ran

Could you post an example of the for loop code that your having problems
with?

Regards
Brenda

ran zhang <> rzhang@vamcointernational.com> > wrote:
I’m trying to use PtProgress widget in order to update the screen, I put it
inside a simple “for loop” to test it, but PtProgress doesnt run til end of
the loop…
when it hits “Pt_Continue” at the end of the function… anyone know how to
fix this? maybe PtProcessEvent()??

Ran