Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
0
ReadOnly UltraTextEditor Appearance Change Does not Work if using StyleSet
posted

I created a styleset library using the AppStylist for Windows Form (v25.1.20251.26) that defines the appearance for UltraTextEditor controls.

The style set configures the appearance for Normal and ReadOnly states, and I have ResolutionOrder for All Components set to ControlThenApplication.

In my WinForm application, When I try to change the BackColor and ForeColor of a ReadOnly UltraTextEditor control, it does not work. The control retains the appearance set by the style set. The appearance change works if the control is not ReadOnly.

// This works. The textbox appears with dark gray background and white text.
normalTextBox.Appearance.BackColor = Color.DarkGray;
normalTextBox.Appearance.ForeColor = Color.White;

// this does not work. The textbox shows with the colors defined in the ISL for ReadOnly State.
readOnlyTextBox.Appearance.BackColor = Color.DarkGray;
readOnlyTextBox.Appearance.ForeColor = Color.White;

Only way I got it to work was to set UseAppStyling to false for the readOnlyTextBox, but by doing that, I lose all the other appearance settings.