Solved

define click point custom cursor

Posted on 2001-06-21
5
291 Views
Last Modified: 2010-04-06
hi,
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....
0
Comment
Question by:brutebass
[X]
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
5 Comments
 
LVL 13

Expert Comment

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

Accepted Solution

by:
kretzschmar earned 100 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
0
 
LVL 2

Expert Comment

by:FrodoBeggins
ID: 6213941
Yes, in the tool you are using look for "define hotspot"
0
 
LVL 2

Expert Comment

by:FrodoBeggins
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;
  CURSORDIRENTRY cdEntries[];
} CURSORDIR;

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

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

Author Comment

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

thanks...all  of you
0

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

Suggested Solutions

Title # Comments Views Activity
Working this component WebCopy with proxy, help 3 102
tidtcpserver connection lost handle 2 111
RESTRequest Parameter 4 54
can i put an image from resource into image tag ? 6 32
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

726 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