10/19/2023 1:32 PM | |
Joined: 3/21/2013 Last visit: 8/26/2024 Posts: 21 Rating:
|
Hello, Yes, yes now I understand that's easier to get the value then I expected. Now I want to try with a property which has no static vale and is Boolean type. I don't get any error but the result is not what I expect. I continue to find the reason. I put also the code if sombody has an idea what could be wrong.
------------------------------------------------------------------------------------------ |
Last edited by: Jen_Moderator at: 10/20/2023 06:45:48New subject after splitting |
|
10/20/2023 5:36 AM | |
Joined: 1/21/2013 Last visit: 9/12/2024 Posts: 3093 Rating:
|
Hi GabyT, Your script can be simplified to:
However, this may not do what you expect. This script - as well as the one you posted - will set the color of the title bar to white when the ShowFocusVisual property is true. Your script will not be able to change the color back to the default. But more importantly, you should be aware of the ShowFocusVisual property. This is used to configure whether or not the item - in your case, the parameter set control - is highlighted when it has the focus. If you want to change the color of the title bar when the control is active, simply use the OnActivated event. And to set the color back, use the OnDeactivated event. But be aware that the ShowFocusVisual property must be false to see the desired color when the control is active. Otherwise you will see the default light blue color. Kind regards |
This contribution was helpful to
1 thankful Users |
Follow us on