Commit Graph

288 Commits

Author SHA1 Message Date
jesus
09a85e4fc9 LCL, dbgrid, enable OnFieldEditMask with default mask by Field.EditMask, patch by José Mejuto, issue #21362
git-svn-id: trunk@46510 -
2014-10-10 21:14:08 +00:00
jesus
344ab1efea LCL, dbgrid, fix SIGSEGV on deactivating, from Petr-K, issue #23810
git-svn-id: trunk@46444 -
2014-10-06 17:07:35 +00:00
jesus
dc348f83b7 lcl, implements dbgrid copy current field value to clipboard, alternative solution to issue #25451
git-svn-id: trunk@46418 -
2014-10-03 20:44:48 +00:00
jesus
47e3161749 LCL, fix dbgrid cells color when DefaultDrawing=false
git-svn-id: trunk@46408 -
2014-10-02 19:33:15 +00:00
jesus
27c2885608 LCL, fix dbgrid indicator and all grid's rowselect focus rect problems for bidi, patch from Babak Mahmoudabadi which Mike Thompson converted to diff format, issue #25154
git-svn-id: trunk@46377 -
2014-09-30 18:49:47 +00:00
juha
51ab663b7f LCL: Publish events OnMouseWheel, OnMouseWheelDown and OnMouseWheelUp for yet more controls. Issue #26781, patch from Sandro Cumerlato.
git-svn-id: trunk@46338 -
2014-09-26 21:40:47 +00:00
juha
2d68a26e97 LCL: Implement DBAction on DBControls. Issue #25988, patch from Luigi
git-svn-id: trunk@46203 -
2014-09-13 09:40:00 +00:00
jesus
88ada652ba LCL, dbgrids, debug format changes modified patch from Jack Linke, part of issue #26564
git-svn-id: trunk@46049 -
2014-08-18 05:59:36 +00:00
jesus
a3a3e0ba9a LCL, dbgrid, fix locked editor in case of exception, from Petr-K, issue #26461
git-svn-id: trunk@45816 -
2014-07-08 19:12:47 +00:00
mattias
76b41ca24f LCL: clean up
git-svn-id: trunk@45198 -
2014-05-27 13:27:55 +00:00
jesus
907159d8a2 LCL, fix DBGrid shows '(blob)' on all Blob fields, from Petr-K, issue #26061
git-svn-id: trunk@44795 -
2014-04-23 18:55:50 +00:00
maxim
1f5035d509 LCL, DbGrids: fixed compilation with FPC 2.7.1, patch from Udo Schmal and Dennis Fehr, bug #25647
git-svn-id: trunk@44011 -
2014-02-11 21:43:20 +00:00
jesus
2ed7a8a17c LCL, fix grids focus where OnEnter occurs twice, issue #25010
git-svn-id: trunk@42943 -
2013-09-26 12:20:54 +00:00
mattias
c5f9e05da6 lcl: dbgrids: fixed memleak of KeyBookmark, patch from Luca Olivetti, bug #24412
git-svn-id: trunk@42912 -
2013-09-23 10:07:45 +00:00
jesus
1e4301f4d7 LCL, use UTF8Length instead of Length on calc dbgrid column field width, from Rumen Gyurov, issue #24491
git-svn-id: trunk@41501 -
2013-06-02 21:56:12 +00:00
juha
7b162087fd Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already.
git-svn-id: trunk@41387 -
2013-05-24 18:30:06 +00:00
jesus
fd4ed3c5b5 LCL, implemented option dgThumbTracking, removed old ThumbTracking property (only supposed to work for horizontal scrolling)
git-svn-id: trunk@40776 -
2013-04-09 22:38:08 +00:00
bart
b36ca5958c DBGrids: fix crash in PrepareCellHints when DataLink is not Active.
Patch by Petr-K. Fixes issue #0024028.

