I have created a custom component which consists of a container component with a filled rounded rectangle that spans the the full width and height. I have then added two buttons on the container, which are transparent. What I want to happen is that when the mouse is over any one of the two buttons, that that the paint functions of all three are called.
At the moment if I mouse over any one of the two buttons, the paint function of the parent container is called, but it is clipped to the region of the moused over button, so it doesn't repaint the full rounded rectangle. How do I make it so that mousing over any button causes the paint functions of the other button and the container component to be called.