Thanks Enrico. You have been a great help.
Now I can use xHarbour until I can figure out the strange behaviour with work areas in Harbour that crashes my program with an internal error.
the btnbmp class takes the color of the text to create the internal box when it has focus