[Q] updating the scrollbar of a PtScrollContainer

Hi,

Is there a way to update the scrollbar of a PtScrollContainer
without calling the PtWidgetExtent function ? This function
redraw the whole widget, and when the container had severals
widgets displaying images, it’s rather ugly …

Thanks.

Regards

jean-louis

Can you be more specific?
Are you adding widgets to the container and want an update?
Markus


“Jean-Louis Villecroze” <jlv@kirilla.com> wrote in message
news:9kmtli$qa8$1@inn.qnx.com

Hi,

Is there a way to update the scrollbar of a PtScrollContainer
without calling the PtWidgetExtent function ? This function
redraw the whole widget, and when the container had severals
widgets displaying images, it’s rather ugly …

Thanks.

Regards

jean-louis

In message <9kn01d$rig$1@inn.qnx.com>, “Markus Loffler” wrote:

Can you be more specific?
Are you adding widgets to the container and want an update?
Markus

Hello Markus,

Yes, I’m adding the widget one by one, and the container is
updated correctly. But once the widget location is outside the
portview, I would like the scroll bar to be displayed and updated
(it “size” should increase).

I could use the Pt_AUTO_EXTENT flag of the Container, but this flags
cause the container to be redraw everytime I add a new widget …
which is an issue.

Regards,

jean-louis

I believe the scrollbar would change if you manually set the height of the
virtual area (I think Pt_ARG_SCROLLAREA_MAX_Y). You would need to calculate
it manually though.

Markus


“Jean-Louis Villecroze” <jlv@kirilla.com> wrote in message
news:9kn1n8$sh3$1@inn.qnx.com

In message <9kn01d$rig$> 1@inn.qnx.com> >, “Markus Loffler” wrote:
Can you be more specific?
Are you adding widgets to the container and want an update?
Markus

Hello Markus,

Yes, I’m adding the widget one by one, and the container is
updated correctly. But once the widget location is outside the
portview, I would like the scroll bar to be displayed and updated
(it “size” should increase).

I could use the Pt_AUTO_EXTENT flag of the Container, but this flags
cause the container to be redraw everytime I add a new widget …
which is an issue.

Regards,

jean-louis