Its annoying, yes, but you actually have to force the form(s) to repaint 
/refresh.

There may be other ways, but back when Delphi was in version 2.0, I started 
getting into it... and spent several days wondering why the dumb cursor 
wouldn't change.

I'd suggest writing the cursor change function right into your form or a 
form that you inherit from.   That way you can change the cursor and refresh 
reliably without throwing "refresh()" all over your code. Add a little bit 
of reference counting, and you'll find it easy to have a proper cursor on 
the screen whenever anything is processing.


----- Original Message ----- 
From: "John Dammeyer" <[EMAIL PROTECTED]>
To: "'Borland's Delphi Discussion List'" <[email protected]>
Sent: Thursday, November 17, 2005 10:21 PM
Subject: Updating form with hourglass cursor.


> Hi all,
>
> I have saved the current screen cursor and changed it to an hourglass.  I
> then do some extensive processing ultimately building a series of pdf 
> pages
> stored to disk.  This can take up to 15 seconds.  The problem is that the
> screen's cursor doesn't change to an hourglass.  What do I call inside the
> function to get the screen to repaint.
>
> I've tried self.paint and self.invalidate both which I believe just tell
> windows that the next time it feels like it that the form should be
> repainted and the cursor updated.
>
> There must be someway to tell Windows to do this.  Suggestions?
>
> Thanks,
>
> John Dammeyer
>
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
> 

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to