Subject Re: [IBO] Catching actions from TIB_UpdateBar
Author Harald Klomann
Freddy,

do like this

procedure TfrmX.UpdateBarBeforeAction(Sender: TObject);
begin
if (Sender As TIB_UpdateBar).FocusedButton = ubCancel then ...
end;


Regards Harald



Freddy Holst Christensen wrote:
>
> Hey
>
> I want to catch the different action the user can select by pressing the buttons
> in a TIB_UpdateBar, and are landed by BeforeAction event of TIB_UdateBar.
>
> But using dynamic_cast, I haven't succed in finding the correct syntax.
>
> Have anyone tried this, and if so how?
>
> I'm using BCB5.
>
> Thanks in advance.
>
> Regards
> Freddy