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

 
I think I understand what the problem is, but I still don't see the relationship, why if a table column contains a picture, the picture appears only when the text is aligned on the left border?
 
Konstantin:
I think I understand what the problem is, but I still don't see the connection, why if a table column contains a picture, the picture appears only when the text is aligned on the left border?


Because the library is still under development and not all aspects have been worked out. It was mentioned in the article. Read all the articles more carefully, at least about the elements you use.

Graphical Interfaces X: Updates for drawn table and code optimisation (build 10)

The CCanvasTable::DrawImages() method is used to drawall the table pictures at once, taking into account when you want to draw only the visible area of the table. In the current version of the table, pictures can be drawn only if the text in a column is left-aligned. In addition, at each iteration, it is checked whether a picture is set in the cell and whether its pixel array is empty. If all checks are passed, the CCanvasTable::DrawImage() method is called to draw the picture.

 
Konstantin:
I think I understand what the problem is, but I still don't see the relationship, why if a table column contains a picture, the picture appears only when the text is aligned on the left border?

Read the library description - Anatoly wrote about it somewhere.

ss ... already answered it myself ...

 
Artyom Trishkin:

Read the library description - Anatoly wrote about it somewhere.

ss ... already answered by myself ...

By the way, the article Graphical Interfaces X: Updates for Painted Table and Code Optimisation (build 10) has the least number of views of the whole series. Probably, it's easier to make the author into a helpdesk and wait for a reply for 24 hours than to read the article in half an hour and find all the answers to your questions. )))
 
Anatoli Kazharski:
By the way, the article Graphical Interfaces X: Updates for a Drawn Table and Code Optimisation (build 10) has the fewest views of the whole series. It's probably easier to make the author into a helpdesk and wait for a reply for 24 hours than to read the article in half an hour and find all the answers to your questions. )))

About views is not the right opinion )) I save all articles locally and so my views are not counted.

By the way, the library description is certainly good, but for example a help file on doxygen, as someone posted here, would be necessary, but for this you need to format the code according to doxygen standard:

/*!
 \brief Method Description
 \param const int ...
 \param const int ...
...
 \return if there is a return
 \remark if there is an additional explanation
*/
int Class::Metod(...) {...}

By the way, in such a form even the sources themselves are read very clearly, and all the subtleties of using the library mechanisms would be clear without reading every line of the article, then there would be no need to make a support service out of the author.

 
Konstantin:
about views is not the right opinion )) I save all articles locally and therefore my views are not counted
I'm referring to the overall view statistics. In almost two months from posting, that article has the least amount of views. That was without reference to you personally. Just a bit of light sarcasm. )
 
Konstantin:

By the way, the library description is certainly good, but for example, a help file on doxygen, as someone posted here, would be necessary, but for this it is necessary to format the code according to the doxygen standard:

by the way, in such a form even the sources themselves are read very clearly, and all the subtleties of using the library mechanisms would be clear without reading every line of the article, then there would be no need to make a support service out of the author.

I didn't intend to be a support service. I find doxygen's help style nightmarish and I'm not going to make such a style. I'm not going to adapt to someone else, even more so. The sources are freely available, so you can edit them yourself as you see fit. Many people even at the current stage of development edit and refine the library code to suit their needs.

At this stage, you either read the articles and figure out how it works on your own, or wait for the release, which will be a compact description of what the user needs to use the library in their projects. I think that I'd rather spend my time on further development of the library now than devote my time to everyone personally.

P.S. I will reviewbug reports and fix them in the next updates.

 

By the way, if the number of rows in the table is not known in advance, then when adding them later, the information is added to the cells, but to change the alignment on the column with the picture does not work:

maybe there is some other mechanism, hint.

 
Konstantin:

By the way, if the number of rows in the table is not known in advance, then when you add them later, the information is added to the cells, but you can't change the alignment on the column with the picture:

maybe there is some other mechanism, tell me.

Alignment of what?
 
Anatoli Kazharski:

Being a help desk, I had no intention of being a help desk. I find doxygen's help desk style to be a nightmare and I'm definitely not going to make one. To adjust to someone, even more so. The sources are freely available, so you can edit them yourself as you see fit. Many people even at the current stage of development edit and refine the library code to suit their needs.

At this stage, you either read the articles and figure out how it works on your own, or wait for the release, which will be a compact description of what the user needs to use the library in their projects. I think I'd rather spend my time on further development of the library than devote my time to everyone personally.


I don't think this approach is correct because the library is being developed by you and in the future it will be necessary to make such edits all the time, that's why I don't go into the library sources just for edits

About doxygen help I don't understand why it is awful, comments are written exactly as I wrote above, then the programme itself forms the help with these comments, but of course it's a matter of habit and taste )).

Still, I would like to get a variant of the mechanism to change the alignment in this cell when adding rows.