Thanks speter for your code sample. I have seen various examples of code that creates dynamic Point Arrays, but they have different approaches, so that has got me a bit dazzled. Needed something to learn off, to create a dynamic Point Array and then make use of it to draw a structured equal column pattern (like a table for starters).
Was wanting to change the Border Thickness and Line Types inside the Grid possibly via a couple of combo boxes, like in the picture below but using Point Arrays and Lines. I used to program in VB6 (know how to it in VB6) but in Lararus not sure. The RED bits in the picture are combo boxes (1st one has line outside border thickness, 2nd has line types for the inside lines). Similar to what can be done in Ms Word Tables, but simplified. Would be nice to just select certain lines and change their attributes but that is more complex. Still learning.
So ... Using a dynamic array
tpointslist = array[1..num_pts] of tpoint; so num_pts to store position of each point would be = rows x columns
Then split horizontal line into column intervals
Then split vertical lines in row intervals
with dotted lines:
join vertical lines
join horizontal lines
with solid lines:
draw rectangle with solid border and selectable thickness
Maybe?