Board index » cppbuilder » Changing mouse cursor for form

Changing mouse cursor for form

Hi All!

I'd like to change the mouse cursor for a form when doing a lenthy
operation.

I use "Cursor = crHourGlass;", but get no result. Does anyone have a
clue why?

Thanks!
/sten

 

Re:Changing mouse cursor for form


Hi Sergei!

Quote
>May be this because the message for cursor changing is waiting in a queue?
>If yes, try to use Application->ProcessMessages() just after cursor changing.

Actually, I tried to not reset it afterwards, and it still didn't
change.

Quote
>BTW, what is in your case "lenthy operation"?

A couple of seconds, maybe 3 on my computer an "old and slow" 450MHz
PII (well it is two years old).

Your answer tells me that I'm probably doing the right thing... but
there is probably some mistake. I'll check my code again.

thanks!!!

/sten

Re:Changing mouse cursor for form


On Wed, 27 Sep 2000 01:03:43 +0100, "Max Topley"

Quote
<max.top...@NOSPAM{*word*269}.net> wrote:
>Been there - bought the T shirt.

>Try:
>Screen->Cursor = crHourGlass ;

>It's a bug. (Shock! Horror!) Someday, when I've got half a day and a supply of
>sick-bags I may even try to pin it down!

>  Max.

Indeed - this does it. Thanks soo much!!!!

/sten

Re:Changing mouse cursor for form


Hi, Sten!

Quote
Sten Larsson wrote:
> I'd like to change the mouse cursor for a form when doing a lenthy
> operation.

> I use "Cursor = crHourGlass;", but get no result. Does anyone have a
> clue why?

May be this because the message for cursor changing is waiting in a queue?
If yes, try to use Application->ProcessMessages() just after cursor changing.
BTW, what is in your case "lenthy operation"?

--
Visit my page : http://sergss.newmail.ru/
BCB components : http://sergss.newmail.ru/BCB_eng.htm
| )))))
|
|___
|ooo|
|ooo|
|ooo|
|___|
Sergei.

Re:Changing mouse cursor for form


Been there - bought the T shirt.

Try:
Screen->Cursor = crHourGlass ;

It's a bug. (Shock! Horror!) Someday, when I've got half a day and a supply of
sick-bags I may even try to pin it down!

  Max.

Quote
"Sergei Sorokin" <ser...@ncc.nnov.ru> wrote in message

news:39D11D8E.BF2E95D8@ncc.nnov.ru...
Quote
> Hi, Sten!

> Sten Larsson wrote:
> > I'd like to change the mouse cursor for a form when doing a lenthy
> > operation.

> > I use "Cursor = crHourGlass;", but get no result. Does anyone have a
> > clue why?

> May be this because the message for cursor changing is waiting in a queue?
> If yes, try to use Application->ProcessMessages() just after cursor changing.

> BTW, what is in your case "lenthy operation"?

Other Threads