Forum > LCL

Interface suggestions - input of a grid of numbers

(1/2) > >>

lucyfrost:
I'm not a total beginner, but generally my work is with databases and web forms. But an acquaintance has offered a side hustle :-)

I need to display a grid of squares - often 10x10, maybe as large as 20x20 - and have a scientist, or his lab assistant, enter a number into each. (These represent results from varying 2 factors in up to 20 steps).  Then comes a lot of trend analysis.
The on-screen appearance of the grid is the problem.

A stringgrid doesn't look right, not like a square grid, so the mental picture doesn't match the physical one. I don't want them entering data into a spreadsheet then getting that into this anaysis stage.

What sort of interface do you suggest? An array of controls?

TIA
Lucy

Sieben:
TDrawGrid...?

jamie:
You can resize the cells as you wish.

COLS[X].Width := ?

etc.

Also you can turn off the lines.

You can turn off the fixed cells.

You can custom Paint each cell as you wish.

what else is there?  :o

marcov:
Or something own based on TPaintbox

Curt Carpenter:
Do your users really need to see all 400 numbers in a 20x20 array at one time?  That's a lot of numbers from a human factors perspective.  I'd think about abstracting the array away from displaying numbers to just allowing your user to select one number of the 400 to enter/edit/display.

How about providing a string or draw grid with 20 rows and 20 columns with row height set to column width.  Let the user click a cell in the string grid to open an edit box to display/edit/enter the number associated with that cell.  Maybe change character content or color of the cells that have entered content.

Navigation

[0] Message Index

[#] Next page

Go to full version