Discussion of article "Graphical Interfaces X: Word wrapping algorithm in the Multiline Text box (build 12)"

 

New article Graphical Interfaces X: Word wrapping algorithm in the Multiline Text box (build 12) has been published:

We continue to develop the Multiline Text box control. This time our task is to implement an automatic word wrapping in case a text box width overflow occurs, or a reverse word wrapping of the text to the previous line if the opportunity arises.

And that is not all. In case only one word (continuous sequence of characters) is left on a line, hyphenation is performed character-by-character. This situation is shown in the figure below:

 Fig. 9. Demonstration of a character-wise wrapping when a word cannot be fit.


Fig. 9. Demonstration of a character-wise wrapping when a word cannot be fit.

Author: Anatoli Kazharski

 
Yuriy Zaytsev:
Did the question get lost? I don't see the text of the post. Just a quote from the first post of the thread.
 
Anatoli Kazharski:
Did the question get lost? I don't see the text of the post. Just a quote from the first post of the thread.
It was mute admiration ;)
 
Andrey Khatimlianskii:
It was a mute admiration ;)
It remains to implement text selection and almost full-fledged input field will be ready. I will then replace input fields in various library elements with this variant.
 
I can't understand why when I try to create a panel with my own name but with code taken from any of the examples in these articles, my panel doesn't stay on the chart and deletes itself and in the log it says "2017.04.14 19:37:16.838 MPanele (RUALR,D1) CWndEvents::CheckExpertSubwindowNumber > Deleting the EA subwindow causes the EA to be deleted!". ?
 
Alexander:
I can't understand why when I try to create a panel with my own name but with code taken from any of the examples in these articles, my panel doesn't stay on the chart and deletes itself and in the log it says "2017.04.14 19:37:16.838 MPanele (RUALR,D1) CWndEvents::CheckExpertSubwindowNumber > Deleting the EA subwindow causes the EA to be deleted!". ?
Try to delete all library files and download the latest version from this article.
 
I found the answer myself. It turns out that if you place your own Expert Advisor not directly in the "Experts" folder, but in a subfolder, for example, "Experts\MyExperts", then such self-deletion from the chart occurs.
 
Yes, and with the new library from this article everything works in subfolders too.
 
Alexander:
I found the answer myself. It turns out that if you place your own Expert Advisor not directly in the "Experts" folder, but in a subfolder, for example, "Experts\MyExperts", such self-deletion from the chart occurs.
I tried to test the Expert Advisor at different nesting levels and failed to reproduce this behaviour. Perhaps there is some other reason. If I encounter it, I will fix it of course.
 
When I installed the latest build of the library from this article, all previous examples from Article 01 to Article 10 (from 1 to 5 TestLibrary) stopped compiling. Starting from TestLibrary06 in the folder Article 10 all compile normally without errors. I understand that this is because of the library redesign. In this regard, can you tell me what changes I need to make to the previous examples to make them work or maybe it has already been described in some article? Specifically, I want to make a panel based on the example from the folder Article 7 TestLibrary05. Thanks.