Discussing the article: "From Basic to Intermediate: Object Events (III)"

 

Check out the new article: From Basic to Intermediate: Object Events (III).

In this article, we will prepare the foundation for what will be covered in the next publication. We will also look at how to make an OBJ_LABEL object fully interactive for editing and moving. In other words, we can change both the text and the position of the OBJ_LABEL object without opening the Object Properties dialog.

So, in the previous article, we saw that it is possible to do what is shown in the following animation.

Animation 01

This makes it possible to implement a mechanism for directly editing the text contained in an OBJ_LABEL object on the chart. However, if we try to add a new OBJ_LABEL manually, we will see that what is shown in Animation 01 is impossible. Why? The reason lies in the filters used when processing events. In a sense, at the first stage, simply removing the filters would already solve the problem. Of course, initially it would. But if we try to do this, we will notice that the application starts going a little crazy.

For this reason, we will quickly show how the source code from the previous article should be changed in order to use the mechanism from Animation 01 to edit any OBJ_LABEL object.


Author: CODE X