Thread SQL Icon

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
wjm4
Posts: 72
Joined: Mon 12 Feb 2007 21:31

Thread SQL Icon

Post by wjm4 » Mon 30 Jan 2012 21:33

Is there a way to suppress the SQL working icon when you have a query running in a background thread? My query polls every 30 sec and it will put the working sql icon on the screen every time it executes.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Tue 31 Jan 2012 09:11

Hello,

For preventing cursor changing at queries executing, you can either not use the UniDACVcl module or set the ChangeCursor global variable (declared in the DBAccess module) to False.

wjm4
Posts: 72
Joined: Mon 12 Feb 2007 21:31

Post by wjm4 » Tue 31 Jan 2012 14:54

could you provide a code snippet? Would I need to go into the unidac source files and change the code?

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Wed 01 Feb 2012 09:55

Hello,

You don't need to edit the source code. It's enough, for example, to set ChangeCursor := False in the initialization section before query opening or globally.

Code: Select all

uses .., DBAccess;

//before query opening
 ChangeCursor := False;
 Query.open;

Post Reply