Setting userlist foreground and background colours

45 views
Skip to first unread message

Matteo Vescovi

unread,
Aug 16, 2011, 11:45:26 AM8/16/11
to scintilla...@googlegroups.com
Hi,

Is it possible to set the foreground and background colours of a user
list (or autocompletion) list?

I tried setting the foreground and background colours for STYLE_DEFAULT
and then sent a SCI_STYLECLEARALL message, but this did not have the
desired effect (i.e. the foreground and background colours in the
editing components are set correctly, but the fore and back colours in
the user list are left unmodified).

Does anybody know whether this can be done and, if so, how to do it?


Cheers,
- Matteo

Neil Hodgson

unread,
Aug 16, 2011, 7:48:25 PM8/16/11
to scintilla...@googlegroups.com
Matteo Vescovi:

> Is it possible to set the foreground and background colours of a user list
> (or autocompletion) list?

There is no platform-independent API for this.

Neil

CNavarro

unread,
Oct 17, 2017, 10:03:02 AM10/17/17
to scintilla-interest
Good afternoon
Returning to this theme:
I have read that it is possible to change the style in the text that is included in the selection lists, using the STYLE_DEFAULT and making the changes previously in this style.
But I can not change the color of the text or the background of the list
This is possible?. I can not make it work
Thanks in advance

     MySendMessage( SCI_STYLESETFONT, STYLE_DEFAULT, "Calibri" )     // This run OK
     MySendMessage( SCI_STYLESETSIZE, STYLE_DEFAULT, 14 )                     // This run OK
      //MySendMessage( SCI_STYLESETBOLD, STYLE_DEFAULT, 1 )
      MySendMessage( SCI_STYLESETFORE, STYLE_DEFAULT, 8388608 )       // Not run
      MySendMessage( SCI_STYLESETBACK, STYLE_DEFAULT, 14997199 )     // Not run
      MySendMessage( SCI_AUTOCSHOW, 0, cSymbols )

Neil Hodgson

unread,
Oct 17, 2017, 6:09:51 PM10/17/17
to Scintilla mailing list
CNavarro:

> I have read that it is possible to change the style in the text that is included in the selection lists, using the STYLE_DEFAULT and making the changes previously in this style.

This does not influence the colours which use platform defaults.
Reply all
Reply to author
Forward
0 new messages