Update button on property pages

618
2
08-15-2011 06:48 AM
Marianne_BilstedWiese
New Contributor
Hello Forum

I have a custom renderer, with a combobox to choose between differerent renderers.
It does work as far as the layer gets rendered the first time a selection is done, and the Update button gets disabled.
I would like the Update button to be enabled again when I change the selection in the combobox.
How can that be done?
This button is a general button for all property pages, outside the UI in the custom renderer project.

Best Regards

Marianne B. Wiese
0 Kudos
2 Replies
AlexanderGray
Occasional Contributor III
The apply button is disabled when the properties have not changed.  If you look at built in properties as soon as you change one, the properties are set to 'dirty' and it enables the apply button.  I would suggest trying  to implement the IPropertyPage.IsPageDirty property to return the appropriate return code when the values have changed.
0 Kudos
Marianne_BilstedWiese
New Contributor
Thanks very much, I will try that 🙂

Marianne
0 Kudos