User (Legacy) Posted June 2, 2003 Report Posted June 2, 2003 Hi there. I need to know when a user changes the gallery of my chart so that later on I can restore it correctly. I've added a handler for the ChangedByUser event but it seems to be called *before* the Gallery property is updated rather than afterwards. Is there a way to find out what the new value is going to be or be notified *after* the property changes? Thanks! Chris.
Software FX Posted June 18, 2003 Report Posted June 18, 2003 I'm afraid not. The DataChangedByUser event is intended for handling of a "Dirty" State of the chart object and it is sent BEFORE the change occurs so that the current settings can be saved PRIOR to change. What you could do here is to set up a timer on DataChangedByUser allowing the process to finish, then when this timer fires, you can check the value of the Gallery property. Notice that due to the single threaded nature of Controls, you can set up the timer to fire immediately, the timer will be caught in the next "idle" cycle causing no noticeable delay to the user. -- FP Software FX, Inc.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.