Discussion of article "Graphical Interfaces X: Word wrapping algorithm in the Multiline Text box (build 12)"
If I add new lines programmatically, then I call UpdateTextBox(), but the scrollbars and wordwrapping is not getting applied. I need to press some key. How to trigger this without pressing any key?
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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.
Author: Anatoli Kazharski