Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Real Time Charts - Horizonta Scroll

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Sreejith Posted - 07 Feb 2006 : 02:02:39
Hello
I have downloaded your demo application from your site and trying to plot a real time chart using (QCChart2DNet.dll and QCRTGraphNet.dll). My aim is to plot a graph with values from the database in every two seconds (Data fetching query will be refreshed in every 2 seconds). Okay i can do this with the help of your application. But I can't see any example for SCROLL BAR (horizontal). if I can set a scroll bar in chart, I can view the chart of previous one hour data at any time. I have gone thru your Polygraph example but in this scroll bar will availabel only if I click on STOP button. Is this possible to get a normal Horizontal scroll looks like normal scroll bar. Because I can't stop my chart because it is a real time, it will get data continously .
Secondly, can u provide the code to print the chart?

Expecting your reply.

Thanks & Regards
Sreejith Nair


Thanks & Regards
Srejith Nair
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 07 Feb 2006 : 09:35:24
You can use any kind of scrollbar that you want. Our RTControlTrackbar is derived from the standard .Net trackbar, where we have adding floating point support for the the trackbar ranges, but you can use any of the other .Net scrollbars. The logic is the same. You use the scrollbar value to determine the starting value of the charts coordinate system.

If you want to scroll back through the data you MUST stop the automatic forward scrolling of the data, controled by timer1 in the Polygraph example. You do NOT need to stop the accumulation of data values taking place using timer2. That way when you turn back on the automatic forward scrolling, the graph will display all of the data values that were collected while you were looking at the previously collected data. In the Polygraph example just comment out the timer2.Enable = false line in the selector_Button_Click method. This way data collection will continue, even if the automatic update of the display is turned off.

See the example programs Dynamometer and Treadmill for printing examples. Chapter 22 in the QCChart2dManual.pdf documentation discusses printing. If you want us to add printing to this specific example, contact our services department at sales@quinn-curtis.com and they will send you a quote.

		
private void selector_Button_Click(object sender, System.EventArgs e)
{
	RTControlButton button = (RTControlButton) sender;
	if (button == StartButton) 
	{
		timer1.Enabled = true;
		timer2.Enabled = true;
		SetScrollFrameEnable(ChartObj.OBJECT_ENABLE);
		} 
	else if (button == StopButton) 
	{
		timer1.Enabled = false;
	//	timer2.Enabled = false;
.
.
.


Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07