Subject RE: [IBO] TIB_Update Bar
Author Helen Borrie
At 04:11 PM 19/11/2004 +1100, you wrote:

> > > I am trying to programatically set the TIB_UpdateBar property
> > > VisibleButtons on the fly.
> > >
> > > Any help would be appreciated :-)
> >
> > Use the source. Obviously there ought to be some code under
> > the hood working with that property. It's a set property and
> > so you will use set operators.
> >
> > Jason
>
>
>dbupdLogs->Buttons[ubInsert]->Visible = true;
>
>Is the only way I can see it working ?

The VisibleButtons property is a set. So a typical setting for this
propety might be:

MyUpdateBar.VisibleButtons := [ubEdit, ubInsert, ubDelete, ubPost, ubCancel];

Then, you want to hide the Cancel button in some event:

MyUpdateBar.VisibleButtons := [ubEdit, ubInsert, ubDelete, ubPost];

...and so on....

There's a full enumeration of the set in the help text.

Helen