Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Java
 QCSPCChart SPC for Java
 Scrollbar position - show latest sample

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
atopf Posted - 10 Dec 2019 : 03:32:12
Hello,

is it possible to alter the position of the scrollbar in such a way, that its initial position shows the latest data points (the farthest on the right) instead of the oldest.

Thx in advance!
Alex
3   L A T E S T    R E P L I E S    (Newest First)
quinncurtis Posted - 14 Jan 2020 : 11:03:23
We tested it on two of our example programs: TimeVariableControlCharts.XBarRChart and TimeVariableControlCharts.XBarRSigma and it worked as we describe. Do the same thing on your end. If it works for those examples, but not for your own program you will have to try and create some sort of simple example which reproduces what you are doing in the setup which causes the issue. Then you can send that to us as a project and we can determine the cause.
You probably have more than one update taking place. You might want to comment out different events after the initial update to try and find the block of code causing the problem.
atopf Posted - 14 Jan 2020 : 04:39:20
This doesnt seem to help.

There is still an initial flickering (it first shows the oldest data points for a brief moment, before navigating to the latest data points)

Any other ideas?
quinncurtis Posted - 10 Dec 2019 : 10:17:53
Call setRescaleOnUpdatePosition with an argument of ChartObj.SCROLLBAR_POSITION_MAX at somepoint in the chart setup. The default is ChartObj.SCROLLBAR_POSITION_MIN.


this.setEnableScrollBar ( true);

this.setRescaleOnUpdatePosition( ChartObj.SCROLLBAR_POSITION_MAX);

.
.
.
this.setEnableCategoryValues( false);
this.setEnableCalculatedValues( true);

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