Unassigned SV-1254
2 votes

[DEV] RequestEvaluation doesn't trigger evaluation of data inside collapsed area regions

Created by Davide on 12/16/2014 9:26 PM Last Updated by Davide on 12/16/2014 9:40 PM
%
 (hrs)
Logged: 0   (hrs)

 Description

Seems that RequestEvaluation doesn't trigger the evaluation of data inside collapsed area regions.


http://en.smath.info/forum/yaf_postsm17742_Data-Exchange-plugin.aspx#post17742

As written in the post:

- when the area region is not collapsed, the function exportData.XXX is triggered when the executable is opened, and when the combobox changes selected item

- when the area region is collapsed, the function exportData.XXX is triggered when the executable is opened, but not when the combobox changes selected item

 

the combox code is simple

 

CustomComboBox ccb = new CustomComboBox(); // ownerdrawn ComboBox

// ...

ccb.SelectedIndexChanged += delegate(object sender, EventArgs e)
                    {
                        this.ElementSelected = ccb.SelectedIndex + 1;
                        this.CallEvaluation();
                    };

 

where:

public void CallEvaluation()
        {
            if (this.Evaluable && GlobalParams.IsAutoReCalc)
            {
                this.RequestEvaluation(true);
            }
            else
            {
                this.Invalidate();
            }
        }

There are no comments for this issue.