Skip to main content
Participant
Aug 19, 2009 3:29 PM UTC
Question

scrolling text in tlf

Hello.

I'm trying to set scrollbar properties:

this._scrollBar.setScrollProperties(this._controller.compositionHeight, 0, this._controller.getContentBounds().height - this._controller.compositionHeight);

But it isn't work correct. Where is my mistake?

Thanks.

This topic is closed to new replies. Start a new post to keep the conversation going.

3 replies

RGulievAuthor
Participant
Sep 19, 2009 6:29 AM UTC

Sorry, problem solved with folowing code:

this._scrollBar.lineScrollSize = 1 * this._mainTextFlow.configuration.scrollDragPixels;

this._scrollBar.setScrollProperties(this._controller.compositionHeight,

0,

this._controller.getContentBounds().height - this._controller.compositionHeight,

this._mainTextFlow.configuration.scrollPagePercentage * this._controller.compositionHeight);

Translate
Participating Frequently
Sep 18, 2009 12:51 PM UTC

Do you mean your scrollbar does not work or is not set up correctly?

Did you try TextFlow.flowComposer.composeToPosition()?

Yoshiki Okawa

Translate
Camussx
Inspiring
Sep 13, 2009 4:33 AM UTC

Hi:

This code show you some error message?

Translate