I've noticed that flexgrids don't have a scalemode property so values as colwidth must be assigned in twips. Is that so or am I missing something?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
What I'm actually worried about is the grid metrics. I've recently posted some query about the correct gid size so that an integer number of cols & rows fitted in it. I wanted to know what the border width was in various practical cases and things like these.
As no one has provided a definite formula I have made a study project to try to learn by eye inspection. I have used a grid with very small cells and a desktop magnifier tool. I have attached the project as well as a spyglass (in case you don't have one handy) that I downloaded God knows where.
I have found that the grid thickness seems to be 2*BorderStyle, so it's either 0 or 2, but in one case I found a border thichness of 3 pixels -but I just can't remember what property I changed.
On the other hand, there are two variables, xoffset and yoffset to help find what were the minum grid width and height that would clip the rightmost column or and downmost row that make the scrollbars appear.
Well, do me a favor, play around with this thing and let me know what you think.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
Another issue is, if there's a horizontal scrollbar, what should the grid height be so that an integer number of rows are completely visible (i.e. not clipped)?
I thought I could derive this by trial and error but the figures I'm getting make no sense. For example, my last attempt was:
As the returned VSC_B value was 1 pixel, I tried different values of MyGuess and it turned out that 17 was the minimum value that didn't call for a vertical scrollbar, meaning that the rows were visible. So why 17?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
Another issue is, if there's a horizontal scrollbar, what should the grid height be so that an integer number of rows are completely visible (i.e. not clipped)?
I thought I could derive this by trial and error but the figures I'm getting make no sense. For example, my last attempt was:
As the returned VSC_B value was 1 pixel, I tried different values of MyGuess and it turned out that 17 was the minimum value that didn't call for a vertical scrollbar, meaning that the rows were visible. So why 17?
Now, if MyGuess is 1 this is the minimum value necessary to avoid a vertical scrollbar, but you need MyGuess=2 to make the last row completely visible.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)