Commit Graph

855 Commits

Author SHA1 Message Date
jesus
618596c2ba LCL: fix grids bidi TAB behaviour as by Zaher Dirkey comments, issue #38186
git-svn-id: trunk@64402 -
2021-01-17 19:08:22 +00:00
juha
751852a44a LazUtils: New function UTF8CompareLatinTextFast. Use in IDE instead of UTF8CompareText.
git-svn-id: trunk@64385 -
2021-01-14 13:52:23 +00:00
juha
42850cfe4d LazUtils: Deprecate now obsolete unit LazUtf8Classes and remove its references from Lazarus code.
git-svn-id: trunk@64384 -
2021-01-14 12:41:32 +00:00
wp
aa8f480e17 LCL/Grids: Fix grids truncating cell height during editing if TitleFont.Size is smaller than Font.Size. Issue #38203).
git-svn-id: trunk@64195 -
2020-12-11 15:18:33 +00:00
wp
09ee5f1c56 LCL-Grids and VirtualTreeView: Move "FixDesignFontsPPI" for the basic components to "public". Declare as "override" for VTV.
git-svn-id: trunk@63831 -
2020-08-26 14:36:34 +00:00
juha
727eb0ef72 LCL: Prevent DBGrid raising exception after enabled and hiding inplace editor. Issue #37385, patch from Zdravko Gabrovski.
git-svn-id: trunk@63596 -
2020-07-18 21:58:11 +00:00
juha
e2840b9665 LCL: Fix a regression in TSTringGrid caused by r63541 #1f0ff07dc2. Test for Editor.Parent instead of Editor.Owner.
git-svn-id: trunk@63571 -
2020-07-16 09:26:39 +00:00
juha
1f0ff07dc2 LCL: Prevent a crash when closing a form with an active in-place cell editor of a grid. Issue #37202.
git-svn-id: trunk@63541 -
2020-07-11 09:07:35 +00:00
bart
02ae498e8e Grids: fix decoding HTML entities when pasting HTML. Issue #0037258.
git-svn-id: trunk@63457 -
2020-06-28 13:49:54 +00:00
juha
9612688bb2 LCL: Fix IME support for grids. Issue #36854, patch from Do-wan Kim.
git-svn-id: trunk@62954 -
2020-04-13 07:54:38 +00:00
juha
ff5b89a4f7 LCL: Fix TDBGrid editor alignment when FixedCells>1. Issue #35715, patch from Luca Olivetti.
git-svn-id: trunk@62847 -
2020-04-02 10:07:16 +00:00
wp
ac24214ca9 LCL/grids: Undo r62665 #275e406278
git-svn-id: trunk@62675 -
2020-02-26 22:31:38 +00:00
wp
275e406278 LCL/Grids: Hide sort arrow when rows are rearranged in a column-sorted grid.
git-svn-id: trunk@62665 -
2020-02-23 11:51:44 +00:00
wp
b9992c54b1 LCL/Grids: Add public method HideSortArrow (Needed when rows of sorted grid are reordered manually, https://forum.lazarus.freepascal.org/index.php/topic,48568.msg349824)
git-svn-id: trunk@62644 -
2020-02-19 06:13:59 +00:00
bart
acc7de51bd TStringGrid: also call DoCellProcess when pasting HTML. Issue #0036576.
git-svn-id: trunk@62621 -
2020-02-08 18:11:34 +00:00
ondrej
f97bf899bb Grid: fix High-DPI font scaling
git-svn-id: trunk@62506 -
2020-01-07 13:26:46 +00:00
ondrej
fbf5621974 LCL: grids: don't store default TitleFont
git-svn-id: trunk@62505 -
2020-01-07 12:58:58 +00:00
bart
9e4c5d207e LCL: TValueListEditor: update TitleCaptions after LoadFromCSV.
git-svn-id: trunk@62132 -
2019-10-27 14:05:33 +00:00
bart
4b43ae528d LCL: TValueListEditor: don't allow setting ColCount to anything but 2.
git-svn-id: trunk@62118 -
2019-10-25 17:02:09 +00:00
juha
753c843f12 LCL: Fix properly the grid issue #36172.
git-svn-id: trunk@62093 -
2019-10-19 15:40:00 +00:00
juha
6e36102baf LCL: Minor improvement for scaling in Grids and ImageList. Issue #35648, patch from Alexey Tor.
git-svn-id: trunk@62090 -
2019-10-19 10:53:30 +00:00
juha
167df5e84a LCL: Prevent an eternal loop in a Grid which has no fixed columns or rows. Issue #36172.
git-svn-id: trunk@62089 -
2019-10-19 09:13:21 +00:00
juha
313849e97b LCL: Fix lines inside an IFDEF that confused the debugger.
git-svn-id: trunk@62088 -
2019-10-19 08:38:33 +00:00
wp
9cad1b3feb LCL/grids: Fix misplaced horizontal grid scrollbar after form maximize. Issue #35472, patch by Pavol S.
git-svn-id: trunk@62031 -
2019-10-11 10:21:52 +00:00
wp
a2b504be6f LCL/grids: Fix ColRowDragIndicatorColor for dragging rows. Issue #36138.
git-svn-id: trunk@61998 -
2019-10-05 21:32:52 +00:00
wp
77b19309f9 LCL/grids: Make special grid cursors changable by user. Add property ColRowDragIndicatorColor. Modified patch by Pavol S. Issue #36138.
git-svn-id: trunk@61995 -
2019-10-05 15:42:28 +00:00
wp
a7e7bb9f93 LCL/grids: Fix cursor reverting to default while dragging a row height. Issue #36125.
git-svn-id: trunk@61977 -
2019-10-04 13:34:24 +00:00
wp
bd6759940d LCL/grids: Rename TCursorState to TGridCursorState and its elements accordingly (to better distinguish from TComponentState). Related to issue #36125.
git-svn-id: trunk@61975 -
2019-10-04 08:13:48 +00:00
wp
7d10359d05 LCL/grids: Fix using special cursors as regular cursors. Issue #36125, based on code by Pavol S.
git-svn-id: trunk@61972 -
2019-10-03 21:23:31 +00:00
wp
05124b6214 LCL/Grids: Fix grid Cursor reverting to default after mouse click into grid. Issue #0036125
git-svn-id: trunk@61958 -
2019-10-02 20:47:20 +00:00
bart
ed3cfadcf4 LCL: fix crash in TStringGrid.InsertRowWithValues is Columns.Enabled is True. Issue #0036067
git-svn-id: trunk@61946 -
2019-09-29 10:33:37 +00:00
jesus
563a44c1d6 lcl, fix TDbgrid wrong width of first column if FixedCells>1 and dgIndicator is turned off, issue #35716
git-svn-id: trunk@61740 -
2019-08-21 14:58:44 +00:00
wp
90a7301300 LCL/grids: Draw checkbox at vertical position defined by Column.Layout
git-svn-id: trunk@61689 -
2019-08-13 14:13:36 +00:00
jesus
010ccf9efa LCL, grids: pretty lines for GridLineStyle=psDot, from Alexey Tor., issue #35662
git-svn-id: trunk@61383 -
2019-06-13 23:07:01 +00:00
jesus
8493dec6aa LCL, grids: fix default value for DisabledFontColor property.
git-svn-id: trunk@61285 -
2019-05-24 05:40:10 +00:00
jesus
4f7d5ba062 LCL, grids: DisabledFontColor for grids, from Alexey Tor. with changes, issue #35621
git-svn-id: trunk@61278 -
2019-05-22 22:40:30 +00:00
juha
0ba03cbbc3 LCL: Refactor for Grids a little more. Issue #35561, patch from Alexey Tor.
git-svn-id: trunk@61273 -
2019-05-22 14:41:34 +00:00
jesus
482649c453 LCL, Grids: fix customgrid autoadjustcolumns, from AlexeyT
git-svn-id: trunk@61242 -
2019-05-18 22:35:20 +00:00
jesus
0348f7bc9a LCL: fix grid's column autoadjust size in win10 @ 150%, issue #35563
git-svn-id: trunk@61227 -
2019-05-14 18:58:43 +00:00
juha
416786fef1 Grids: Refactoring, add methods IsColumnIndexValid, IsRowIndexValid. Issue #35561, patch from Alexey Tor.
git-svn-id: trunk@61218 -
2019-05-13 11:06:32 +00:00
jesus
30f5f0b09d Grids: fix grid hints inconsistency, patch from Joeny Ang, issue #35453
git-svn-id: trunk@61184 -
2019-05-09 04:18:44 +00:00
jesus
514eedc7a1 LCL, grids: implements ColumnByTitle and ColumnByField
git-svn-id: trunk@60797 -
2019-03-30 08:33:57 +00:00
jesus
44c14d648b LCL, fix grids resizing bug in gtk, issue #35096
git-svn-id: trunk@60734 -
2019-03-20 09:29:59 +00:00
jesus
aa95956483 Fix Drawing the indicator in flat TDBGrid, issue #0034890
git-svn-id: trunk@60660 -
2019-03-12 23:02:59 +00:00
wp
50ae3c2e46 LCL/Grids: Re-add the OnUserCheckboxImage event (see r60571 #730fb31994+60578), patch by Zoran Vučenović, issue #35097.
git-svn-id: trunk@60579 -
2019-03-04 11:25:24 +00:00
wp
094543b6cb LCL/Grids: Undo part of r60571 #730fb31994. What is left fixes drawing of user-provided checkboxes for TDBGrid and can be back-ported to Fixes (issue #35085)
git-svn-id: trunk@60578 -
2019-03-04 10:08:39 +00:00
wp
730fb31994 LCL/Grids: Add OnUserCheckboxImage event to TStringGrid, TDrawGrid and TDBGrid. Patch by Zoran Vučenović, issue #35097.
git-svn-id: trunk@60571 -
2019-03-03 21:49:41 +00:00
martin
ba5f61002e LCL: Grids, Fix crashes if rows/cols are reduced and editor was active in removed grid area. Hide the Editor if cell no longer exists (same as in DeleteRow). Issue #34930
git-svn-id: trunk@60217 -
2019-01-25 18:31:40 +00:00
jesus
ecffcbf542 LCL, grids: fix TStringGrid copy/paste to/from MS Excel and OO Calc bug, patch from K155LA3, issue #30623
git-svn-id: trunk@59960 -
2018-12-31 17:00:37 +00:00
juha
5c4bd12dd3 LCL: Publish OnMouseWheelHorz/Left/Right events for most controls. Issue #34683, patch from AlexeyT.
git-svn-id: trunk@59801 -
2018-12-12 11:33:10 +00:00
jesus
7751c168d7 LCL: Fix stringgrid double validation and revert patch that broke extending selection, modified patch from tintinux, issue #34306
git-svn-id: trunk@59691 -
2018-11-29 01:47:38 +00:00
juha
21ce8c93c4 LCL: Prevent a double validation message in TStringGrid. Issue #34306, patch from Tintinux.
git-svn-id: trunk@59207 -
2018-10-01 08:41:39 +00:00
jesus
5ec773de73 LCL: grids, implements autoedit when double clicking. Issue #33888
git-svn-id: trunk@58958 -
2018-09-12 02:29:06 +00:00
jesus
528b7210b5 LCL: modified grid comment about exchange cols/rows
git-svn-id: trunk@58957 -
2018-09-12 02:02:57 +00:00
bart
828f4e74ef TValueListEditor: implement sort. Based on a patch by Jesus Reyes. Issue #0034141.
git-svn-id: trunk@58773 -
2018-08-24 16:06:59 +00:00
jesus
824d21014a LCL: reset row's top and bottom bounds after drawing cell and fix merge cells example issue #34017
git-svn-id: trunk@58711 -
2018-08-15 08:07:10 +00:00
jesus
e040a8ff23 LCL: Fix painting extended cell, issue #34017
git-svn-id: trunk@58708 -
2018-08-14 18:43:13 +00:00
wp
b40b0339fa LCL: Fix crash of grid when it is cleared while a cell is in edit mode.
git-svn-id: trunk@58625 -
2018-07-24 21:21:44 +00:00
wp
f7e5c6c595 LCL: Fix grid not being repainted when the last row is deleted by setting RowCount to 0 (issue #34025, comment #0109658).
git-svn-id: trunk@58624 -
2018-07-24 19:09:14 +00:00
wp
eadf7690aa LCL: Fix grids crashing when a key is pressed after the last row has been deleted (issue #34025)
git-svn-id: trunk@58623 -
2018-07-24 19:02:59 +00:00
ondrej
0c5181bf67 Revert r58337 and r58339 #e887c43e0d
git-svn-id: trunk@58346 -
2018-06-19 20:04:57 +00:00
ondrej
f1b3d3f742 LCL: call OnEditingDone (DoEditingDone) only if something changed
git-svn-id: trunk@58337 -
2018-06-19 17:11:31 +00:00
juha
3574bdfb6d Move debug- & other non-GUI stuff from LCLProc to LazUtilities and LazLogger in package LazUtils.
git-svn-id: trunk@58244 -
2018-06-13 13:59:07 +00:00
ondrej
70b731c254 LCL: publish DoubleBuffered & ParentDoubleBuffered
git-svn-id: trunk@58099 -
2018-06-03 20:36:08 +00:00
jesus
825c389d9b LCL, fix grid's goScrollKeepVisible, issue #33783
git-svn-id: trunk@58024 -
2018-05-25 06:22:40 +00:00
wp
d60896d479 LCL/grids: Fix position of grid header icons in case of right-to-left mode.
git-svn-id: trunk@57977 -
2018-05-20 07:46:03 +00:00
wp
3054d073cf LCL/Grids: Mirror position of sort icon in grid header cells if BiDi is set to right-to-left.
git-svn-id: trunk@57976 -
2018-05-19 21:21:05 +00:00
wp
835a65e709 LCL/grids: Show sort arrows in header of sorted grid even if the grid does not define columns (issue #33731) -- hopefully correct now...
git-svn-id: trunk@57969 -
2018-05-19 10:17:55 +00:00
wp
a47fa2b041 LCL/grids: Undo commits r57960 #7ea1e8cd31 and 57963
git-svn-id: trunk@57964 -
2018-05-18 22:22:59 +00:00
wp
0c2a0ee826 lcl/grids: Fix sort arrow of grid with columns being painted twice after prev commit.
git-svn-id: trunk@57963 -
2018-05-18 21:46:36 +00:00
wp
7ea1e8cd31 LCL/grids: Show sort arrows in header of sorted grid even if the grid does not define columns (issue #33731).
git-svn-id: trunk@57960 -
2018-05-18 21:05:49 +00:00
ondrej
e5ab08f99b LCL: grids: remove checkbox images
git-svn-id: trunk@57927 -
2018-05-13 19:44:29 +00:00
ondrej
26213f037c lcl: TLCLGlyphs: fix rounding error when calculating suffixes
git-svn-id: trunk@57864 -
2018-05-09 01:36:25 +00:00
ondrej
56ba252d91 LCL: LCLGlyphs: Suffix100Scale
git-svn-id: trunk@57856 -
2018-05-08 23:02:58 +00:00
hnb
42b24279aa LCL: grids: fix potential Access Violation
git-svn-id: trunk@57797 -
2018-05-06 22:54:01 +00:00
ondrej
9fae8f17bf LCL: grids: fix compilation with FPC 3.0.x
git-svn-id: trunk@57764 -
2018-05-01 20:27:49 +00:00
ondrej
2f9cdb4f2d LCL: move+rename Buttons.LCLBtnGlyphs to ImgList.LCLGlyphs
git-svn-id: trunk@57761 -
2018-05-01 13:53:54 +00:00
ondrej
5646ae5bec LCL: grids: fix use theme sort arrows if themed arrows are not available
git-svn-id: trunk@57753 -
2018-05-01 09:03:38 +00:00
ondrej
8490f66838 LCL: grids: use theme sort arrows
git-svn-id: trunk@57751 -
2018-05-01 08:26:45 +00:00
ondrej
c21438af96 LCL: grids: rewrite title image drawing. Don't misuse title image list for sort glyphs.
git-svn-id: trunk@57750 -
2018-05-01 07:17:27 +00:00
ondrej
c4fd3db448 LCL: grids: use LCLBtnGlyphs for sort images
git-svn-id: trunk@57748 -
2018-04-30 11:26:33 +00:00
ondrej
f26d843766 LCL: grids: fix GetDefaultRowHeight Font PPI
git-svn-id: trunk@57747 -
2018-04-30 11:00:14 +00:00
ondrej
6aeda4ec09 LCL: grids: use LCLBtnGlyphs for checkbox images
git-svn-id: trunk@57746 -
2018-04-30 10:59:23 +00:00
wp
c21a4162b9 LCL: Replace some lcl images by more well-known ones (in several Hi-DPI resolutions, by Roland Hahn). Fix grids.pas not compiling with png instead of xpm images.
git-svn-id: trunk@57744 -
2018-04-30 08:42:11 +00:00
jesus
00d168199d LCL: Paint the focus rectangle white when UseXORFeatures=true, issue #33042
git-svn-id: trunk@57661 -
2018-04-17 18:35:26 +00:00
juha
6d91ea5294 LCL: Remove an assertion when getting an invalid cell rect in TCustomGrid. Return Rect(0,0,0,0) instead. Issue #33273.
git-svn-id: trunk@57416 -
2018-02-28 13:20:29 +00:00
ondrej
4a5dab2d4b LCL: fix compilation with FPC 3.0.0
git-svn-id: trunk@57167 -
2018-01-27 18:55:34 +00:00
ondrej
454fc69b9e LCL: High-DPI ImageList: rename *ForImagePPI to *ForPPI
git-svn-id: branches/HiDPIImageList@57068 -
2018-01-13 04:25:01 +00:00
ondrej
90f22ba7fd LCL: High-DPI ImageList: LCL runtime and win32
git-svn-id: branches/HiDPIImageList@57039 -
2018-01-10 12:46:42 +00:00
bart
b63451bdf7 Grids: factor out IsEmptyRow function and correctly use the ARow paramter inside the function. Issue #0032965.
git-svn-id: trunk@57005 -
2018-01-07 16:57:10 +00:00
juha
a3649ec49b LCL: Extend horizontal mouse wheel messages for Carbon and Cocoa. Remove ssHyper. Issue #32753, patch from AlexeyT.
git-svn-id: trunk@56659 -
2017-12-07 14:58:36 +00:00
juha
d171170bb6 LCL: Extend horizontal mouse wheel messages for Grid and TreeView. Issue #32753, patch from AlexeyT.
git-svn-id: trunk@56654 -
2017-12-06 11:25:07 +00:00
juha
d2b1729095 LazUtils: Rename TArray -> TPointerPointerArray.
git-svn-id: trunk@56396 -
2017-11-13 17:33:36 +00:00
juha
2b76275fb8 LCL: Use IntegerList in TGridDataCache for AccumWidth and AccumHeight.
git-svn-id: trunk@56395 -
2017-11-13 17:33:35 +00:00
juha
86aadcad56 LCL: Use IntegerList for FCols and FRows of TCustomGrid.
git-svn-id: trunk@56390 -
2017-11-13 17:33:29 +00:00
juha
ddec3eb450 LCL: Rename members in TVirtualGrid to avoid confusion with TGrid members. Eg. FCells -> FCellArr.
git-svn-id: trunk@56389 -
2017-11-13 17:33:28 +00:00
juha
8de5a73097 LCL: Prevent a crash when getting editor for an empty Grid. Issue #32623, patch from C Western.
git-svn-id: trunk@56235 -
2017-10-29 21:20:57 +00:00
juha
ec6a7b1e82 LCL: Cancel edit in grids and validate entry for TDrawGrid. Issue #27328, patch from Michl.
git-svn-id: trunk@55901 -
2017-09-23 14:33:06 +00:00
juha
009609b2f1 LCL, DbGrids: Clear only rows, not columns in TCustomGrid.SetRowCount. Remove debug code added earlier. Issue #31380.
git-svn-id: trunk@55895 -
2017-09-22 21:50:32 +00:00
juha
46a644e289 LCL, DbGrids: Add a workaround to prevent range error + some code for debugging issue #31380.
git-svn-id: trunk@55893 -
2017-09-22 12:28:51 +00:00