X-windows: changing cursor from and AST ?

From: JF Mezei (jfmezei.spamnot_at_teksavvy.com)
Date: 03/30/05


Date: Wed, 30 Mar 2005 16:48:36 -0500


In an application which has a function which can either be instant or
take a long time depending on size and type of contents, I'd like to be
able to trigger a busy X-windows cursor only if it is to take a certain
amount of time.

Since the loop is outside the X-events main loop, and since it usually
executes rather quickly, would it be possible (knowing that the loop
itself does not generate any X-windows updates to the display) to have
an AST triggered by a timer say one second after start of loop to change
the cursor to a busy cursor ?
(and possibly update cursor every second).

When the loop completes, it simply cancels the timer and then reverts
the cursor back to normal.

If the loop performs some windows functions, would it be just a case of
canceling AST delivery before you make a call to an X function (and
re-activating it later) ?



Relevant Pages

  • Re: X-windows: changing cursor from and AST ?
    ... > take a long time depending on size and type of contents, ... > able to trigger a busy X-windows cursor only if it is to take a certain ... > Since the loop is outside the X-events main loop, ... > canceling AST delivery before you make a call to an X function (and ...
    (comp.os.vms)
  • RE: Oracle cursor help
    ... rids dbms_utility.uncl_array; ... where <your where clause> ... Subject: Re: Oracle cursor help ... exit the loop: */ ...
    (perl.dbi.users)
  • Command object stops prematurely without error?
    ... However, when run via the ADO Command object, the outer loop Applications ... Declare cApps CURSOR for Select ApplicationID from UCM_Applications ...
    (microsoft.public.data.ado)
  • Re: Calling a SP inside a cursor loop..
    ... every loop iteration of the cursor. ... Fetch next From EffectiveDate_Cursor Into @FLD1,@FLD2 ... and If the Fetch stmt is below the begin Stmt, the loop iterations are ... the proper way to program a cursor loop is: ...
    (comp.databases.ms-sqlserver)
  • Re: => Trigger to split Trailer Loads
    ... I am using a Trigger and a cursor with a while loop, however the recursive behaviour of the cursor is causing me ... I can successfully copy an order from tblOrders to tblSplitOrders, duplicating order details and splitting the load into ... Enters LineSplit>0 ...
    (microsoft.public.sqlserver.mseq)