X-windows: changing cursor from and AST ?
From: JF Mezei (jfmezei.spamnot_at_teksavvy.com)
Date: 03/30/05
- Next message: Bill: "A Pure Herbal Needed for Vitiligo white patches who will help me to get rid of white patches from my skin"
- Previous message: Phillip Helbig---remove CLOTHES to reply: "Re: ports 135, 445, 139 and 1433"
- Next in thread: Bob Gezelter: "Re: X-windows: changing cursor from and AST ?"
- Reply: Bob Gezelter: "Re: X-windows: changing cursor from and AST ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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) ?
- Next message: Bill: "A Pure Herbal Needed for Vitiligo white patches who will help me to get rid of white patches from my skin"
- Previous message: Phillip Helbig---remove CLOTHES to reply: "Re: ports 135, 445, 139 and 1433"
- Next in thread: Bob Gezelter: "Re: X-windows: changing cursor from and AST ?"
- Reply: Bob Gezelter: "Re: X-windows: changing cursor from and AST ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|