Change Button color property in Userform
I am unable to change the color property for a TcxButton type:
UserForms.AppMain.RunScript.Colors.Pressed = clRed;
What is the appropriate way to set the button color property?
I am unable to set this property in the script. It is not available:
Error The object does not support this property or method. Error location: Unit: "TC.G2_0\UlineTestApp\Script\MainForm" Line: 20 Column: 50.
The object does not support this property or method.
@caulineI have edited my post, As per my understanding there is no way to set cxbcPressed value thru script.
You should make flag to true during design itself.
Custom button colors are only used when using the Windows Classic theme or TestComplete UI theme Standard, Enhanced or Flat. I'm afraid this is by design.
SmartBear Documentation Team Lead
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️