Jump to content
Software FX Community

Scrollview...


User (Legacy)

Recommended Posts

Hi,

I setup a chart and use setscrollview to 25 points. The intitial chart

displays 25 points with a scroll bar, everything seems normal; however, if a

user resizes the control wider the scrollbar dissapears and more points

display... If a user resizes the control smaller, the scrollview just

diminishes, showing less and less points...

Is this by design, or is there a way to persist my 25 points always on

screen?

The most logical, but I think overprocessed way, is to put setscrollview =

25 inside the resize call... I havn't tried this, and would like your

feeling on how to do this.

Thanks,

Chase Gale

Quantrex

Link to comment
Share on other sites

Yes. This is by design, SetScrollView just calculates the Pixels-Per-Unit

factor for the CURRENT chart size. This factor remains set when you resize

the chart. So the distance between point is what remains constant.

You can force a specific number of points (if that is what you want) by

calling SetScrollView every time the chart is resized.

This, however, may cause very odd results specially when you resize down as

you are going to crunch as many points into a smaller space.

--

FP

Software FX Support

"Chase Gale" <cgale@fxsol.com> wrote in message

news:$suENB7pCHA.2684@webserver1.softwarefx.com...

> Hi,

>

> I setup a chart and use setscrollview to 25 points. The intitial chart

> displays 25 points with a scroll bar, everything seems normal; however, if

a

> user resizes the control wider the scrollbar dissapears and more points

> display... If a user resizes the control smaller, the scrollview just

> diminishes, showing less and less points...

>

> Is this by design, or is there a way to persist my 25 points always on

> screen?

>

> The most logical, but I think overprocessed way, is to put setscrollview =

> 25 inside the resize call... I havn't tried this, and would like your

> feeling on how to do this.

>

> Thanks,

>

> Chase Gale

> Quantrex

>

>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...