Commit Graph

828 Commits

Author SHA1 Message Date
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
jesus
625ed6ca90 LCL, grids: update fixed cols/rows count on inserting a column/row in a fixed zone
git-svn-id: trunk@55766 -
2017-08-31 21:12:35 +00:00
jesus
56d952d15c LCL: grids: addded enabling triggering ValidateEntry on Paste with ValidateOnSetSelection property
git-svn-id: trunk@55746 -
2017-08-26 19:08:53 +00:00
jesus
1bd078ef60 LCL, grids: made EditorTextChanged, issue #32329
git-svn-id: trunk@55745 -
2017-08-26 19:02:43 +00:00
wp
b5248871cb grids: Undo publishing of TDrawGrid.CellHintPriority (compilation issues).
git-svn-id: trunk@55640 -
2017-08-06 22:40:30 +00:00
wp
f4c18e624f grids: Change default value of CellHintPriority to chpAllNoDefault. Publish CellHintPriority for TDrawGrid (issue #32243).
git-svn-id: trunk@55639 -
2017-08-06 19:21:40 +00:00
wp
7d9b734b20 grids: Ignore empty grid's Hint in case of CellHintPriority=chpAll.
git-svn-id: trunk@55637 -
2017-08-06 10:42:17 +00:00
wp
9449604df9 grids: High-dpi scaling of constCellPadding, constRubberSpace and constColRowBorderTolerance
git-svn-id: trunk@55495 -
2017-07-13 08:57:10 +00:00
wp
6b1b12d66d grids: Introduce constColRowBorderTolerance for colwidth/rowheight resizing.
git-svn-id: trunk@55494 -
2017-07-13 08:23:24 +00:00
wp
afacb97710 grids: Fix size of focus rectangle if gridlinewidth > 1 (issue #32002)
git-svn-id: trunk@55334 -
2017-06-12 11:37:41 +00:00
ondrej
827fbc6932 lcl: grids: fix endless loop in ScrollToCell for 0 Width/Height and non-SmoothScroll. Issue #31942
git-svn-id: trunk@55267 -
2017-06-08 14:49:16 +00:00
mattias
26d1063cd6 lcl: TGrid: DoMouseWheel scroll horizontally when pressing Hyper, issue #31898 from AlexeyT
git-svn-id: trunk@55265 -
2017-06-07 11:56:58 +00:00
wp
02ce123caa LCL/grids: Some refactoring of the cell hint construction process.
git-svn-id: trunk@55210 -
2017-06-04 15:02:23 +00:00
wp
3c7559c6e2 Revert r55207 #11f3b76108
git-svn-id: trunk@55208 -
2017-06-04 13:28:44 +00:00
wp
11f3b76108 DBGrids: Improved cell hints.
git-svn-id: trunk@55207 -
2017-06-04 10:18:34 +00:00
ondrej
8ebd490576 LCL: grids: initialize scrollbar visibility info with correct values
git-svn-id: trunk@55164 -
2017-06-02 18:58:27 +00:00
ondrej
b329e88f51 LCL: Grids: we need VisualChange and UpdateSizes also when handle is not allocated to access correct cache values. Issue #31955
git-svn-id: trunk@55163 -
2017-06-02 18:34:33 +00:00
ondrej
083ef5923c LCL: rename TControl.ScaleCoord* methods
git-svn-id: trunk@55022 -
2017-05-20 10:02:25 +00:00
ondrej
aa4dfd880b lcl: grids: add Options2 = [goScrollToLastCol, goScrollToLastRow]. Issue #31766
git-svn-id: trunk@54970 -
2017-05-18 13:52:33 +00:00
ondrej
9edd2d5ad2 lcl: grids: keep *IsStored functions to DefaultColWidth and DefaultRowHeight properties protected-only (related revision: r54949 #80a8c39f9d)
git-svn-id: trunk@54956 -
2017-05-17 19:06:19 +00:00
ondrej
80a8c39f9d lcl: grids: add (forgotten) *IsStored functions to DefaultColWidth and DefaultRowHeight properties. (related revision: r54948 #b54495505b)
git-svn-id: trunk@54949 -
2017-05-17 14:09:04 +00:00
ondrej
b54495505b lcl: grids: high-DPI: rewrite ColWidth&RowHeight scaling so that it's Delphi and Lazarus 1.6 compatible.
git-svn-id: trunk@54948 -
2017-05-17 10:08:56 +00:00
ondrej
db2a57aa2c grids: scale native bitmaps. Issue #31771
ide: buildmodesmanager dialog: high-DPI check boxes. Issue #31771

git-svn-id: trunk@54918 -
2017-05-14 10:04:10 +00:00
ondrej
e6c01afbe1 lcl: grids: always store valid column width. Issue #31806
git-svn-id: trunk@54903 -
2017-05-14 07:06:06 +00:00
ondrej
4d19bebe6c lcl: grids: fix default TGridColumn width. Issue #31806
git-svn-id: trunk@54895 -
2017-05-13 10:59:47 +00:00
ondrej
56f3c227b7 lcl: grids: revert r54883 #bff91a4961
git-svn-id: trunk@54885 -
2017-05-12 20:17:25 +00:00
ondrej
bff91a4961 lcl: grids: rename GetRealDefaultColWidth and GetRealDefaultRowHeight to GetRealDef* (LCL consistency). Issue #31715
git-svn-id: trunk@54883 -
2017-05-12 19:42:50 +00:00
ondrej
3ba0ca06c3 lcl: grids: make default value for DefRowHeight and DefColWidth 0 and not -1 (due to LCL consistency). Issue #31715
git-svn-id: trunk@54882 -
2017-05-12 18:51:34 +00:00