O
Oliver Giesen
Hi all!
I have some fairly complex options framework in my addin where options
values can be inherited or overridden at different levels (e.g. user
registry, public folder properties, parent folder properties, etc.)
depending on context and several flags that could be manipulated via
checkboxes on a PropertyPage. As determining the actual option values
that are not overridden (and thus editable) at the current level is
rather costly performance-wise I do not update the values immediately
when the relevant checkboxes get ticked or unticked but only when the
user presses Apply.
Now, my problem is this: I could currently not differentiate whether
the user pressed the OK or Apply button. There's really no need to do
the costly update of the option values when the user presses OK as the
page would close anyway in that case. Thus I would like to be able to
omit that step when the user presses OK instead of Apply.
So far I haven't been able to come up with anything to detect which
method was used to trigger the Apply method.
Any ideas?
Cheers,
Oliver
I have some fairly complex options framework in my addin where options
values can be inherited or overridden at different levels (e.g. user
registry, public folder properties, parent folder properties, etc.)
depending on context and several flags that could be manipulated via
checkboxes on a PropertyPage. As determining the actual option values
that are not overridden (and thus editable) at the current level is
rather costly performance-wise I do not update the values immediately
when the relevant checkboxes get ticked or unticked but only when the
user presses Apply.
Now, my problem is this: I could currently not differentiate whether
the user pressed the OK or Apply button. There's really no need to do
the costly update of the option values when the user presses OK as the
page would close anyway in that case. Thus I would like to be able to
omit that step when the user presses OK instead of Apply.
So far I haven't been able to come up with anything to detect which
method was used to trigger the Apply method.
Any ideas?
Cheers,
Oliver