Another sample of Mouse's cursors

HMG Samples and Enhancements

Moderator: Rathinagiri

User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Another sample of Mouse's cursors

Post by serge_girard »

Hi Pablo,

This works nice!

It use it for filling up large grid which takes about 20 seconds.
Except when 'handover' the grid it doesn't show the "Working in Background.ani".
When 'handover' the rest of the form it does work.

Serge
There's nothing you can do that can't be done...
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Another sample of Mouse'se cursors

Post by Pablo César »

Pablo César wrote:Dear Rathi,

I forgot to mention that in HMG Resources folder there are two unuseful .cur files that IMO could be deleted. Files: hp_minus.cur and hp_plus.cur.

Rgds
Waiting for your comments Rathi.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

Another sample of Mouse's cursors

Post by Pablo César »

serge_girard wrote:Hi Pablo,

This works nice!

It use it for filling up large grid which takes about 20 seconds.
Except when 'handover' the grid it doesn't show the "Working in Background.ani".
When 'handover' the rest of the form it does work.

Serge
Thank you Serge.

You are right in Grid (I do not know if others controls too) seems be different behaviour regarding mouse's changing. But try this replacement for Grid or other exception:

Function SetCursorOnControls(xCursor)
LOCAL cFormName:=ThisWindow.Name
LOCAL hwdForm:=GetFormHandle(cFormName)

SetWindowCursor (hwdForm, xCursor)
SetWindowCursor (aCtrls[1], xCursor) // All Controls associated with the class

SetWindowCursor (GetControlHandle ("Grid_1",cFormName), xCursor)
Return Nil


Please be considered "Grid_1" as exemple of grid control name. Change it in case of different name.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: Another sample of Mouse's cursors

Post by serge_girard »

Perfect Pablo !

It works, thanks

Serge
There's nothing you can do that can't be done...
Post Reply