Board index » delphi » Change cursor for the whole form

Change cursor for the whole form

How can I change the cursor for the whole form/app (all components) at
run-time ?  Should I change the Default cursor shape ?  How can I set it
to, let's say, the HourGlass ?

Thanks.

 

Re:Change cursor for the whole form


Quote
Ian Delisle wrote:

> How can I change the cursor for the whole form/app (all components) at
> run-time ?  Should I change the Default cursor shape ?  How can I set it
> to, let's say, the HourGlass ?

Set the Screen.Cursor
--
Peter

Remove the ~ from my address to send e-mail. Sorry.

Re:Change cursor for the whole form


Quote
Ian Delisle wrote:

> How can I change the cursor for the whole form/app (all components) at
> run-time ?  Should I change the Default cursor shape ?  How can I set it
> to, let's say, the HourGlass ?

> Thanks.

To change the cursor to HourGlass just encode:

Screen.Cursor:= crHourGlass;

To return to the default cursor:

Screen.Cursor:=crDefault;

See the help file for the cursor property for more details.

odair from brazil.

Other Threads