Discussion of article "DoEasy. Controls (Part 21): SplitContainer control. Panel separator"

 

New article DoEasy. Controls (Part 21): SplitContainer control. Panel separator has been published:

In this article, I will create the class of an auxiliary panel separator object for the SplitContainer control.

Compile the EA and launch it on the chart:


All works fine except for redrawing delays. Unfortunately, I was not able to find the reason for these freezes on my low-power old laptop. Possibly, the laptop was so overloaded with processes that it was not able to smoothly display changes in the coordinates and sizes of the panels, or perhaps the code needs further optimization. I noticed that such freezes are occasional. But in any case, the library code will be subject to optimization after its development is completed. Besides, displaying/hiding the separator object does not always work reliably. I will also solve this when developing the control.

Author: Artyom Trishkin

 
Look at the source of resizing the kanvas, there is extra there, a couple of CPU cycles can be freed up.
 
Aliaksandr Hryshyn #:
Look at the source of resizing the kanvas, there is extra there, a couple of clock cycles can be freed up.

Thanks. Everything will be done together with optimisation of the rest of the library code at the stage of its development completion.

 

Indicators\\DoEasy\EventControl.ex5, I had it open on 10 charts 4-5 times per chart after using the code from the article.

Only today I noticed extra indicators, and yesterday my computer froze, I had to reboot, most likely a bug in the code.

 
BillionerClub #:

Indicators\DoEasy\EventControl.ex5, I had it open on 10 charts 4-5 times per chart after using the code from the article.

Only today I noticed extra indicators, and yesterday my computer froze, I had to reboot, most likely a bug in the code.

Thanks. I will look for the reason.