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
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to