Dutch,
thank you very much for the posted code, understanding how you solve it, very
impressive.
But I can't compile bpaint.c, so I can't use TSButton and test your app
I think it's because I'm compile my app with xCC.exe (xHarbour.com), perhaps someone has a solution?