Stonkie
Well-known member
- Joined
- Sep 12, 2007
- Messages
- 279
- Programming Experience
- 1-3
First, hi there, my name is Kevin and I'm glad to have joined this forum
My issue is about turning off the automatic repaint of the background color on a MDIClient. I currently listen to the Paint event to draw a custom background (scaled gradient in background and unscaled company logo at bottom), but the background color always gets drawn first causing a flicker on the screen.
The obvious solution is to extend/inherit the MDIClient into a custom control, but it is declared final/NotInheritable and reproducing its behavior is out of the scope of my application.
Unless we can turn it off without using inheritance, my last resort is to have an image made and just put it in the background image property, however, such an image would be scaled (including the company logo) when the user resizes the screen which is not the behavior we are looking for.
PS : I had to work around some stuff to have it draw well when the MdiClient is allowed scrollbars.
My issue is about turning off the automatic repaint of the background color on a MDIClient. I currently listen to the Paint event to draw a custom background (scaled gradient in background and unscaled company logo at bottom), but the background color always gets drawn first causing a flicker on the screen.
The obvious solution is to extend/inherit the MDIClient into a custom control, but it is declared final/NotInheritable and reproducing its behavior is out of the scope of my application.
Unless we can turn it off without using inheritance, my last resort is to have an image made and just put it in the background image property, however, such an image would be scaled (including the company logo) when the user resizes the screen which is not the behavior we are looking for.
PS : I had to work around some stuff to have it draw well when the MdiClient is allowed scrollbars.