Bug SS-172
1 vote

[DEV] RequestForEvaluation() issues

Created by Davide on 7/9/2014 7:51 PM Last Updated by Davide on 8/7/2014 11:12 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

Tested a little bit the new handling of RequestForEvaluation() with OnMouseWheel and OnKeyPress events (as reported here I use timers to reduce the evaluations to the minimum necessary)

I've used the simple NumericUpDownRegion (SVN) for debugging.

- RequestForEvaluation seems triggered from the second wheel scroll, and when is triggered a previous value is sent to the worksheet. (BTW an Invalidate() now is required; this is not a problem but  is by design or is a bug?)

From the RegionHolder:

- Using ForceEvaluation, all works fine.

         void ForceEvaluation()
        {
            using (this.Parent.History.CreateTransaction())
            {
                this.RequestForEvaluation();
            }
        }

From the Region Canvas;

- ForceEvalueation as written above doesn't work at all.

    Davide (Thursday, August 7, 2014 11:11 PM) #

Since SMath 0.97.5327 there are more issues; see here for details (pts from #2 to #4)