notepad4
notepad4 copied to clipboard
Size of cursor in margin area?
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?
Seems related to https://sourceforge.net/p/scintilla/bugs/2382/ and https://sourceforge.net/p/scintilla/code/merge-requests/37/
Filled https://sourceforge.net/p/scintilla/feature-requests/1484/
mouse pointer size is respected when dragging items on "Schemes -> Favorite Schemes" dialog with Copy.cur, we may need a RevereArrow.cur?
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.
more natural to flip the cursor
Need to find API to retrieve actual cursor size (see https://sourceforge.net/p/scintilla/bugs/2321/).
@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
Added a draft implementation using HKEY_CURRENT_USER\Control Panel\Cursors\CursorBaseSize
in 244c2264efa9c6ac015e6acd17b44590d0e0b157.
@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...
I think I'd better close this issue here. Thank you for your work again.
Here may be further changes based on https://sourceforge.net/p/scintilla/bugs/2321/.
Full fixed by 8671ed51f64de38b892364c4a9d521a57ea4aa9e, may still have minor code changes after the change been backported into Scintilla.
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