Discussion of article "Graphical Interfaces X: Text selection in the Multiline Text box (build 13)" - page 11

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
Add tabs before creating an element. Refer to the examples in the articles about this or that element. If something is not mentioned, it means that this feature does not exist yet.
Adding and deleting after an element is created works now only in lists and tables.
I.e. in this class the CreateTabs method is fundamental for creating tabs? When changing the number of tabs, would it be correct to use the Delete method and then use the CreateTabs method after it? Or is it necessary to specify all properties again after the Delete method as at the initial creation?
Yes. We specify the properties first and then create the item.
At the moment there is no mechanism for correct deletion of elements at runtime. They will remain in the general list of elements. But try it as you described it in your question. I haven't tested this way yet.
Yes. We first specify the properties and then create the element.
At the moment there is no mechanism for correct deletion of elements at runtime. They will remain in the general list of elements. But try it as you described it in your question. I haven't tested this way yet.
this is how it works:
I have highlighted in colour what is no longer needed in the class creation method, as it is essentially used in the ReInit method .
All event and interaction mechanisms are described in the main form class of the programme.
that's how it works:
Thanks for the example. Interesting.
Thanks for the example. Interesting.
I found one bug - if there are no tabs, when changing the size of the chart (form), the programme crashes with the error array out of range in 'Tabs.mqh' (821,21)
found one bug - if there are no tabs, then when changing the size of the chart (form), the programme crashes with the error array out of range in 'Tabs.mqh' (821,21).
When creating objects (form elements), the CWndContainer::AddToElementsArray(0, m_object); method is used, is there any mechanism to correctly remove a given object from this container?
This is required when creating / deleting charts, when using the above mechanism of adding / deleting tabs.
When creating objects (form elements), the CWndContainer::AddToElementsArray(0, m_object); method is used, is there any mechanism to correctly remove a given object from this container?
This is required when creating / deleting charts, when using the above mechanism of adding / deleting tabs.
This has not been implemented yet.
This is not implemented yet.
it would be more logical to make deletion at the request of the class user, because working with objects in dynamics animates the interface more, for my task I will enter the number of charts by the number of ticker pairs, but since I have 702 ticker pairs based on 27 tickers, it is not difficult to calculate what brakes will be if you go to another market where there are many more tickers ))
by the way, I will also check how much memory will be consumed by such a number of ticker pairs ))