I use GetSysColor() (a windows API), but remind me on Monday, have to run out now, and I'll find the code.
>Hi Frank
>
>>I had previously done this by adding a container around every command button when it got focus (and removing it when it lost focus). The container was opaque and set to the current windows highlight colour. Not sure how that would work in a grid though.
>
>Thanks for your suggestion. I was not able to explain better but actually this command button and the grid are both inside a container. I can put this command button inside a smaller container which can then work as you have suggested. Any function to return the current windows hightlight color?