Hi Mick,
yes it has all that!
I am very proud that I googled my brains out, never found an answer, then did it the hard way and came up with something perfect for me. Put this into a tool palette and I am well on my way to making a professional CAD app.
BTW I gave up on that idea of putting up tool palettes horizontally. I make tool pallettes on the left that I switch is the best way to make a GUI for CAD
I will post a better example if anyone wants it.