Skip to main content
Participant
August 19, 2009
Question

scrolling text in tlf

  • August 19, 2009
  • 3 replies
  • 1000 views

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 has been closed for replies.

3 replies

RGulievAuthor
Participant
September 19, 2009

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);

Participating Frequently
September 18, 2009

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

Did you try TextFlow.flowComposer.composeToPosition()?

Yoshiki Okawa

Camussx
Inspiring
September 13, 2009

Hi:

This code show you some error message?