Paint event is not firing

Docking/MDI for Windows Forms Forum

Posted 12 years ago by Dean Vance - Central Ohio Hospitalists
Version: 2.0.0062
Avatar
I've got a basic form with a TabStrip & TabStripPage on it. The Paint event is not firing for either control. Is this be design?

Comments (4)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Yes, we have a custom implemetation of OnPaint that calls our OnRender method instead to provide extended double buffering. But if you want to do custom painting, you should do it in a renderer class for TabStrip. The renderer draws/measures every portion of a TabStrip and allows you to make a completely custom looking one if you desire. Renderers can be set to the TabStrip.Renderer property.


Actipro Software Support

Posted 12 years ago by Dean Vance - Central Ohio Hospitalists
Avatar
I’ve looked at what you have described, and I have actually done a little work in this class in the bast. However, it looks like this just deals with the TabStrip…correct? How can I do custom painting on the actual Page?
Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
You can override the renderer's DrawTabStripPageBackground method to custom paint the page. The renderer works on the TabStrip and the pages.


Actipro Software Support

Posted 12 years ago by Dean Vance - Central Ohio Hospitalists
Avatar
Thanks! That's what I was missing!
The latest build of this product (v2020.1 build 0400) was released 3 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.