May 22, 2012
I have form, on which a component is placed, which is inherited from Forms.UserControl. This component, called Panel, handles the layouting as visible in the screenshot below.
View 1 Replies
The screenshot shows 10 Panels. Each Panel contains its own title bar and visible area, in which any UI can be displayed.When the application starts, the application contains only one single Panel. When the user decides to split this Panel into 2 Panels, those new Panels are displayed side-by-side in the area of the old Panel either horizontally or vertically. Inbetween these Panels a splitter is added, so that the user can resize the Panels. The user can do the splitting multiple times, so that you reach a layout as given in the screenshot above with 10 Panels.
Minimizing and the maximizing the application causes a painting issue as displayed in the screenshot below. The red rectangle indicates the area, where the layout is not displayed properly.
Here some additional information:
1. Windows 7 The issue occurs only on Windows 7 machines. On Windows XP the application is running properly.
2. .Net Framework The application was developed for the .Net Framework 1.1. I upgraded it to 4.0. All warnings were fixed, which occured after the upgrade to 4.0.
3. Layouting Technically The Panel works internally with mutiple Forms.Panel, 1 Forms.Splitter etc. objects. If the Panel is not splitted, it displays the title bar and a visible area below, both instances of Panel. If splitted, the Panel replaces the title bar and visible area with 2 instances of Panel again but divided by a Splitter.