Discussion of article "DoEasy. Controls (Part 23): Improving TabControl and SplitContainer WinForms objects"

 

New article DoEasy. Controls (Part 23): Improving TabControl and SplitContainer WinForms objects has been published:

In this article, I will add new mouse events relative to the boundaries of the working areas of WinForms objects and fix some shortcomings in the functioning of the TabControl and SplitContainer controls.

Compile the EA and launch it on the chart:


So, When the selected tab header leaves the edge of the container, as well as when the panel is moved, we can see no more artifacts. The gap between headers and scrolling controls with the vertical header bar is now smaller and neater.

When the headers are on the right, the right side of the control panels is slightly cropped (although we cannot see that). As a result, the cursor does not get to the hidden parts of the panels, so we can easily handle tab headers. The same happens when the panels are reduced by the separator almost hiding the inscription on the panel made by the CLabel class object. The cursor is physically located over the graphical labels, but they are cropped and the cursor is virtually located over their invisible area and the object is not handled.
The SplitContainer control separator now looks better when interacting with the mouse.


Author: Artyom Trishkin