Discussion of article "DoEasy. Controls (Part 12): Base list object, ListBox and ButtonListBox WinForms objects"

 

New article DoEasy. Controls (Part 12): Base list object, ListBox and ButtonListBox WinForms objects has been published:

In this article, I am going to create the base object of WinForms object lists, as well as the two new objects: ListBox and ButtonListBox.

Compile the EA and launch it on the chart:


Here we can see that the top two ButtonListBox buttons work a little differently than the bottom two. This depends on the flags set. In the first case, the buttons cannot be disabled when pressed again. We can disable one button only by pressing the second one. In the second case, the button can be disabled both by clicking on the second one, and by pressing again on the already enabled one. This is affected by the group button flag. If it is set, then the buttons are completely dependent on each other because they work in the group.

The list object works correctly. But the appearance leaves much to be desired. In MS Visual Studio, the list is more compressed, the objects are closer to each other. But here we are still prevented from doing so by the fact that if you place objects closer to each other, then changing the background color of the object when interacting with the mouse does not always work correctly. As soon as we find and fix this, we will be able to adjust the appearance of the created objects.

Author: Artyom Trishkin