Discussion of article "Graphics in DoEasy library (Part 96): Graphics in form objects and handling mouse events"

 

New article Graphics in DoEasy library (Part 96): Graphics in form objects and handling mouse events has been published:

In this article, I will start creating the functionality for handling mouse events in form objects, as well as add new properties and their tracking to a symbol object. Besides, I will improve the symbol object class since the chart symbols now have new properties to be considered and tracked.

Compile the EA and launch it on the chart. Two forms with the ability to drag them with a mouse independently of each other are created. Each current form is always located above other objects — on the foreground, while data on a selected form is displayed in the chart comments:


We can see that the forms can be relocated independently of each other, while the chart remains fixed. Each active form is always located on the foreground. However, there are considerable drawbacks as well: if we move the chart with the mouse and the cursor touches the form area, it becomes active and can be managed. Cursor coordinate changes relative to the form reference point can occasionally be calculated incorrectly after the chart is dragged by the mouse.

I will detect and fix all these drawbacks during the further development.

Author: Artyom Trishkin

 

Hi Artyom,

could you please create one ZIP file with all your DoEasy files? Includes and all TestDoEasy indicators and experts?

Usualy it is only one test indicator or expert in ZIP file which belongs to that part. Thanks a lot.

 
Yes, that would be wonderful!
 
thebeno #:

Hi Artyom,

could you please create one ZIP file with all your DoEasy files? Includes and all TestDoEasy indicators and experts?

Usualy it is only one test indicator or expert in ZIP file which belongs to that part. Thanks a lot.

Marcel Fitzner #:
Yes, that would be wonderful!

This will not give a result, since each article has its own test programme, which will no longer be able to work in the new version of the library. The library is under development, and these stages are described in the articles. Therefore, any versions incompatible with the previous articles are always possible.
Once development is complete, there will be many use cases. That's when it will be possible to collect all the examples in one archive, since they will all be made on the current version of the library.

 

Ok, mate! Thanks for your reply. So long, we will be learning from what you're developing. Cheers!