git-svn-id: trunk@40543 -
2013-03-13 14:12:57 +00:00
jesus
8618e432a9 LCL, reverted dbgrid patch to workaround qt scrolling problem, will fix qt interface instead
git-svn-id: trunk@40510 -
2013-03-08 05:43:01 +00:00
jesus
efc032e6cc LCL, workaround for qt that fix scrolling dbgrid when current record exceed current record count it sends scroll event with position=0
git-svn-id: trunk@40500 -
2013-03-06 22:21:12 +00:00
jesus
84561b710d LCL, dbgrid debug log
git-svn-id: trunk@40499 -
2013-03-06 22:11:00 +00:00
jesus
6353fdc510 LCL, made DbGrid.GetBufferCount virtual
git-svn-id: trunk@40463 -
2013-03-03 07:16:10 +00:00
jesus
a8b95e3a2f LCL, dbgrids checks for keydown while dataset is inactive, issue #23598
git-svn-id: trunk@40323 -
2013-02-15 15:08:35 +00:00
jesus
efee6e8c99 LCL, grids and dbgrids implemented RowHightlight option, from Marcus Müller, issue #18581
git-svn-id: trunk@40276 -
2013-02-12 03:35:29 +00:00
bart
c053394595 Grids: Implement TabAdvance, so Tab key can behave independant of Enter key.
Remove goTabIgnoreAutoAdvance option, since it is not needed anymore.

git-svn-id: trunk@40067 -
2013-01-30 18:01:21 +00:00
jesus
ff9e96532a LCL, do not immediately start dragging when DragMode=dmAutomatic, added helper to dbgrid to convert and make some sense of mouse coords, fix issue #23558
git-svn-id: trunk@39877 -
2013-01-17 22:06:45 +00:00
jesus
e790346803 LCL, dbgrid, added utility properties FirstColumn and LastColumn, they return the first and last visible columns
git-svn-id: trunk@39319 -
2012-11-20 10:04:39 +00:00
jesus
c02a423ee9 LCL, fix moving dbgrid selected field to the last one while using 'END' key and there are invisible columns, Problem 3) issue #19993
git-svn-id: trunk@39317 -
2012-11-20 08:55:31 +00:00
jesus
5df13d5cab LCL, dbgrid, workaround for datasets(?).filtered wrong behaviour, from Luiz Americo, issue #22304
git-svn-id: trunk@39124 -
2012-10-18 03:07:05 +00:00
jesus
83859e5919 LCL, fix dbgrid toggle checkbox (cbsCheckboxColumn column) even if column is not visible, issue #22493
git-svn-id: trunk@39123 -
2012-10-18 02:48:19 +00:00
jesus
5684485f27 LCL, grids, fix AV saving forms with grids, regression caused on r39113 #47a8c9c3a4
git-svn-id: trunk@39121 -
2012-10-18 00:17:59 +00:00
jesus
9270a6f705 LCL, dbgrid cleanup
git-svn-id: trunk@39119 -
2012-10-17 23:38:59 +00:00
jesus
ad7b61f063 LCL, dbgrid, check column exists before getting button style, from Tristan Linnell, issue #22873
git-svn-id: trunk@39118 -
2012-10-17 23:28:28 +00:00
bart
47a8c9c3a4 Increase visibility of EditMask property of TStringCellEditor.
Increase visibility of InplaceEditor in TDrawGrid, TStringGrid and TDBGrid.
Fixes issue #0023103.

