From: Cheng Wei [mailto:[EMAIL PROTECTED]]
>The mouse cursor keeps changing when the app accesses the IB db using IBX,
I
>couldn't find any property that you can set to stop this from happening.

Options

- using IBO, it has such options, and BeginBusy and EndBusy to control this
behaviour

- if you set your cursor to crHourGlass in advance, there will be no
flicker, ie.

  Screen.Cursor := crHourGlass;
  try
    for i := 1 to Lots do
      IBQuery1.ExecSQL; 
{ The above line would cause flicker, by changing the cursor to crHourGlass
and back, were the cursor not already set to crHourGlass }
  finally
    Screen.Cursor := crDefault;
  end;

- If you _really_ don't want the cursor to change at all, you could save a
copy of the crHourGlass cursor, load the crDefault cursor on top of it
before executing the code above, and finally re-load the "real" crHourGlass
cursor

HTH.

Cheers,
Carl
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to