473,379 Members | 1,245 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

scrollbar

I have a chart with data and I want to add a scroll bar there but to
do a paging - each time I move the scroll bar to add a data (to divife
all the data untill all of it will be presented)
What is the best way to do it?
Thanks a lot!
Nov 16 '05 #1
4 4672
Hello,

Yes, this can be done inserting VS.NET scroll bars to your form and using
"SetMinMax" when creating the form and when scrolling as shown below:

private void Form1_Load(object sender, System.EventArgs e) {
line1.FillSampleValues(200);
tChart1.Axes.Bottom.SetMinMax(0, 20);
}

private void hScrollBar1_Scroll(object sender,
System.Windows.Forms.ScrollEventArgs e) {
tChart1.Axes.Bottom.SetMinMax(0+hScrollBar1.Value, 20+hScrollBar1.Value);
}

After populating your series you can do:

hScrollBar1.Maximum=Convert.ToInt16(tChart1.Series[0].XValues.Maximum);

--
Best Regards,

Narcís Calvet
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."
"juli" <ji****@gmail.com> wrote in message
news:1f**************************@posting.google.c om...
I have a chart with data and I want to add a scroll bar there but to
do a paging - each time I move the scroll bar to add a data (to divife
all the data untill all of it will be presented)
What is the best way to do it?
Thanks a lot!

Nov 16 '05 #2
Hello,

Yes, this can be done inserting VS.NET scroll bars to your form and using
"SetMinMax" when creating the form and when scrolling as shown below:

private void Form1_Load(object sender, System.EventArgs e) {
line1.FillSampleValues(200);
tChart1.Axes.Bottom.SetMinMax(0, 20);
}

private void hScrollBar1_Scroll(object sender,
System.Windows.Forms.ScrollEventArgs e) {
tChart1.Axes.Bottom.SetMinMax(0+hScrollBar1.Value,
20+hScrollBar1.Value);
}

After populating your series you can do:

hScrollBar1.Maximum=Convert.ToInt16(tChart1.Series[0].XValues.Maximum);

Regards,
Narcís.
"juli" <ji****@gmail.com> wrote in message
news:1f**************************@posting.google.c om...
I have a chart with data and I want to add a scroll bar there but to
do a paging - each time I move the scroll bar to add a data (to divife
all the data untill all of it will be presented)
What is the best way to do it?
Thanks a lot!

Nov 16 '05 #3


Thank u.
Did something like that but the weired thing is that I have the biggest
value X=22 and the scroll shows axis untill 33,why??(I set maximum of
the scroll to maximum value of x).
How to make it show only untill the last value of x?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 16 '05 #4
Hi Juli,

The problem is the SCrollBar.LargeChange property. Setting it to 1 and
subtract the increment you used as the axis maximum to the ScrollBar.Maximum
as shown below.

int ScrollIncrement=25;
this.tChart1.Axes.Bottom.SetMinMax(0,ScrollIncreme nt);
this.hScrollBar1.LargeChange = 1;
this.hScrollBar1.Maximum=Convert.ToInt16(this.tCha rt1.Series[0].XValues.Maxi
mum)-ScrollIncrement;

Regards,
Narcís.

"juli jul" <ju******@yahoo.com> wrote in message
news:uj**************@TK2MSFTNGP10.phx.gbl...


Thank u.
Did something like that but the weired thing is that I have the biggest
value X=22 and the scroll shows axis untill 33,why??(I set maximum of
the scroll to maximum value of x).
How to make it show only untill the last value of x?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Sujan | last post by:
Hello all, Is it possible to remove scrollbar(s) without using frames. Is there any code which could be applied in body tag to remove scrollbar(s). Thanks in adv, Sujan
4
by: Price Brattin | last post by:
I dragged a datagrid onto a VB.Net WinForm and used the properties page and a few lines of code to set it up, including the DataSource. No wizard setup was used. It works fine except for one...
9
by: kjs | last post by:
Is there any was to control the color of the scrollbars when using the 'overflow: scroll' attribute? TIA, Karl
0
by: h-h | last post by:
BODY { scrollbar-face-color: #f5f5f5; scrollbar-highlight-color: #666666; scrollbar-shadow-color: #666666; scrollbar-3dlight-color: #ffffff; scrollbar-arrow-color: #666666;...
1
by: Shun | last post by:
Hello, How to the add a blue color scrollbar to the browser Left and bottom. Thanx Shun
0
by: d.steininger | last post by:
Hi there! Is there a way to bind a Textbox.Text to a ScrollBar.Value (not the Textbox-own Scrollbar) and vice versa? The Problem: I have to deal with two controls. The Textbox should accept...
14
by: Michael Weis | last post by:
Hello all, as a non-professional in these things, I searched for this topic but found no satisfying answer: I have to create a site with 3 frames. (Please no diskussion about the sense of...
2
by: kurt sune | last post by:
How do I render the scrollbars by CSS in a listbox? I have understood that an asp listbox gets rendered as a select element. So I tried first by adding a style element: ..TA...
3
by: nicky77 | last post by:
Hi, before you say it i know frames are bad practice - but i'm developing dynamic content on a site which has already been designed, so alas there's no option but to use them. Anyway, I just want to...
1
by: Tom | last post by:
First, I posted a similar request for help in another group and now don't find the posting. Problem with my newsreader perhaps ... but apologies if this appears as a cross posting. My code is...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.