PtContainerHold not working

I have a PtPane widget containing a scrollarea and a seperate scrollbar. I
use PtContainerHold on the pane and then change the position of both the
scroll area and the scrollbar I then call PtContainer release. The scroll
bar flickers and when used over Phindows can be seen to disapear completly
then get redrawn. Am I doing something wrong isn’t containerHold supposed to
prevent this ?

can any one help?

Hi Lindsey,

I have spoken to the developer and during the time that a container is “held” using PtContainerHold(), any damage that occurs inside is discarded whereas normally the
widgets would be told to redraw where the damage is.

When you do a PtContainerRelease(), a feature of this function
damages the container in its entirety, causing it to redraw
completely. This would cause the appearance of flicker at that
time (but no flicker should be happening while the container is held).

Consider using PtStartFlux() and PtEndFlux() instead. These functions
are similar to PtContainerHold() and PtContainerRelease(), except
PtEndFlux() does not damage the widget whereas PtContainerRelease()
does. This gives you more control over which parts get updated.
You could then call PtDamageExtent() to only have part of the container
redraw, or easier still PtDamageWidget() the scroll bar and scroll area
individually.

I hope this helps

Thanks
Brenda

Previously, Lindsey Joyce wrote in qdn.public.qnx4.photon:

I have a PtPane widget containing a scrollarea and a seperate scrollbar. I
use PtContainerHold on the pane and then change the position of both the
scroll area and the scrollbar I then call PtContainer release. The scroll
bar flickers and when used over Phindows can be seen to disapear completly
then get redrawn. Am I doing something wrong isn’t containerHold supposed to
prevent this ?

can any one help?