I need to obtain the theme with the help of macro using button but at the same time its not deactivating the current theme(I need to obtain the active caption color while clicking the button instead it showing the inactive caption color)Can any one help!!
No from the themes folder only i am picking one theme but while clicking the macro button , it shows the inactive caption colour...I need to obtain the active caption color while i am clicking the button alone!
What you have done is correct. I had tested the same code on my system by using different .QVT theme and it works without any problem. I mean it applies the theme to both active & inactive caption. However, try changing your colors on active & inactive captions before trying to apply the theme. I had changed both the colors in white and then applied the theme (which are red, blue) and it works without any issue.
Thanks dude! Its working in the same procedure what you have explained but is there any possibilites if i click the same button and the theme changes to white color with the same code(Both active and inactive caption)..? i.e Deactivating its theme and again applying?