Commit Graph

855 Commits

Author SHA1 Message Date
Juha
8583ffa716 LCL: Formatting. 2024-11-23 08:10:58 +02:00
Jesus Reyes A
602375a803 LCL, TDrawGrid: Fix ExtendedSelect property is not saved, Patch by Sebastian Hütter, issue #41084 2024-10-27 19:48:59 -06:00
rich2014
9c955b7cf7 Grids: fix the issue that Grids don't update data to Cocoa when the ScrollBar is hidden on macOS
on macOS, there are two styles: Legacy and Overlay. whether the ScrollBar data is synchronized can't be determined by whether it is visible.
2024-07-01 21:32:04 +08:00
wp_xyz
e9425e930f LCL/Grids: Fix TCustomGrid.ShowCellHintWindow to use screen coordinates for the hint window. Issue #40867, patch by Iluha Companets. 2024-04-17 18:06:01 +02:00
wp_xyz
86a410c96a LCL/grids: Add default values for the new published properties FocusColor and FocusRectVisible 2024-03-22 23:56:12 +01:00
Juha
153c212c2b LCL, Grids: Do not publish read-only properties VisibleColCount and VisibleRowCount. Publish FocusColor and FocusRectVisible. From n7800. 2024-03-15 12:04:13 +02:00
Juha
c285b58aa3 LCL: Remove UTF8CompareLatinTextFast calls. 2024-02-09 01:20:36 +02:00
wp_xyz
ac40dd08e1 Revert unintentional changes in commit 33801729a2 2023-12-15 15:55:13 +01:00
wp_xyz
33801729a2 TAChart: Add event OnGetMarkText to TChartSeries providing more parameters. Deprecate OnGetMark. Issue #40647. 2023-12-15 15:07:11 +01:00
wp_xyz
fb8756e03b LCL/Grids: Add grid option goCopyWithoutTrailingLinebreak to avoid copying cells to the clipboard with trailing linebreak. 2023-11-06 18:36:49 +01:00
Juha
21ab648823 LCL: Initialize FMoveLast in TCustomGrid. Invalidate a cell after setting CheckboxState in TCustomDrawGrid. Issue #40550. 2023-10-27 08:21:58 +03:00
Maxim Ganetsky
53f21809d1 Revert "LCL: Do not Invalidate a CustomGrid in every MouseUp. Merge request !66 by Petr Kristan."
This reverts commit 7f6c15e911.

