CHART_FIRST_VISIBLE_BAR seems to give inconsistent result after rescaling the chart - page 2

 
Alain Verleyen #:
That means use "Get" function AFTER an asynchronous function call is NOT guaranteed to give correct values.

Hi!

Thanks for the new feedback. Fortunately, thanks to the related situation talked about in the other thread, my actual code is already using chart events + state machine control to gradually call the required functions, such as ChartNavigate, bypassing the sync/assync problem. The only problem, now, is that ChartNavigate can't fail actually moving the chart as shown in the posted video. Waiting a couple msecs for it to happen is no problem; the problem is it never happening.

If you desire, I may recreate the EA code example posted here with events to see the problem behaving in perfect alignment with this sync/assync situation, even though I imagine it's not needed given the video I posted and you having already reproduced it.

 
Martin Bittencourt #:

Hi!

Thanks for the new feedback. Fortunately, thanks to the related situation talked about in the other thread, my actual code is already using chart events + state machine control to gradually call the required functions, such as ChartNavigate, bypassing the sync/assync problem. The only problem, now, is that ChartNavigate can't fail actually moving the chart as shown in the posted video. Waiting a couple msecs for it to happen is no problem; the problem is it never happening.

You probably meant "can fail".

If you desire, I may recreate the EA code example posted here with events to see the problem behaving in perfect alignment with this sync/assync situation, even though I imagine it's not needed given the video I posted and you having already reproduced it.

It's not needed to post new code. I understand the problem very well.

The difficulty is to reproduce the problem without having to click again and again which flood the system with Get/Set functions. I suppose originally you had the problem in "normal" usage when you clicked once and nothing happened ?