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#)
 ScrollScaleModeX for RTAutoScrollGraph

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
soundar Posted - 28 Oct 2012 : 19:56:12
Does rtAutoScrollGraph support ScrollScaleModeX = ChartObj.RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL?

When I try this I get an exception.

Thanks.
1   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 29 Oct 2012 : 09:14:02
Because that mode scales to the current x-values in the data buffer of the related RTProcessVar, you have to have least one value in the buffer before you can use that mode, else there is nothing to autoscale against. So start the RTScrollFrame with RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL, and then after couple of samples are taken change to RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL.

// In graph building method
scrollFrame = new RTScrollFrame(this, currentTemperature1, pTransform1, ChartObj.RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL);

.
.
.
// In update method
if (counter == 2)
scrollFrame.ScrollScaleModeX = ChartObj.RT_MAXEXTENT_FIXEDSTART_AUTOSCROLL;

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