Topic: TableGrid width
Hi All,
When doing some final testing of my program I've run into something strange.
-
I'm testing my program on 2 different PC's. #1 - 1920 pixels wide and #2 - 1366 pixels wide.
-
My program was written and seems to work fine at 1920 pixels.
However when I test on a 1366 pixel PC the TableGrids do not adjust to the screen width. They become quite wide. The horizontal scroll bar does appear and I can see everything when I scroll left and right, but I don't understand why the TableGrids don't seem to change with my screen size?
-
I check for the screen size with this code:
...else if screen.Width = 1366 then
begin
vscale := 120;
end
.
All of my forms on the 1366 PC fit OK on the screen. It's just the TableGrids that don't seem to change with the forms.
.
UPDATE: I just noticed that the TableGrid box does change in size according to the size of the PC. It seems that the individual cells in the TableGrid do not change according to the screen size. I do see that if I use the vertical bars in between the cells to change the width of each cell, then I can make it all fit in the TableGrid box. And everything seems to look OK.
-
So I'm thinking that I might just have to tell my users to use the vertical bars to adjust the cells to fit their screen??
-
Your comments will be appreciated as always.
-
Thanks
Frank