Are the cells with the yellow background customdrawn? If yes then post your painting code.
Please test with the new fixes_1_8 branch. It has many changes related to scaling. http://wiki.freepascal.org/Lazarus_1.8_fixes_branch
Thanks Juha. I looked at the fixes but didn't see anything that looks related. However, there could be an answer in the many changes.
It's been 14 years since I used SVN so I'll wait a little longer before trying your suggestion.
I'm still trying to master GIT.
Quote from: wp on April 21, 2017, 01:14:29 amAre the cells with the yellow background customdrawn? If yes then post your painting code.No, the first four data cells are not custom drawn. They do get looked at by several events to set the proper context menu and to wrap to the next line when a tab, arrow, or return goes beyond the fourth cell. The remaining calendar cells are not edited but filled by seperate forms. The heading cells are not edited. The "Percent Complete" bar is custom drawn by OnDrawCell but the data is edited the same as the first three cells. I did try setting the Editor Height to the row height but it made no difference. It looks like the text rectangle is being filled with yellow instead of the cell rectangle.
... Can you post the OnDrawCell code? Is this where the yellow cell (the one with "Survey and Layout") is painted? I am almost 100% sure that the version change of Lazarus not the problem.
The yellow background is set in all four columns by OnSetEditor when the cell is entered and not by OnDrawCell or any other event. The cell returns to its default black on white format when the cell is exited.
I think i know now what you do: you set the Color of the Grid's Editor to clYellow? Well, the cell editor is a bit smaller than the cell. And I remember there were some changes with positioning of the editor within the cell. Therefore, there is a white margin around the editor One way to get a uniform yellow background of the editing cell would be to paint also the cell background in yellow while the grid is in edit mode.
The current behavior is the result of fixing this bug: http://bugs.freepascal.org/view.php?id=29196 . . . .