Change Button color property in Userform
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Thank you.
C
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Before setting the color for button you must make the cxbcPressed flag to true as below
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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.
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Helen Kosova
SmartBear Documentation Team Lead
________________________
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
