Page 1 of 1

CTextEdit editing colors?

Posted: Tue Jan 02, 2018 3:20 am
by howardantares
Is there a way to control the background and foreground colors of the CTextEdit control? Our edit controls look fine displaying their values, but some users are having trouble reading them when selecting and editing the values. (Is this controlled by the user's system highlight color?)

Re: CTextEdit editing colors?

Posted: Wed Jan 03, 2018 10:27 pm
by howardantares
It does indeed appear to be controlled by the system, at least to some extent. Cubase and Logic use the system's highlight color, which by default is a pale color that nearly matches our blue LED-like font colors (on black backgrounds normally), so when the text is selected, it becomes hard to see. Studio One, on the other hand, appears to change the edit control behavior somehow, so that the user's highlight color gets set as the *foreground* color when the text is selected. So if the user selects a highlight color which contrasts nicely with our font color for Cubase, then in Studio One it may become *harder* to read! I don't see any code in the SDK where we could step in and change the platform-specific edit control behavior, though.