Jump to content
Software FX Community

Scrollview...


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...