It caused an incompatibility for subclassed DrawGrids, issue #40550.
2023-10-20 18:10:00 +03:00
wp_xyz
cc97670486 LCL/Grids: Increase visibility of TrySmoothScrollBy (issue #40523). 2023-09-28 12:32:41 +02:00
Maxim Ganetsky
dbfbdee461 Revert "Grids: uses const paramterers for strings where applicable. Patch by Alexey Torgashin. Issue #39851."
This reverts commit 72344a65f7.

These changes break compatibility (change signatures of virtual
methods), potentially unsafe (these strings can be potentially changed
through user callbacks and this will lead to crashes) and provide very
little (if at all) performance improvements.
2023-07-08 18:46:39 +03:00
Juha
f99bd70b72 Improve scaling of DateTimePicker. Leave GetDetailSize in places which are not fully tested yet. 2023-04-29 19:44:23 +03:00
Juha
c14934764c LCL: Call TThemeServices.GetDetailSizeForPPI with proper arguments. Revert 1138d26280. 2023-04-27 17:23:33 +03:00
Ondrej Pokorny
99caa084fc Revert TFontStyles to the original size 2022-12-22 15:07:14 +01:00
Ondrej Pokorny
43d7f20349 FPC: Extend System.UITypes 2022-12-18 08:50:17 +01:00
wp_xyz
a1f01e1976 LCL/Grids: Erase grid col/row drag indicator when no col/row swap is performed. Patch by Joeny Ang, issue #39995 2022-11-12 00:34:43 +01:00
Bart
675ad02215 Grids: implement option to set ParentColor and ParentFont of the internal cell editor. 2022-10-15 16:10:35 +02:00
Bart
72344a65f7 Grids: uses const paramterers for strings where applicable. Patch by Alexey Torgashin. Issue #39851. 2022-10-09 19:06:22 +02:00
Juha
a7ea210cb7 LCL: Use built-in TPoint operator <>. 2022-10-06 01:57:46 +03:00
Juha
e7e7e8c0c0 LCL: Move CustomGrid column/row by mouse drag outside the client area. Merge request !64 by Petr Kristan. 2022-10-05 13:35:23 +03:00
wp_xyz
024e28702a LCL/Grids: Remove internal function PointIgual(), use built-in TPoint operator <> instead, issue #39850. 2022-08-14 23:45:21 +02:00
juha
0bd2462114 LCL: Clean comments in Grid Options. Issue #39848, patch by Alexey Torgashin. 2022-08-11 08:15:44 +03:00
Bart
8abffea77a Grids: capitalize Sender. Patch by Alexey Torgashin. Issue #39849. 2022-08-10 23:00:28 +02:00
Juha
7f199b0d44 LCL: Prevent an exception with MouseDown on a Grid which lost focus. Issue #39730, patch by Soner. 2022-05-18 00:27:27 +03:00
wp_xyz
478e5101d9 LCL/StringGrid: Fix crash when Columns are exchanged and column indices are specified in reverse order. 2022-04-06 00:14:48 +02:00
wp_xyz
d2701ed5d1 LCL/Grids: Fix cell painting when text is rotated. 2022-03-16 11:11:55 +01:00
Sergey Larin
b7d3edc2d9 Unfocused selection color calculation adapted for Windows.
Under Windows, by default color should be clBtnFace.
2022-02-19 20:19:16 +03:00
Sergey Larin
5f6af4313f Use a special color for selected cells when Grid has no focus 2022-02-19 19:03:23 +03:00
Juha
7f6c15e911 LCL: Do not Invalidate a CustomGrid in every MouseUp. Merge request !66 by Petr Kristan. 2022-01-30 00:31:19 +02:00
wp_xyz
7114800c05 LCL/TCustomGrid, TCustomCheckBoxEx: Add missing Notification method to react on destruction of TitleImageList and Images, respectively. 2021-12-16 14:52:01 +01:00
Ondrej Pokorny
28a1fe7da8 grids: eat escape key only if handled by the editor 2021-11-18 15:13:56 +01:00
Juha
ce6715ed78 Correct spelling errors for "Width" in various units. Issue #39402, patch by Don Siders. 2021-09-26 21:40:16 +03:00
Jesus Reyes A
282f0a29fe LCL: grids: enable ellipsis editor color. 2021-09-04 19:04:07 -05:00
Jesus Reyes A
f8f1652fd4 LCL: Fix grid ellipsis editor layout. Issue #34307 2021-09-04 18:43:42 -05:00
Jesus Reyes A
19530e0548 LCL: Grids: Fix size of moved block in AutoFillColumns 2021-08-25 10:06:20 -05:00
Jesus Reyes A
976c56ef7c LCL: Grids, allow compiling with FPC 3.0.4 2021-08-24 20:09:24 -05:00
Jesus Reyes A
1eeb23074a LCL: fix TValueListEditor LoadContent in case of exceptions, issue #36182 2021-08-24 02:24:27 -05:00
Jesus Reyes A
f530072937 LCL: grids: AutoFillColumns, loop should count down to 0 as sometimes it deletes columns 2021-08-23 23:54:30 -05:00
Jesus Reyes A
239be664c0 LCL: Grids, fix typo that breaks compiling. 2021-08-23 12:45:01 -05:00
Jesus Reyes A
7b9589dc61 LCL: grids: Implements MinSize/MaxSize column properties for grids with AutofillColumns=true, issue #34548 2021-08-23 12:21:06 -05:00
Jesus Reyes A
850a20e3f5 LCL: Grids: publish GridLineColor, GridLineStyle, patch by AlexTP, issue #35647 2021-08-05 17:50:10 -05:00
Jesus Reyes A
a4db7e4e62 LCL, Grids: fix thumbtracking focusrect issues when scrolling, issue #35812 2021-08-03 10:15:37 -05:00
Jesus Reyes A
d19cd29754 LCL: Fix grid pasting of selection into Excel doesn't preserve text line endings and may generate merged cells. Patch from K155LA3, issue #34789 2021-08-02 16:04:27 -05:00
Jesus Reyes A
2b5a54edc4 LCL: Grids, Allow users to have a peek at the editor events, fixes issue #23983 2021-07-30 15:06:38 -05:00
Jesus Reyes A
3ae2076292 LCL: fix grids UTF8Keypress, issue #38666 2021-07-30 14:49:25 -05:00
bart
5ae03bd920 Fix spelling errors in grids.pas. Patch by Don Siders. Issue #0039093.
git-svn-id: trunk@65320 -
2021-06-28 18:16:15 +00:00
bart
4b9ae7f263 Grids: use out parameters in MouseToCell and OffsetToColRow. Issue #0038847.
git-svn-id: trunk@65087 -
2021-05-05 16:00:16 +00:00