
At last month’s Microsoft Dynamics GP Technical Conference 2017 in Fargo, North Dakota, USA, Mariano and I presented the session “Yet Another 25 Development Tricks and Hacks in 50 Minutes” with tips 51 to 75.
During this session, we presented a tip on how to control the mouse cursor from Dexterity. When developer, Mark Fuglie tried to use the tip, it did not work for him.
The problem was that the constants mentioned in the tip are defined in the DEX.DIC, but are not available to developers in Dexterity unless they define them first. I had forgotten that I had already defined them in the GP Power Tools dictionary and so did not add that information to the slide in the presentation.
So, here is the information from tip 64 of 75, with the command, constants and their values:
- Cursor_Set(CURSOR_ARROW); { CURSOR_ARROW = 0 }
- Cursor_Set(CURSOR_WAIT); { CURSOR_ WAIT = 1 }
- Cursor_Set(CURSOR_IBEAM); { CURSOR_ IBEAM = 2 }
- Cursor_Set(CURSOR_PLUS); { CURSOR_ PLUS = 3 }
- Cursor_Set(CURSOR_CHECK); { CURSOR_ CHECK = 4 }
- Cursor_Set(CURSOR_CROSS); { CURSOR_ CROSS = 5 }
- Cursor_Set(CURSOR_HAND); { CURSOR_ HAND = 6 }
- Cursor_Set(CURSOR_GRABHAND); { CURSOR_ GRABHAND = 7 }
- Cursor_Set(CURSOR_GLASS); { CURSOR_ GLASS = 8 }
I have also updated the slide deck on the conference site and added a constants file which can be downloaded and imported to define the constants for you.
Thanks to Mark for pointing this out.
David
This article was originally posted on http://www.winthropdc.com/blog.

Forgive me, I am not finding the updated slide deck on the conference site. I’m looking under both Discussions and Library.
Hi Chad
I updated the deck using the speaker portal. It should be available from where you can download the conference materials.
David