Board index » delphi » Changing the mouse to crDefault cursor while running Stored Procedure

Changing the mouse to crDefault cursor while running Stored Procedure

Does anyone know as to how to change the mouse cursor to default when
running stored procedure from within Delphi??
I am calling a bunch of stored procedure from Delphi within a loop but I
want to keep my mouse cursor as default.I am setting it as Screen.Cursor :=
crDefault but as soon as it starts running the stored procedure my cursor
turns into a SQL hours glass.Does any one know how to get around it???

Thanks a lot
Sujas

 

Re:Changing the mouse to crDefault cursor while running Stored Procedure


Quote
Sujas wrote:
> Does anyone know as to how to change the mouse cursor to default when
> running stored procedure from within Delphi??

    Check the SQLHourglass property of TSession.

    -Craig

--
Craig Stuntz   cstuntz@no_spam.vertexsoftware.com
----------------  -----------------------------
Delphi Developer  Vertex Systems Corporation
& Cat Wrangler   http://www.vertexsoftware.com

Re:Changing the mouse to crDefault cursor while running Stored Procedure


You need to set the Session.SQLHourGlass property to false before you
turn its active property to true. If you do this, then Delphi will not
change the shape of the cursor when it is running Database Stuff.

Robert Schieck (TeamB)
MER Systems Inc.
Inprise/Borland/InterBase Search Engine
http://www.mers.com/searchsite.html

Other Threads