[Lazarus] DBNavigator: why is the refresh button enabled only if the dataset is modifiable?
Luca Olivetti
luca at wetron.es
Wed Oct 16 17:10:55 CEST 2019
In lcl/include/dbcustomnavigator.inc, method
TDBCustomNavigator.EditingChanged
CanModify:=Enabled and FDataLink.Active and FDataLink.DataSet.CanModify;
...
Buttons[nbRefresh].Enabled:=CanModify;
Why?
I mean, I have a read only query (specifically a TZReadOnlyQuery) since
I only want to show the data, but another application can change it,
hence a refresh could be needed.
Bye
--
Luca Olivetti
Wetron Automation Technology http://www.wetron.es/
Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007
More information about the lazarus
mailing list