notepad4 icon indicating copy to clipboard operation
notepad4 copied to clipboard

Size of cursor in margin area?

Open bluenlive opened this issue 1 year ago • 11 comments

Hello.

I am using a large sized mouse cursor. However, in notepad2-mod, when I move the cursor to the margin area, the size of the cursor is reduced to the default size. Is it possible to modify this to keep the size of the mouse cursor?

bluenlive avatar Mar 16 '23 04:03 bluenlive

Seems related to https://sourceforge.net/p/scintilla/bugs/2382/ and https://sourceforge.net/p/scintilla/code/merge-requests/37/

zufuliu avatar Mar 16 '23 11:03 zufuliu

Filled https://sourceforge.net/p/scintilla/feature-requests/1484/

zufuliu avatar Mar 16 '23 12:03 zufuliu

mouse pointer size is respected when dragging items on "Schemes -> Favorite Schemes" dialog with Copy.cur, we may need a RevereArrow.cur?

zufuliu avatar Mar 16 '23 22:03 zufuliu

mouse pointer size is respected when dragging items on "Schemes -> Favorite Schemes" dialog with Copy.cur, we may need a RevereArrow.cur?

I'm not sure. But for me, I usually use a large blue mouse cursor. Therefore, it feels more natural to flip the cursor rather than use ReversrArrow.cur.

Thanks.

bluenlive avatar Mar 16 '23 23:03 bluenlive

more natural to flip the cursor

Need to find API to retrieve actual cursor size (see https://sourceforge.net/p/scintilla/bugs/2321/).

zufuliu avatar Mar 17 '23 10:03 zufuliu

@zufuliu We can get actual cursor size from registry.

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Accessibility CursorSize or HKEY_CURRENT_USER\Control Panel\Cursors CursorBaseSize

But, I couldn't find API.

https://learn.microsoft.com/en-us/answers/questions/815036/windows-cursor-size

bluenlive avatar Apr 14 '24 04:04 bluenlive

Added a draft implementation using HKEY_CURRENT_USER\Control Panel\Cursors\CursorBaseSize in 244c2264efa9c6ac015e6acd17b44590d0e0b157.

zufuliu avatar Apr 14 '24 09:04 zufuliu

@zufuliu Thanks for your work. I checked it out right away.

The code seems to be working as intended. However, the cursor we see on the screen is jagged because the original that the program is zooming in on is a 32x32 cursor...

bluenlive avatar Apr 14 '24 09:04 bluenlive

I think I'd better close this issue here. Thank you for your work again.

bluenlive avatar Apr 14 '24 09:04 bluenlive

Here may be further changes based on https://sourceforge.net/p/scintilla/bugs/2321/.

zufuliu avatar Apr 14 '24 09:04 zufuliu

Full fixed by 8671ed51f64de38b892364c4a9d521a57ea4aa9e, may still have minor code changes after the change been backported into Scintilla.

zufuliu avatar Apr 19 '24 10:04 zufuliu

Scintilla is going to draw the reverse arrow cursor (based on C:\Windows\Cursors\arrow.svg) with code similar to 185311d3ac339f473ee7a8eb8dfe8d0e301b7f35 and 1291ba387b20971b136cd3f62e39e840ee79a98e, the drawing code can be enabled by set line 2874 to 0:

https://github.com/zufuliu/notepad2/blob/a4c927b0315dc45868193173e7505827f53a2fa1/scintilla/win32/PlatWin.cxx#L2874

zufuliu avatar May 16 '24 13:05 zufuliu