[Lazarus] TsWorkshetGrid isn't scrolling enough
Frans
fjf.vanleeuwen at quicknet.nl
Tue Apr 5 19:58:23 CEST 2016
Hi.
I have a form with a TsWorksheetGrid and a TEdit component. It loads data from a xls file and the
grid is filled as aspected.
I want to use the TEdit field to search for an unknown row, based on the content of the 4th column.
The whole idea is that the Grid react on every character in TEdit. I use the method Edit1OnChange:
So far so good. I start filling TEdit and after the first character ('h) the grid is responding
perfecty. The first row where column 4 starts with that character becomes visible. But when I enter
the second character ('u', TEdit shows 'hu'), the cellcursor goes to the newer row, but the
scrolling of the grid is insufficient. The new row is not visible.
More strange is that a second attempt, after positioning the cursor in the top of the grid,
succesfull is, the grid is now scrolling as aspcted.
--
mvg
Frans van Leeuwen
M 06-51695390
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestFpSpreadsheet.zip
Type: application/x-zip-compressed
Size: 74794 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20160405/b9a8cf58/attachment-0002.bin>
More information about the Lazarus
mailing list