ReadOnly Field Change not propagated

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
franzr77
Posts: 1
Joined: Wed 20 Mar 2013 10:05

ReadOnly Field Change not propagated

Post by franzr77 » Tue 09 Apr 2013 15:00

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?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: ReadOnly Field Change not propagated

Post by AlexP » Wed 10 Apr 2013 11:35

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

Post Reply