Page 1 of 1

ReadOnly Field Change not propagated

Posted: Tue 09 Apr 2013 15:00
by franzr77
When i Change the ReadOnly-Field of a UniQuery the change is not propagated to the components immediately. e.g. a DBNavigator still shows the Insert-Button active when i Change the UniQuery to ReadOnly=true

is there a way to solve this Problem?

Re: ReadOnly Field Change not propagated

Posted: Wed 10 Apr 2013 11:35
by AlexP
Hello,

This behaviour is due to the implementation of DBNavigator, button state is changed in the DataChanged, EditingChanged and ActiveChanged methods, that are invoked under corresponding conditions. Changing the ReadOnly property initiates none of these events, therefore button state remains unchanged when modifying this property. Since in DBNavigator there is no possibility to change button state externally, we cannot affect this behaviour