Re: Make current line number stand out?

Andrew Truckle <[email protected]>
Newsgroups gmane.comp.lib.scintilla.devel
Message-ID <[email protected]>
On Saturday 25 May 2024 at 22:53:50 UTC+1 Neil wrote:


Not easily. Text margins could be used but the application would have to 
track the selection.


 OK. I did ask OpenAI and it suggests doing this instead:

// Set the caret line background color (RGB format)
COLORREF caretLineColor = RGB(240, 240, 240); // Light gray color
SendMessage(hScintilla, SCI_SETCARETLINEBACK, caretLineColor, 0);

// Optionally, set the caret line background transparency (0 to 255)
int alpha = 100; // Transparency level (0 = fully transparent, 255 = fully 
opaque)
SendMessage(hScintilla, SCI_SETCARETLINEBACKALPHA, alpha, 0);

So I think I'll give it a go. Although I am concerned about possibly 
clashing with syntax text colours. We'll see.

-- 
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scintilla-interest/b4c027bf-b09a-4c56-8c2b-d33ec285af99n%40googlegroups.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.