CTextEdit editing colors?

A user interface toolkit mainly for audio plug-ins (VST, AudioUnit, etc).
Post Reply
howardantares
Posts: 128
Joined: Tue Jun 21, 2016 1:46 pm

CTextEdit editing colors?

Post 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?)

howardantares
Posts: 128
Joined: Tue Jun 21, 2016 1:46 pm

Re: CTextEdit editing colors?

Post 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.

Post Reply