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?
ReadOnly Field Change not propagated
Re: ReadOnly Field Change not propagated
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
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