Discussion of article "Graphical Interfaces X: Sorting, rebuilding the table and controls in the cells (build 11)"

 

New article Graphical Interfaces X: Sorting, rebuilding the table and controls in the cells (build 11) has been published:

We continue to add new features to the rendered table: data sorting, managing the number of columns and rows, setting the table cell types to place controls into them.

In the end, everything works like this:

 Fig. 3. Demonstration of interaction with controls in the table cells.

Fig. 3. Demonstration of interaction with controls in the table cells.

Author: Anatoli Kazharski

 
The article is interesting.

However, I didn't understand two things:

1. What is the point of adding and erasing rows and columns of the table using buttons on the form?

I understand the sense of adding rows in dynamic tables, but there it is implemented automatically, not manually....

2. What are "multi-parameter" checkboxes?


 
Реter Konow:
The article is interesting.

However, I didn't understand two things:

1. What is the point of adding and erasing rows and columns of the table using buttons on the form?

I understand the sense of adding rows in dynamic tables, but there it is implemented automatically, not manually....

2. What are "multi-parameter" checkboxes?


1. This is an example. Clicking a button in the example replaces the triggering of a condition in the programme. Although you can also add buttons in the programme - there is not much that your imagination can do.

2. I understand - having more than two On/Off positions. For example Above/Below/Middle

 
Artyom Trishkin:

1. this is an example. Pressing the button in the example replaces the triggering of some condition in the programme. Although you can also add buttons in the programme - there is not much that your imagination can do.

2. I understand - having more than two On/Off positions. For example, Above/Below/Middle.

1. Thanks, partially understood. The need to add rows when new data arrives is clear, but why add columns programmatically or manually after the table is actually built?

2. In my opinion, this is something from the area of multidimensional space. I was explained here on the forum how it is organised, but I still don't understand it. :)

It's like a soft green parabola dancing under the moonlight on the 128th coordinate of the 18th dimension.....
 
Реter Konow:
1. Thank you, partially understood. The necessity of adding rows with the arrival of new data is clear, but why programmatically or manually add columns after the actual construction of the table?

2. In my opinion, this is something from the area of multidimensional space. I was explained here on the forum how it is organised, but I still don't understand it. :)

1. For example: a condition is triggered, when it is necessary to output an additional value to all rows of the table, which was zero before - a column is added, and the value is output to it. As soon as the condition disappears (with the onset of a new day, for example), the empty column can be removed until the next triggering of the condition.

2. And the indicator with three lines - is it from the area of multidimensional space? We make a switch in the zero column of the table with three positions - the upper indicator line, the middle indicator line and the lower indicator line, and in the subsequent cells of the row we enter the values of the selected indicator line.

Doesn't your imagination allow you to think of examples of what this will be useful for?

 
Artyom Trishkin:

1. For example: a condition is triggered, when it is necessary to output an additional value to all rows of the table, which was zero before - a column is added and the value is output to it. As soon as the condition disappears (with the onset of a new day, for example), the empty column can be removed until the next triggering of the condition.

2. And the indicator with three lines - is it from the area of multidimensional space? We make a switch in the zero column of the table with three positions - the upper indicator line, the middle indicator line and the lower indicator line, and in the subsequent cells of the row we enter the values of the selected indicator line.

Doesn't your imagination allow you to think of examples of what this will be useful for?

1. It is possible to find a use for these features. It's just that the article doesn't explain why these features are added. That's why I asked.

2. What is a multi-parameter checkbox? A switch with three positions? Or is it a regular checkbox, but let's say it is used for several parameters at once? For example, in the morning it switches on and off parameter "a", at lunch parameter "b", and at dinner (in a good mood), a couple more parameters switches, but only with light clicks. )

Well, seriously, give me an example of such a multi-parameter checkbox. I just can't remember if I've seen one and where.
 
Реter Konow:
1. It is possible to find a use for these features. It's just that the article doesn't explain why these features were added. That's why I asked.

2. What is a multi-parameter checkbox? A switch with three positions? Or is it a regular checkbox, but let's say it is used for several parameters at once? For example, in the morning it switches on and off parameter "a", at lunch parameter "b", and at dinner (in a good mood), a couple more parameters switches, but only with light clicks. )

Well, seriously, give me an example of such a multi-parameter checkbox. I just can't remember if I've seen one and where.

1. Do you need to remind-explain why the head (mind) is given to man?

2. Have you ever seen a three-position switch in your life? In a car, for example. There's one on the ceiling (On/Off/Door).

 
Artyom Trishkin:

1. Shall I remind you to explain why the head (mind) is given to man?

2. Have you ever seen a three-position switch in your life? In a car, for example. There's one on the ceiling.

Actually, I was hoping to get an answer from the author.

I have already received your explanation, but since you were not the one who wrote the article, you can't know exactly what the author meant by this element.

As a GUI developer I am interested in all original and new controls.

So my head(mind) doesn't want to argue with your head(mind), but wants to get a concrete answer from the author.

If you don't mind.
 
Реter Konow:
Actually, I was hoping to get an answer from the author.

I have already received your explanation, but since you were not the author of the article, you cannot know exactly what the author meant by this element.

As a GUI developer I am interested in all original and new controls.

So my head(mind) doesn't want to argue with your head(mind), but wants to get a concrete answer from the author.

If you don't mind.
That's what flexibility is for, it's not only the author who can think up what elements of his library are needed for. If Anatoly made it so that the elements could be used only within a narrow, defined framework (well... like your creation on the video), what would be the interest in it?
Well you wait for an answer from Anatoly. Don't think about it yourself. I don't mind.
 
Artyom Trishkin:
That's why it's flexible, it's not only the author who can think of what to use the elements of his library for. If Anatoly had made it so that the elements could be used only within a narrow, defined framework (well... like your creation on the video), what would be the interest in it?
Well you wait for an answer from Anatoly. Don't think about it yourself. I don't mind.
If you knew how many times I praised Anatoly's design! How many likes I've given it.

You see, the point is that there is a big dilemma - to make an absolutely flexible but extremely complex system understandable to a narrow circle of professional programmers, or to make a system light and less flexible, but understandable to everyone.

Anatoly chose the first option, I chose the second.

Both options are equally good, they are just different.
 
Реter Konow:
Actually, I was hoping to get a response from the author.
...


In my opinion, Artem has given quite detailed examples.

If more clearly and within the framework of some already existing graphical interfaces, you can look at these options:

1. In Windows, open the "Windows Components" window. There you can see checkboxes with more than two states:

//---

2. In the MetaTrader 5 terminal, open the "Tools" window. In the "History" tab you have the opportunity to switch on/off the visibility of some columns of the table in the context menu: