| |

VerySource

 Forgot password?
 Register
Search
View: 742|Reply: 5

After I customize the mouse cursor, how to define the position of the mouse focus,

[Copy link]

2

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

Post time: 2020-2-18 16:00:02
| Show all posts |Read mode
For example, the system's default mouse focus is on the "upper left corner", and my custom cursor is "32 * 32 cross". At this time, the mouse input focus will also be on the "upper left corner". I Want to set the input focus to the center point of the "cross", please master how to set properties, or how to achieve.

Do not use the original position + 16. Adding 16 in this way will add 16 to the input focus. This will really cause dissatisfaction in the program.

Please master finger.
Reply

Use magic Report

2

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-4-25 11:45:01
| Show all posts
Screen-> Cursors [1] = LoadCursorFromFile ("mycursor1.cur");
        MainPaintBox-> Cursor = (TCursor) 1;
        Application-> ProcessMessages ();

I want to set the focus of the cursor click on the middle point of the "cross", and the default is "upper left corner"
Reply

Use magic Report

0

Threads

12

Posts

10.00

Credits

Newbie

Rank: 1

Credits
10.00

 China

Post time: 2020-6-4 21:00:01
| Show all posts
This seems to be only related to Cur files. Search how to set hotspots for Cur files.
Reply

Use magic Report

2

Threads

7

Posts

8.00

Credits

Newbie

Rank: 1

Credits
8.00

 China

 Author| Post time: 2020-7-17 13:30:02
| Show all posts
up, how to set the mouse cursor file *.Cur hot spot in the program
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-17 17:45:01
| Show all posts
This has nothing to do with the program code, you need to specify the "hot spot" when making Cursor, the default is the upper left corner.
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-17 18:15:01
| Show all posts
For example, when you use the Image Editor that comes with BCB to create a Cursor, the menu Cursor -> Set Hot Spot can specify the hotspot coordinates.
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list