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

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
methods X(const int x) and Y(const int y) do not affect the position of the table in the form in any way, it is always located in the upper left corner
Relative coordinates are set when creating elements in a custom class:
//---
What is the task?
Relative coordinates are set when elements are created in a custom class:
//---
What is the task?
to place two tables horizontally, x_gap,y_gap changes the location of horizontal scrolling and that's it ((.
PS. so, it seems to have shifted, but for some reason two tables are shifted ))
and in the method:
CWndContainer::AddToElementsArray(0, m_table_pair.GetTbl());
if there are two tables, the first parameter is always 0 or is it a serial number of identical objects?
For some reason the first table moves persistently under the second table.
...
PS. so, it seems to have shifted, but for some reason two tables have shifted ))
and in the method:
CWndContainer::AddToElementsArray(0, m_table_pair.GetTbl());
if there are two tables, the first parameter is always 0 or is it a serial number of identical objects?
The first parameter is the number of the form to which the element is attached. Perhaps you are adding the same table to the common list of items.
what do you mean in the common list? where is it separated?
here is the method of creation in the form class:
GetTbl method returns a pointer to CCanvasTable m_table
...
Is this the result you want?
//---
I have attached an example in the archive:
here is the create method in the form class:
GetTbl method returns a pointer to CCanvasTable m_table
Do you want a result like this?
//---
Attached an example in the archive:
I did it like this:
and everything worked, it turns out that immediately after creating an object it should be placed in a container and only then create another object ))
No, I have tables in other classes, I use modular programming )) so it is more convenient to manage functionality - main form class, table class 1, table class 2, etc. in the end all elements are assembled in the main form class as separate ready-made objects.
No, I have tables in other classes, I use modular programming )) so it is more convenient to manage functionality - main form class, table class 1, table class 2, etc. in the end all elements are collected in the main form class as separate ready-made objects.
I agree. Many users of this library do that, but I just can't get my hands on it. )
By the way, there is a problem:
The selected line does not allow to work in the tester. It is better to make a choice like this:
and in the programme make a choice like this:
or just use flags to make a selection