Archicad C++ API
About Archicad add-on development using the C++ API.

How to set a cursor in a dialog?

Anonymous
Not applicable
Hi

The documentation indicates that a custom form cursor can be set in the DG_MSG_MOUSEMOVE message. What is the mechanism to set a custom form cursor pls?

Thanks

Paul
2 REPLIES 2
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
Hi Paul,

Here is an example to show you how to set your custom cursor:
/* To your Fix.grc resource: */ 
 
'GCSR'	32680	"Open hand cursor" { 
		   "HandBig"	/* your picture name, so HandBig.bmp should be placed into the Images folder next to this Fix grc */ 
		   9	10		/* the cursor position in the picture */ 
		   0	128	128 
}  
 
/* To your source code: */ 
 
UISetCursor (ACAPI_GetOwnResModule (), 32680);		// DG.h should be included


As far as I know this works not only in DG_MSG_MOUSEMOVE message.

Best Regards,
Tibor
Anonymous
Not applicable
Thanks Tibor - this works well. (Took me a long to to get around to implementing it).

Paul