I've been playing around with the Sublime text editor ( http://www.sublimetext.com/) lately. It has a lot of neat features, I suggest taking a look at it. One feature it has, that I'd like to add to my application, is changing the margin background color for the current line. It works similar to the SCI_SETCARETLINEBACK command, but only affects the margin. Is this currently possible with scintilla? I know how to control the background color of the margin, but it affects all the lines.
On 10 October 2012 04:52, Farshid Lashkari <fla...@gmail.com> wrote:
> Hi,
> I've been playing around with the Sublime text editor (
> http://www.sublimetext.com/) lately. It has a lot of neat features, I
> suggest taking a look at it. One feature it has, that I'd like to add to my
> application, is changing the margin background color for the current line.
> It works similar to the SCI_SETCARETLINEBACK command, but only affects the
> margin. Is this currently possible with scintilla? I know how to control
> the background color of the margin, but it affects all the lines.
Use MARGINSETSTYLE to set the background per line.
> --
> You received this message because you are subscribed to the Google Groups
> "scintilla-interest" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/scintilla-interest/-/rrwCwPyU1iQJ.
> To post to this group, send email to scintilla-interest@googlegroups.com.
> To unsubscribe from this group, send email to
> scintilla-interest+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/scintilla-interest?hl=en.
> I've been playing around with the Sublime text editor (http://www.sublimetext.com/) lately. It has a lot of neat features, I suggest taking a look at it. One feature it has, that I'd like to add to my application, is changing the margin background color for the current line. It works similar to the SCI_SETCARETLINEBACK command, but only affects the margin. Is this currently possible with scintilla? I know how to control the background color of the margin, but it affects all the lines.
You would need to track the caret and use a marker. Maybe a translucent pixmap of the same size as the margin.