Subject Re: [IBO] IB_Grid: Reduce flickering
Author Daniel Albuschat
2006/6/21, Helen Borrie <helebor@...>:
> At 07:07 PM 21/06/2006, you wrote:
> >2006/6/21, Svein Erling Tysvaer <svein.erling.tysvaer@...>:
> > > Have you tried the BeginBusy/EndBusy methods?
> >
> >Thanks for your suggestion.
> >I tried BeginBusy/EndBusy and DisableControls/EnableControls.
> >I can't see any change in the flickering, though.
> >
> >In some cases, DisableControls helps a lot, but only to other connected
> >controls, not the "main" grid itself.
>
> Maybe TIB_Datasource.DisableInterface/EnableInterface is what you are
> looking for.

Hello Helen,

thanks for your reply. I tried calling DisableInterface before
opening/closing and
EnableInterface afterwards. I get a segmentation fault on the EnableInterface
call.
Here's the call-stack:

TIB_Column.GetStatement <- Crash
TIB_Column.GetControlsReadOnly
TIB_CustomGrid.UpdateColumnAttributes
TIB_CustomGrid.SysStateChanged
TIB_CustomGrid.StateChanged
TIB_DataLink.SysStateChanged
TIB_CustomGridLink.SysStateChanged
TIB_DataSource.SysStateChanged
TIB_DataSource.EnableInterface
MyFunction

I'll have to bear with the flickering for now, I guess...

--
eat(this); // delicious suicide