Re: [Gtk] Fold margin formatting / Folding in the container
Neil Hodgson <[email protected]> Fri, 2 May 2025 08:54:24 +1000
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <CACWkrTig6rg8zBPtyMNs5eYrH5fnqL2fuCxF8eg1C0Ej-5-TBA@mail.gmail.com> |
> This is not what's happening. Have a look at this sample - it's a modified > "Bait" for Gtk 3: > > https://gist.github.com/rhaberkorn/ce11d1b35633908d4af51eb16f79e1f0 SCI_SETFOLDMARGINCOLOUR(bool useSetting, colour back) SCI_SETFOLDMARGINHICOLOUR(bool useSetting, colour fore) These messages allow changing the colour of the fold margin and fold margin highlight. On Windows the fold margin colour defaults to ::GetSysColor(COLOR_3DFACE) and the fold margin highlight colour to ::GetSysColor(COLOR_3DHIGHLIGHT). > Also, the automatic fold setting apparently doesn't work. I beliebve it > should be able to handle clicks automatically. SCI_SETMARGINSENSITIVEN(int margin, bool sensitive) SCI_GETMARGINSENSITIVEN(int margin) → bool Each of the five margins can be set sensitive or insensitive to mouse clicks. A click in a sensitive margin sends a SCN_MARGINCLICK or SCN_MARGINRIGHTCLICK notification to the container. Margins that are not sensitive act as selection margins which make it easy to select ranges of lines. By default, all margins are insensitive. Neil -- 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 visit https://groups.google.com/d/msgid/scintilla-interest/CACWkrTig6rg8zBPtyMNs5eYrH5fnqL2fuCxF8eg1C0Ej-5-TBA%40mail.gmail.com.