Stefan Küng
2014-07-05 13:07:52 UTC
I've used style byte indicators as a way to mark certain text (e.g. hyperlinks) as clickable. I wanted to keep the styling of the lexer for the text but only mark it as a hotspot, which I could do by first reading the original style and its attributes, then creating a new style with the same attributes and the hotspot bit set.
Now that style byte indicators are no longer working I'm using the standard indicators. Problem is, there's no way (that I can see) to mark a standard indicator as a hotspot.
I'm currently adding a custom indicator to those texts using INDIC_PLAIN, then checking in a WM_SETCURSOR handler whether to change the cursor.
btw: there's no define for SC_CURSORHAND, but passing '8' to SCI_SETCURSOR works fine.
Still, this isn't the same as before: the underline is always shown.
Is there a better way to do this that I've missed?
Or if I may ask for a new feature:
Allowing to set an INDIC-style as a hotspot and have the SCI_SETHOTSPOTACTIVExxxx work for those as well.
Now that style byte indicators are no longer working I'm using the standard indicators. Problem is, there's no way (that I can see) to mark a standard indicator as a hotspot.
I'm currently adding a custom indicator to those texts using INDIC_PLAIN, then checking in a WM_SETCURSOR handler whether to change the cursor.
btw: there's no define for SC_CURSORHAND, but passing '8' to SCI_SETCURSOR works fine.
Still, this isn't the same as before: the underline is always shown.
Is there a better way to do this that I've missed?
Or if I may ask for a new feature:
Allowing to set an INDIC-style as a hotspot and have the SCI_SETHOTSPOTACTIVExxxx work for those as well.
--
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 scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
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 scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.