powellr

ContextChanged troubles

Discussion created by powellr on Dec 6, 2010
Latest reply on Feb 4, 2011 by cpl

Hi all,

 

Im having some problems that i think are related to my use of the ContextChanged method. 

 

I am using this method, triggered when an MDB Module is selected, to drive some functions that change the time ranges of a bunch of symbols, namely Bars and Trends.

 

The trouble is that although these methods successfully update all the symbol's time ranges, the moment the ContextChange sub finishes all the time ranges revert back to the ProcessBook default of *-2h to *. I have watched each element update through my IDE' debugger and it appears that they revert the moment it steps out of the ContextChanged. 

 

I presume that when changing the screen's MDB context that another method is called in the background causing the display to revert. Can anyone shed any light on this, or suggest a work around?

 

Cheers.

 

 

 

 

Outcomes