git-svn-id: trunk@39113 -
2012-10-17 12:19:37 +00:00
jesus
ca8b562660 LCL, fix for dbgrid to reset MaxLength, from LacaK, issue #22789
git-svn-id: trunk@38618 -
2012-09-11 19:17:21 +00:00
juha
9884894f1b LCL: Prevent an error with Pg Up/Down in DbGrid on empty Dataset. Issue #22474, patch from Stefano
git-svn-id: trunk@37995 -
2012-07-22 06:55:31 +00:00
jesus
b478dab0d3 LCL, dbgrid, fix backspace on editing number fields, from Aleksey Lagunov, issue #21584
git-svn-id: trunk@37583 -
2012-06-08 06:47:41 +00:00
jesus
6f93a15f00 LCL, fix dbgrid dragging, issue #21614
git-svn-id: trunk@37454 -
2012-05-29 20:01:20 +00:00
mattias
f43c7d764c lcl: dbgrids: fixed TBookmark for fpc 2.7.1
git-svn-id: trunk@37092 -
2012-04-29 18:41:48 +00:00
mattias
67182a3a30 LCL: fixed compilation for fpc 2.7.1
git-svn-id: trunk@37053 -
2012-04-28 09:17:14 +00:00
jesus
f431c3e138 LCL, fix dbgrid fixed cells drawing on DefaultDrawing=false, issue #21496
git-svn-id: trunk@36180 -
2012-03-20 18:49:22 +00:00
jesus
b0e26a9051 LCL, don't use dataset.CompareBookmarks as it returns wrong results for some datasets, issue #21476
git-svn-id: trunk@36080 -
2012-03-16 09:28:45 +00:00
jesus
cae508c8cb LCL, fix AV on freeing bookmarks on multiselect dbgrid by keeping the original dataset used to get the bookmarks
git-svn-id: trunk@36078 -
2012-03-16 09:23:58 +00:00
jesus
46a46e49eb LCL, fix lookup fields should not be editable, issue #13174
git-svn-id: trunk@36063 -
2012-03-16 06:05:27 +00:00
jesus
0d46fab5d1 LCL, fix dbgrid compile with FPC trunk due bookmark change, patch from Paul Ishenin (with changes)
git-svn-id: trunk@35643 -
2012-03-01 18:07:11 +00:00
jesus
6f5bccc376 LCL, implements MaxLength in grid's TCompositeCellEditor, fix issue #20951
git-svn-id: trunk@34567 -
2012-01-03 20:41:42 +00:00
jesus
f87c768ab5 LCL, implements EndEllipsis text style (windows) and use it for showing ... in grid cells, also implements cell hints in dbgrid, from wp, issue #20777
git-svn-id: trunk@34018 -
2011-12-07 06:03:34 +00:00
jesus
ce604f82d7 LCL, dbgrid, implemented dgDisableInsert and dgDisableDelete
git-svn-id: trunk@33227 -
2011-11-02 18:35:26 +00:00
jesus
5e525c79c3 LCL, dbgrid, implements moving selection on right click for delphi compatibility using a new option dgAnyButtonCanSelect, issue #18115
git-svn-id: trunk@33120 -
2011-10-27 20:33:59 +00:00
jesus
6665e00e6c LCL, reverts r33070 #4e9eda7a16: added option to move selection with right click, issue #18115
git-svn-id: trunk@33118 -
2011-10-27 20:02:13 +00:00
zeljko
4e9eda7a16 LCL: Grids: added dgCanSelectAnyButton to grid options so we can select row with right mouse click, now we are Delphi compatibile.Patch by Zoran Vucenovic. Issue #18115
git-svn-id: trunk@33070 -
2011-10-24 16:54:11 +00:00
jesus
84443e864a LCL, dbgrid, adjust editor maxlength if field is string type, issue #20406
git-svn-id: trunk@32888 -
2011-10-14 18:56:11 +00:00
jesus
671e8b233d LCL, published BiDiMode and ParentBiDiMode for some components, tested by Avishai, issue #19990
git-svn-id: trunk@32301 -
2011-09-12 19:12:21 +00:00
jesus
7e8b3df07f LCL, fix dbgrid cellclick, issue #19818
git-svn-id: trunk@31812 -
2011-07-27 18:22:10 +00:00
jesus
264c6db01f LCL, fix position of scrollbar in case user clicks verticall scrollbar button arrows
git-svn-id: trunk@31370 -
2011-06-24 21:13:38 +00:00
jesus
74c3742e3e LCL, fix dbgrid scrollbar jumping issue #19615
git-svn-id: trunk@31369 -
2011-06-24 21:08:05 +00:00
jesus
8582b06c3d LCL, added OnUserCheckboxState event to dbgrid
git-svn-id: trunk@31148 -
2011-06-09 20:48:37 +00:00
jesus
b46c4b0a2c LCL, made TCustomdbgrid.Datalink property protected, issue #19233
git-svn-id: trunk@30902 -
2011-05-25 19:59:58 +00:00
jesus
935f55fab1 LCL, fix dbgrid entering dataset edit state when selecting a different field and dgAlwaysShowEditor is on
git-svn-id: trunk@28562 -
2010-11-30 05:58:57 +00:00
jesus
e677aae348 LCL, fix dbgrid index out of bounds (-1) when the selected record is not the first and the dataset is closed and opened
git-svn-id: trunk@28484 -
2010-11-25 20:25:17 +00:00
jesus
2f99320859 LCL, patch to support in less hackish way lookupcombobox editor in dbgrid, from Leslie Kaye (with changes and fixes) issue #1090
git-svn-id: trunk@28425 -
2010-11-23 06:07:27 +00:00
jesus
9faeff7d08 LCL, fix columns sizes at design-time for a dbgrid with autosizecolumns and without explicit custom columns
git-svn-id: trunk@28033 -
2010-11-02 05:35:25 +00:00
jesus
f1a7c8604e LCL, fix picklist editor not saving data into dbgrid, regression introduced in r27317 #90bf8f4f5e, issue #17586
git-svn-id: trunk@27636 -
2010-10-09 18:32:47 +00:00
jesus
cc4b3e27e7 LCL, implemented clicking dbgrid indicator column moves selection, issue #17471
git-svn-id: trunk@27531 -
2010-09-30 20:39:11 +00:00
jesus
3032b9503a LCL, published OnMouseEnter and OnMouseLeave for grids, issue #17518
git-svn-id: trunk@27530 -
2010-09-30 20:07:24 +00:00
jesus
5cd721ecb7 LCL, trigger OnTitleClick in dbgrid only if there is a custom column attached to grid column
git-svn-id: trunk@27443 -
2010-09-23 18:08:22 +00:00
jesus
d0115172cc LCL, dbgrid, additional check in case FirstGridColumn is fixed
git-svn-id: trunk@27438 -
2010-09-22 19:32:15 +00:00
jesus
fbbf076117 LCL, fix selecting field when column is FirstGridColumn, from David Noriega, issue #17468
git-svn-id: trunk@27437 -
2010-09-22 19:28:28 +00:00
jesus
3ecc366dbd LCL, fix dbgrid titles drawing at design time, reported in issue #17436
git-svn-id: trunk@27415 -
2010-09-19 23:56:56 +00:00
jesus
dc4e797f5b LCL, improved grids TAB-ing, options goTabs or dgTabs, issue #16007
git-svn-id: trunk@27374 -
2010-09-15 21:37:09 +00:00
jesus
3b670b01a2 LCL, reworked grid's cell drawing fixing several bugs including issue #17407
git-svn-id: trunk@27373 -
2010-09-15 21:09:44 +00:00
jesus
2e9b4a180d LCL, published DbGrid's OnEditingDone event, issue #17242
git-svn-id: trunk@27340 -
2010-09-12 19:13:47 +00:00
jesus
c925f08bcb LCL, check that dbgrid reserves at least one buffer, issue #14694
git-svn-id: trunk@27278 -
2010-09-07 17:48:05 +00:00
jesus
aa000f9e7e LCL, fix dbgrid insert operation, broken in previous patch, issue #17261
git-svn-id: trunk@27189 -
2010-08-25 17:23:50 +00:00
jesus
f77fe5926d LCL, fix dbgrid losing focus, issue #17239
git-svn-id: trunk@27183 -
2010-08-24 20:17:25 +00:00
jesus
136fc6f86a LCL, fix dbgrid editor position on new record if dgAlwaysShowEditor option is on, issue #17241
git-svn-id: trunk@27172 -
2010-08-23 17:32:16 +00:00
jesus
10f1d85bf5 LCL, fix dbgrid showing 'phantom' rows on inserting (sqlquery bug on changing buffercount on this state)
git-svn-id: trunk@27062 -
2010-08-11 05:40:21 +00:00
jesus
cc2754ad38 LCL, implemented grid's assign method, issue #17052
git-svn-id: trunk@26888 -
2010-07-29 05:24:37 +00:00
jesus
a823df3396 LCL, dbgrid revert column readonly fix, it seems a column with a nil field is not assumed to be readonly, issue #16626
git-svn-id: trunk@25899 -
2010-06-04 18:38:56 +00:00
jesus
3ea8aa8792 LCL, fix dbgrid column readonly property
git-svn-id: trunk@25820 -
2010-06-01 19:50:21 +00:00
jesus
83d89e5433 LCL, fix hidding editor on losing grid's focus, issue #15787
git-svn-id: trunk@25583 -
2010-05-22 16:49:07 +00:00
jesus
15ace269d6 LCL, fix toggle checkbox on column on right click, it should be left click, issue #16482
git-svn-id: trunk@25442 -
2010-05-15 19:23:12 +00:00
sekelsenmat
4ec26a9c40 Adds support to FPC 2.2.0 for Windows CE
git-svn-id: trunk@25090 -
2010-05-01 10:59:17 +00:00
jesus
178c26c4d6 LCL, made dbgrid's DrawIndicator a virtual method so it an be overriden
git-svn-id: trunk@24523 -
2010-04-08 18:07:38 +00:00
jesus
95c4d44c8d LCL, improved grid's checkbox column support
git-svn-id: trunk@24105 -
2010-03-20 01:48:14 +00:00
mattias
7699be6191 LCL: removed LockBaseBounds, OnChangeBounds can now change its own bounds, bug #16028
git-svn-id: trunk@24085 -
2010-03-18 15:05:07 +00:00
jesus
6ea54da93e LCL, added dbgrid SelectedFieldRect property
git-svn-id: trunk@24073 -
2010-03-17 20:49:57 +00:00
jesus
617f9118af LCL, fix dbgrid dgAlwaysShowSelection option, issue #15961
git-svn-id: trunk@23973 -
2010-03-13 06:04:05 +00:00
jesus
ab668a2188 LCL, fix dbgrid editor sometimes eating first char, issue #13951
git-svn-id: trunk@23945 -
2010-03-11 15:58:22 +00:00
jesus
594efdb34c LCL, dbgrid fix row in call to DrawCellText in DefaultDrawColumnCell
git-svn-id: trunk@23526 -
2010-01-21 20:21:02 +00:00
jesus
af1c9d6799 LCL, fix dbgrid col/row typo in DefaultDrawColumnCell
git-svn-id: trunk@23525 -
2010-01-21 19:59:36 +00:00
jesus
cbd597f590 LCL, dbgrids.columns returns TDBGridColumns instead of TGridColumns, issue #15388
git-svn-id: trunk@23496 -
2010-01-20 07:53:48 +00:00
jesus
798f981a8b LCL, published dbgrid.TitleImageList from Christian, issue #15551
git-svn-id: trunk@23490 -
2010-01-19 20:41:27 +00:00
paul
fd45608001 lcl: add OnContextPopup to TDBGrid, rearrange grid events
git-svn-id: trunk@23239 -
2009-12-23 09:16:37 +00:00
jesus
aa050e518f LCL, fix dgTitles dbgrid option after emtpy grid, from Paul Ishenin, issue #15172
git-svn-id: trunk@22756 -
2009-11-25 07:46:02 +00:00
jesus
1ecbf0622e LCL, limit position of scrollbar in dbgrid on new records (fix gtk2 scrollbar issues on some themes)
git-svn-id: trunk@21580 -
2009-09-04 19:08:38 +00:00
jesus
5ec4dadaec LCL, fix regresion adding custom columns in inactive dataset, issue #14239
git-svn-id: trunk@21231 -
2009-08-15 19:16:28 +00:00
jesus
e993b0b561 LCL, fix AV in dbgrid AutoSizeColumns when dataset is inactive, issue #14239
git-svn-id: trunk@21218 -
2009-08-13 19:22:41 +00:00
jesus
3058684e23 LCL, fix dbgrid editor show on pressing RETURN, issue #14325
git-svn-id: trunk@21204 -
2009-08-12 18:03:29 +00:00
jesus
731b768329 LCL, fixes for dbgrid indicator problems, issues #14139,#14160
git-svn-id: trunk@20912 -
2009-07-21 06:10:20 +00:00