- Can I use the fmx grid same as the vcl grid, in some sort of virtual mode to be able to display 10mio.or more rows with values stored in an array?2. Can the memo load huge files or is it limited and slow like the normal TMemo? I can only use it if its able to load large files very fast.This are the most important questions for me at the moment, which will help me to decide what to purchase.
- You can indeed use the grid in virtual mode. Cell data in virtual mode is set via the OnGetCellData event.
Example:procedure TForm1.FormCreate(Sender: TObject);begintmsfmxgrid1.RowCount := 4000000;end;procedure TForm1.TMSFMXGrid1GetCellData(Sender: TObject; ACol, ARow: Integer;var CellString: string);beginCellString := 'cell '+inttostr(acol)+':'+inttostr(arow);end;practical limit related to scroll precision calculation is about 5M rows.2. Not sure what you understand as a large file. I have retested TTMSFMXMemo here with a file of 20MB containing 250000 lines of text and loading in my test was near instant.
We'll need to retest the case with 10m lines.
Do you need this for viewing purposes or viewing & editing purposes?
Viewing and editing, which makes it tricky.
Anyway, I just purchased the component pack and will just see how it goes.
Hm I get an issue... all works well, except when I add a memo, the gui flickers when resizing the form. Its enough to just add FMX.TMSMemo to the uses caluse, without even dropping the memo on the form to have it flicker wildly. The moment I remove FMX.TMSMemo, the flicker is gone. Did I miss something?
This is because the TTMSFMXMemo forces the use of DirectX on Windows for enhanced font rendering accuracy. To disable this, comment the line: