Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


define click point custom cursor

Posted on 2001-06-21
Medium Priority
Last Modified: 2010-04-06
i've made a custom cursor for my delphi program. The cursor looks like a paintbox. The default windows cursor (arrow) has its effective pixel in the upperleft corner (the point of the arrow). My own cursor has the 'effective pixel' also there. is there anyway to change this cuz i'd like to make the right side of custom cursor to be 'effective'

thanks in advance.

p.s. i know this is a little weird story, but i dont know another way to ask....
Question by:brutebass
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 13

Expert Comment

ID: 6213710
Take a look at the 'CreateCursor' and 'SetCursor' API functions.
LVL 27

Accepted Solution

kretzschmar earned 400 total points
ID: 6213782
normally you can define this point with the tool you've used to design it, like in microangelo or (not sure) in the workshop, which comes with delphi

Expert Comment

ID: 6213941
Yes, in the tool you are using look for "define hotspot"

Expert Comment

ID: 6213971
Or you can change it directly in the .cur file. The file fomat is (in C):
typedef struct _CURSORDIR {
  WORD           cdReserved;
  WORD           cdType;
  WORD           cdCount;

typedef struct _CURSORDIRENTRY {
  BYTE           bWidth;
  BYTE           bHeight;
  BYTE           bColorCount;
  BYTE           bReserved;
  WORD           wXHotspot;
  WORD           wYHotspot;
  DWORD          lBytesInRes;
  DWORD          dwImageOffset;

So you are on the 6-th and 7-th word, if I'm not wrong...

Author Comment

ID: 6214024
great, didnt see the button in microangelo, but that was because i didnt look for it :)

thanks...all  of you

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question