|
-
Jul 10th, 2006, 02:18 AM
#1
Thread Starter
Member
Redrawing graphics in userControl - Button
Hi all,
I've created a Custom button control and i'm drawing the graphics for the button when the paint event is fired. I used Invalidate method to redraw the graphics in events like mousemove, click etc.
My problem is as follows: I created a test application to test the created custom button control. I had two buttons on the form. When i click on one button 1 a message box is showed. This message box covers one part of the other button 2 in the form. When i dismiss the message box in such a way that the mouse is not over button 2, a part of the text in caption of button2 disappears. But what ever may be the case, button 1 appears properly as i have called invalidate during the click event for that button1.
I understand that some event would be fired in button2 when i dismiss the message box, during which i need to call Invalidate? Can some one tell me where to call Invalidate to repaint the graphics in the button2.
Thanks in advance,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|