Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I will add my trial and error to your research in case it's of any value.<br> <img src="https://i.stack.imgur.com/PRw0P.gif" alt="TMS AdvStringGrid">. Here is an image of a TMS AdvStringGrid. I think it is largely based on an ordinary string grid with a lot of useful extensions. To make it easier to count rows, I magnified the image using SnagIt and made the pixel gridlines visible. I added some red lines to the top row of the grid. On this grid, the DefaultRowHeight is set to 21. Between the red lines, there are 5 pixels each so to get 21 pixels for the DefaultRowHeight you would have to include the stringgrid gridline which has a height of 1 pixel. When I load this grid, I use this code:</p> <pre><code>with gridLimits do begin RowCount := 3; Cells[0, 0] := 'Maximum Amount'; Cells[0, 1] := 'Maximum Base'; Cells[0, 2] := 'Maximum Period'; IntegralHeight := False; MyHeight := 0; for i := 0 to RowCount - 1 do inc(MyHeight, RowHeights[i]); Height := MyHeight + 5; end; end; </code></pre> <p>I captured the grid using SnagIt and let it capture an object on the screen. It included the 1 pixel grey line around the grid. The grid actually seems to visibly start at the blue line, so to get the height, I would think I would need to add the DefaultRowHeight times three plus the top blue line plus the bottom blue line, but if I do that and click on the bottom row, the grid scrolls up. It also scrolls up if I add 3 to the height. If I add 4 to the height, it does not scroll. I don't know why I set it on 5 and I will set it to 4 now because you can see that there is 1 pixel too much at the bottom.</p> <p>It may be that the top and bottom grey lines should be added to get the total height of the grid and that is why it is the DefaultRowHeight times 3 plus the top and bottom lines plus two more for the grey lines that SnagIt included.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload