This is by design? I am using 3rd Qtr 2007 build. My controls are set to readonly, but the On Edit events are firing. I have to set each control on BeforeEditStart event to cancel.
If this is normal, what is the best way to capture and handle the final change in a control after edit AND only after the value has changed? The Validate events fire whether this is an edit or not.
Thanks
BeforeEnterEditMode and AfterExitEditMode have nothing to do with Read-only. These events determine when the controls enters a mode where the control displays a cursor and the user can select text. It doesn't neccessarily mean that the user can edit.
I'm not sure about Validating and Validated, but I'm pretty sure these events fire for any control whether the data in that control has changed or not.
The control itself does not keep track of whether or not the value has changed, but I'm a little unclear on why you would want such an event, anyway, since the control is ReadOnly. If it's ReadOnly, it cannot be changed by the user. Unless your control is only ReadOnly sometimes. In that case, you probably need to use the Validating or Validated event. But to determine if the data has changed or not will be up to you.
BeforeEnterEditMode through to AfterExitEditMode. These fire even in ReadOnly, why does it start to go into edit? The validation events also fire.
I am just trying to find the best event that will simply tell me this field has changed (not the text changed on every key stroke). I do not want to disable the controls owing to visual effects.
Thanks.
Exactly what event are you referring to?