Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
findejs
Posted - 30 Jan 2006 : 13:40:25 Hello, I'm using the scrolling plot with auto scroll with fixed extent for displaying predicted trajectories: m_TransPred = new TimeCoordinates(new ChartCalendar(DateTime.Now), 0.0, new ChartCalendar(DateTime.Now.AddMinutes(1)), 150000.0); m_FramePred = new RTScrollFrame(m_ucChartView, m_TransPred, ChartObj.RT_FIXEDEXTENT_MOVINGSTART_AUTOSCROLL); Trend line is displayed and updated as expected, but I cannot find a way how to change extent of scroll frame. I tried several methods (RescaleFrame(,,,), SetScaleStartX/Y() + RescaleAxisToCurrentTransform(), ...) but the time span always remained 1 minute. Interestingly, when I change private RTScrollFrame property frameExtent in debuger the scroll frame does exactly what I'm expecting. Is it possible to change the extent by calling public methods/properties of RTScrollFrame class? Thank you.
2 L A T E S T R E P L I E S (Newest First)
findejs
Posted - 18 Apr 2006 : 13:08:34 I noticed that you added new property FrameExtent to the RTScrollFrame class in version QC 1.6. Thanks a lot.
quinncurtis
Posted - 30 Jan 2006 : 15:45:24 The frameExtent is a local variable to the RTScrollFrame class and is not public. We don't see any way to changed it using properties. We do not know if changing it arbitrarily like you are doing with the debugger will have adverse effects in other modes.
Your best bet is that if you need to change the extent the RTScrollFrame, just clean the entire ChartView (using the ChartView ResetChartObjectList) and re-make the graph, initializing the RTScrollFrame with the new coordinate system that you want to use.