[Lazarus] DBNavigator: why is the refresh button enabled only if the dataset is modifiable?
Luca Olivetti
luca at wetron.es
Wed Oct 16 21:24:02 CEST 2019
El 16/10/19 a les 19:49, Juha Manninen via lazarus ha escrit:
> On Wed, Oct 16, 2019 at 6:11 PM Luca Olivetti via lazarus
> <lazarus at lists.lazarus-ide.org> wrote:
>> In lcl/include/dbcustomnavigator.inc, method
>> TDBCustomNavigator.EditingChanged
>>
>> CanModify:=Enabled and FDataLink.Active and FDataLink.DataSet.CanModify;
>> ...
>> Buttons[nbRefresh].Enabled:=CanModify;
>
> I don't know DBNavigator well. It has 2 sets of buttons, the "Buttons"
> and then "FocusableButtons". What are those?
> The same TDBCustomNavigator.EditingChanged method also has:
> FocusableButtons[nbRefresh].Enabled:=Enabled and FDataLink.Active
> and not FDataLink.Editing;
> Maybe the same conditions would apply to Buttons[nbRefresh] as well.
I don't know either, I just find it strange that the refresh button is
disabled when it's most needed.
And even stranger that I didn't notice until today ;-)
Or maybe I did and forgot about it :-D
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