Page 1 of 1

Change cursor to hourglass and don't show connect dialog

Posted: Sat 01 Mar 2008 18:43
by zd
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

Posted: Mon 03 Mar 2008 08:14
by Plash
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.

Posted: Mon 03 Mar 2008 22:58
by zd
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