Commit Graph

87 Commits

Author SHA1 Message Date
wp_xxyyzz
d9488921a0 fpspreadsheet: Fix broken transfer of TsCellEdit content to the grid by clicking on the grid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6540 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-26 20:39:34 +00:00
wp_xxyyzz
53e91906b0 fpspreadsheet: Cleanup fpsworksheetgrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6539 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-26 17:41:05 +00:00
wp_xxyyzz
f0a2dac5a0 fpspreadsheet: Fix formula validation by WorksheetGrid not using localized formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6535 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-26 15:41:21 +00:00
wp_xxyyzz
ce3d71a362 fpspreadsheet: Fix cell references in several formulas.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6534 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-26 15:36:41 +00:00
wp_xxyyzz
e3a74f280e fpspreadsheet: Fix inconsistent built-in worksheetgrid cell editor or TsCellEdit selection behavior in the case of an error in edited formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6530 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-25 11:58:08 +00:00
wp_xxyyzz
f8229f7caa fpspreadsheet: Show arrow cursor for dragging current cell in WorksheetGrid only after short delay.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6529 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-25 07:19:34 +00:00
wp_xxyyzz
c6b5ea4fa8 fpspreadsheet: Improved formula validation by TsWorksheetGrid and TsCellEdit
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6524 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-24 21:59:43 +00:00
wp_xxyyzz
18395604ba fpspreadsheet: Fix navigation within worksheetgrid if in-place editor contains an erroroneous formula.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6514 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-20 16:57:20 +00:00
wp_xxyyzz
92a061388c fpspreadsheet: Fix grid behavior when navigating to another cell and the currenly edited cell contains a formula with error.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6503 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-17 21:53:40 +00:00
wp_xxyyzz
1d35a3b0c9 fpspreadsheet: Fix crash in Worksheet.GetEffectiveCellFormatIndex and add overloaded version.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6494 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-13 21:54:35 +00:00
wp_xxyyzz
29f1533516 fpspreadsheet: Extend fpspreadsheet actions to supply default captions and hints.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6493 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-13 21:51:40 +00:00
wp_xxyyzz
f62d2b35d7 fpspreadsheet: Add TsClearFormatAction to clear a cell format.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6492 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-13 09:20:10 +00:00
wp_xxyyzz
2e1e4532ff fpspreadsheet: Reinstate PropertiesToSkip lost when the packages were separated.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6470 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-06 11:30:09 +00:00
wp_xxyyzz
06c3a04c78 fpspreadsheet: Split package laz_fpspreadsheet_visual into a runtime and designtime package.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6461 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-04 21:01:35 +00:00
wp_xxyyzz
38001d24d7 fpspreadsheet: Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6456 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-04 11:03:03 +00:00
wp_xxyyzz
3edd24a215 fpspreadsheet: Fix worksheetgrid not showing column titles (A, B, C, ...) any more after Lazarus r57969.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6451 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-06-02 16:18:16 +00:00
wp_xxyyzz
40fabfc201 fpspreadsheet: Redo storage of formulas: formulas now are stored in a separate tree independent of the cells tree. The field FormulaValue of TCell record was removed. All unit tests passed. Demos updated (issues of speedtest due to SST in BIFF8 found - not related).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6446 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-05-30 22:15:07 +00:00
wp_xxyyzz
b6e1a4c495 fpspreadsheet: Fix WorksheetGrid not being able to delete a cell block.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6323 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-19 20:30:43 +00:00
wp_xxyyzz
7c9bda8104 fpspreadsheet: Add events OnGetColHeaderText and OnGetRowHeaderText to override the default column and row header captions of the WorksheetGrid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6302 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-12 20:07:34 +00:00
wp_xxyyzz
43d34422ad fpspreadsheet: Fix TsCellIndicator to display only the base of a merged block
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6284 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-04-01 10:55:28 +00:00
wp_xxyyzz
a70231ab75 fpspreadsheet: Make sure that the local variable commentcell_rct in TxCustomWorksheetGrid.InternalDrawRow is initialized (issue #33413, patch by Lagunov Aleksey).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6234 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-03-11 21:06:49 +00:00
wp_xxyyzz
332d8efdd4 fpspreadsheet: Remove forced "Doublebuffered" of WorksheetGrid again, now that grid flickering is fixed in lcl r57338.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6210 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-20 23:51:28 +00:00
wp_xxyyzz
b1dfb45d3a fpspreadsheet: Remove code which repaints the entire worksheet grid if the mouse is moved into anohter cell.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6191 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-09 10:50:38 +00:00
wp_xxyyzz
4f5e416606 fpspreadsheet: Quick-and-dirty fix for severe flicker of TsWorksheetGrid after Laz trunk r57267
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6186 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-02-08 00:11:58 +00:00
wp_xxyyzz
e9f3b75cf1 fpspreadsheet: New HiDPI palette icons (by Roland Hahn) for TFPSExport and TsWork(book|sheet)ChartSource
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6111 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2018-01-01 17:37:15 +00:00
wp_xxyyzz
b2ed81ee6e fpspreadsheet: Avoid quoted text when copying a single cell with linebreaks to clipboard.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6070 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-11-14 11:40:04 +00:00
wp_xxyyzz
ea22d330d4 fpspreadsheet: Fix merged ranges sometimes being read incorrectly from ods files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6032 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-10-04 17:19:53 +00:00
wp_xxyyzz
96ffaaa4d2 fpspreadsheet: Fix crash of db_import_export demo in virtual mode.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5993 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-08-09 22:52:49 +00:00
wp_xxyyzz
fbb376d778 fpspreadsheet: Fix changing of WorksheetGrid column width/row height by dragging with the mouse.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5950 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-21 08:29:25 +00:00
wp_xxyyzz
7d59e20f9f fpspreadsheet: Fix crash of visual controls when workbook.RemoveAllWorksheets is called. Visual controls can handle the case of active worksheet = nil.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5937 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-14 16:40:36 +00:00
wp_xxyyzz
9be1008351 fpspreadsheet: Fix compilation after odPainted (lcltype.TOwnerDrawStateType) has been renamed in lcl to odBackgroundPainted (laz r55303)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5929 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-11 21:51:10 +00:00
wp_xxyyzz
2a1ae05840 fpspreadsheet: Fix memory leak in worksheetgrid (due to FrozenBorderPen)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5919 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-07 07:02:10 +00:00
wp_xxyyzz
c823c510e5 fpspreadsheet: Add palette icons with 150% and 200% magnification. Replace the old Excel overlay image with a more neutral spreadsheet overlay (taken from FatCow icon set)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5915 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-06-02 10:01:06 +00:00
wp_xxyyzz
10a0476010 fpspreadsheet: Add cursor for drag-and-drop copy mode. Add script to generate the lrs file for the visual components.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5908 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-28 15:25:50 +00:00
wp_xxyyzz
c574ed921a fpspreadsheet: Initial implementation of drag and drop within WorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5907 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-28 10:17:41 +00:00
wp_xxyyzz
505b833416 fpspreadsheet: Fix formatting error of large numbers if grid column width is very narrow (TrimToCell).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5906 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-27 17:44:51 +00:00
wp_xxyyzz
685581a8da fpspreadsheet: Fix WorksheetGrid event OnSelectCell not firing any more. Less hints.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5905 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-27 16:43:27 +00:00
wp_xxyyzz
89134ba0c5 fpspreadsheetgrid: Fix "Window has no parent" error if worksheetgrid is inside a TFrame (again...). Fix overflow when loading worksheetgrid from lfm if IDE is compiled with range checking on.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5868 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-18 23:28:17 +00:00
wp_xxyyzz
61a08b692e fpspreadsheet: Set default value of TsCellEdit.WantReturns to false.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5858 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-15 10:48:05 +00:00
wp_xxyyzz
9e06abcd17 fpspreadsheet: Fix incorrect grid column count if aeDefault is not in AutoExpand flags (http://forum.lazarus.freepascal.org/index.php/topic,36770.msg246192.html#msg246192).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5857 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-14 21:41:40 +00:00
wp_xxyyzz
bea0ea9d36 fpspreadsheet: Finetune position of selection rectangle in grid.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5856 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 20:26:44 +00:00
wp_xxyyzz
560dedba1d fpspreadsheet: Replace property FrozenPaneBorderColor by FrozenBorderPen. Adjust location of frozen border line such that full pen width is not clipped.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5855 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 17:59:17 +00:00
wp_xxyyzz
29481d9382 fpspreadsheet: Improved painting of WorksheetGrid's FocusRect (priority to stay inside the cell).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5854 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 12:41:03 +00:00
wp_xxyyzz
dbe8c84cd7 fpspreadsheet: Introduce new property FrozenPaneBorderColor of the TsWorksheetGrid
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5853 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 12:34:30 +00:00
wp_xxyyzz
9a2bef119c fpspreadsheet: Fix interchanged col/row indexes in relation to multiline cell editor.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5852 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 11:23:08 +00:00
wp_xxyyzz
82e3edbc4b fpspreadsheet: TsWorksheetGrid ignores setting DefaultColWidth and DefaultRowHeight to values < 0.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5850 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-13 09:46:34 +00:00
wp_xxyyzz
281b728a74 fpspreadsheet: Add multiline string cell editor, it is activated by property EditorLineMode = elmMultiline
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5849 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-05-12 16:30:22 +00:00
wp_xxyyzz
dc4314db8b fpspreadsheet: Fix grid painting into header cells if fixed columns are used.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5827 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-30 12:39:54 +00:00
wp_xxyyzz
fe861e4d49 fpspreadsheet: Fix WorksheetGrid painting issue with merged cells (http://forum.lazarus.freepascal.org/index.php/topic,36276.msg241563/topicseen.html)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5817 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-22 22:08:25 +00:00
wp_xxyyzz
b736103903 fpspreadsheet: Make WorksheetGrid respect the spSelectLockedCells and spSelectUnlockedCells flags in the worksheet's Protection set. Like in Excel, TsCellEdit displays an error message box if the user tries to focus it in case of a locked cell.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5815 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2017-03-20 11:10:02 +00:00