Change cursor to hourglass and don't show connect dialog

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
zd
Posts: 78
Joined: Sun 01 Jul 2007 13:16

Change cursor to hourglass and don't show connect dialog

Post by zd » Sat 01 Mar 2008 18:43

Hi guys!

I'd like to ask for your help.

I'd like to change the cursor during query execution.
For this I use:

Code: Select all

DBAccess.ChangeCursor:=true;
and also include IBDacVCL in my uses list.

The problem: The connection dialog gets shown. Is there a way to skip the dialog from showing?

My other question:
Is there a way to change the cursor to a custom bitmap instead of the default SQL hourglass?

Thank you!

Regards,
Zd

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 03 Mar 2008 08:14

You should set LoginPrompt property of TIBCConnection to False so that the connect dialog would not appear.

IBDAC does not have a feature of setting your custom wait cursor.

zd
Posts: 78
Joined: Sun 01 Jul 2007 13:16

Post by zd » Mon 03 Mar 2008 22:58

Thanks for pointing me to the loginprompt property. For some reason I thought I switched it to false but it was true.

As for my second question, let me answer it:

Screen.Cursors[crSQLWait] := Screen.Cursors[crHourglass];

will change the SQL cursor to an hourglass, while

Screen.Cursors[crSQLWait] := LoadCursor(HInstance,'CURSOR_RES');

will change the SQL cursor to a custom resource named CURSOR_RES!

Thanks!

Zd

Post Reply