Subject Re: [IBO] Freezing screen with BeginBusy
Author Geoff Worboys
> I'm using bookmarks to do some processing with selected records.
> During this opration I would like to stop screen updates. I hoped
that
> BeginBusy() would help, but there was no difference when using it -
> the cursor in grid jumped from one record to another.
> Am I doing something wrong here? What should I use?

BeginBusy/EndBusy help prevent various operations of "standing on each
other" and wont acheive what you wanted (as you discovered).

To prevent the mouse-cursor from flickering use something like...

Dataset.IB_Session.BeginLockCursor;
try
finally
Dataset.IB_Session.EndLockCursor;
end;

IB_Session is available from all IB_Component based components, so you
can just use which ever one is handy at the time.

It sounds like you also want to stop the various controls from
updating. You can do this with TIB_DataSource functions. Choose
either of...

EnableControls / DisableControls - disables all datalink updates.
Both visual controls AND master/detail and keysource datalinks. This
should really only be used when operations are occuring on one table
(since any related tables will not be kept synchronised).

EnableInterface / DisableInterface - disables only datalinks for
visual control. So all edit controls and grids etc will stop getting
updates. Note that master/detail and keysource links will continue to
get updates and this may result in some changes to some visual
controls depending on how it is all configured.

HTH

Geoff Worboys
Telesis Computing