CTextEdit editing colors?

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

CTextEdit editing colors?

Postby howardantares » Tue Jan 02, 2018 3:20 am

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: 101
Joined: Tue Jun 21, 2016 1:46 pm

Re: CTextEdit editing colors?

Postby howardantares » Wed Jan 03, 2018 10:27 pm

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.


Return to “VSTGUI”

Who is online

Users browsing this forum: No registered users and 1 guest