Subject Re: [IBO] Behaviour of TIB_UpdateBar
Author Salvatore Besso
hello Paul,

> That the Update button always stays enabled
> is the standard behaviour. Myself I can click
> it repeatedly without problem - nothing
> happens, I just stay in Edit mode. I don't get
> the error you reported (Transaction already
> started)

I get this error because I use an explicit transaction under my
control and I have defined the following events for the UpdateBar:


procedure TMainForm.IB_UpdateBar1BeforeAction(Sender: TObject);

begin
if (Sender as TIB_UpdateBar).FocusedButton = ubEdit then
Transaction.StartTransaction
end;

procedure TMainForm.IB_UpdateBar1AfterAction(Sender: TObject);

begin
case (Sender as TIB_UpdateBar).FocusedButton of
ubPost: Transaction.Commit;
ubCancel: Transaction.Rollback
end
end;


Anyway it seems more logical to me that, once pressed, that's to say
when you go and until you remain into edit mode for that dataset, the
edit button of the bar become grayed, otherwise it could be confusing
for the user.

Regards
Salvatore