Commit Graph

226 Commits

Author SHA1 Message Date
paul
6e2e2c1ff2 lcl: update visibility of methods to prevent compiler warnings
- move KeyDown, KeyUp, DoMouseWheelDown, DoMouseWheelUp, ColorIsStored, Paint, and other misc methods from public to protected
  - move some descendants methods from lower visibility to higher
  - fix use of protected KeyDown, Paint inside few ide units

git-svn-id: trunk@17564 -
2008-11-24 08:15:23 +00:00
jesus
d66de2be79 LCL, fix dbgrid multiselect issue #12462
git-svn-id: trunk@17130 -
2008-10-24 18:48:33 +00:00
jesus
2c95088959 LCL, fix dbgrid dgeAutoColumns option from Alexander S. Klenin
git-svn-id: trunk@16924 -
2008-10-08 06:24:57 +00:00
jesus
83c80c6dae LCL, fix OnGetText for dbgrid
git-svn-id: trunk@16740 -
2008-09-26 05:24:18 +00:00
jesus
96ec73b211 LCL, fix dbgrid indicator after fixes of LineTo/MoveTo
git-svn-id: trunk@16713 -
2008-09-25 00:26:47 +00:00
paul
3374c666b8 lcl: publish OnUTF8KeyPress
git-svn-id: trunk@16520 -
2008-09-10 09:22:59 +00:00
mattias
69cfe88898 using UTF-8 for file operations and environment variables
git-svn-id: trunk@16236 -
2008-08-25 22:32:23 +00:00
jesus
5da0924867 LCL, fix dbgrid extending selection, issue #11945
git-svn-id: trunk@16185 -
2008-08-22 15:14:18 +00:00
jesus
c1a8c3d29c LCL, hide editor on dataset change, issue #11925
git-svn-id: trunk@16175 -
2008-08-21 13:05:43 +00:00
jesus
33235f2ad7 LCL, added dbgrid option dgPersistentMultiSelect to support dbgrid old multiselect behaviour, issue #11836
git-svn-id: trunk@16098 -
2008-08-18 05:49:26 +00:00
jesus
cb9189c27a LCL, fix dbgrid focus issue #11838
git-svn-id: trunk@16021 -
2008-08-11 05:23:28 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
jesus
772684f5d0 LCL, implemented extended selection in dbgrid with multiselect option
git-svn-id: trunk@15713 -
2008-07-08 21:12:32 +00:00
jesus
7127fba858 lcl, grids, fixed editing unicode texts
git-svn-id: trunk@15642 -
2008-07-01 21:02:44 +00:00
jesus
8571d2fc9a LCL, dbgrid, fix creating dbgrid after bitmap changes
git-svn-id: trunk@15490 -
2008-06-20 22:39:00 +00:00
mattias
c50c6e5f90 LCL: clean up
git-svn-id: trunk@15436 -
2008-06-16 09:04:33 +00:00
jesus
a779c0af6e LCL, grids, changed cbsEllipsis editor issue #7214, fix unwished selection change while editing if mouse moved (gtk), several editor problems if goAlwaysShowEditor option is set
git-svn-id: trunk@15427 -
2008-06-14 23:07:53 +00:00
paul
693bccca27 lcl: return DataLink on CM_GETDATALINK (issue #0001410)
git-svn-id: trunk@14741 -
2008-04-03 01:33:43 +00:00
jesus
88b8dd4d57 grids, fixes redraw issues (issue #10659) and correct buffercount in dbgrid
git-svn-id: trunk@13818 -
2008-01-21 08:49:46 +00:00
jesus
2ddd71c0ce grids, fixed slow sorting tip from Ts. Petrov, issue #10642
git-svn-id: trunk@13804 -
2008-01-19 20:06:09 +00:00
vincents
ba5c0b67b4 LCL: resourcestring for confirm delete message (bug #10372)
git-svn-id: trunk@13274 -
2007-12-11 11:15:35 +00:00
paul
6b5b6fd401 1. split lcl images to:
- lcl_dbgrid_images and
- lcl_dbnav_images
so applications will include only those images they really nead
2. remove old lclicons
3. add script files to build resources

git-svn-id: trunk@13241 -
2007-12-09 07:03:59 +00:00
jesus
6a565caf67 LCL, dbgrid, fix scrollbar position is not updated sometimes
git-svn-id: trunk@13080 -
2007-11-29 18:32:08 +00:00
mattias
e8f4f6e240 replaced several BoolToStr calls with dbgs
git-svn-id: trunk@12914 -
2007-11-18 13:06:38 +00:00
jesus
4c24b68ea9 LCL, grids, fixed AutoAdvance when grid has goRowSelect option, reported by Barko
git-svn-id: trunk@12529 -
2007-10-20 08:11:59 +00:00
jesus
0752945e3d LCL, dbgrids, fixes checkboxes not visible when using column's cbsCheckboxColumn style
git-svn-id: trunk@12247 -
2007-09-29 18:48:34 +00:00
jesus
443b0c952d LCL, grids, recalc DefaultRowHeight based on current font size, issue #9760
git-svn-id: trunk@12182 -
2007-09-25 22:57:15 +00:00
jesus
d77f7bb377 LCL, dbgrid, fixed scrollbar disappearing when scrollbars=ssAutoVertical, issue #9689
git-svn-id: trunk@12145 -
2007-09-23 04:35:18 +00:00
jesus
0b5ade8441 LCL, dbgrid, fixed TDBGrid scrolling doesn't update active editor, issue #9620
git-svn-id: trunk@11984 -
2007-09-10 03:39:24 +00:00
jesus
66f6e87d4d LCL, dbgrids, reorder of some boolean expressions from Luiz Americo
git-svn-id: trunk@11874 -
2007-08-28 16:31:20 +00:00
jesus
061c5c6ee3 LCL, dbgrid, fixes RETURN key in last field of last record now avances to new row
git-svn-id: trunk@11764 -
2007-08-09 20:48:53 +00:00
mattias
d48eb4b364 codetools: implemented function to convert simple functions to constants, h2pas: new tools to reduce IFDEFs and fucntions to constant conversion
git-svn-id: trunk@11761 -
2007-08-08 18:22:43 +00:00
jesus
7ecce099a2 LCL, grids, fixed auto editing and added AutoEdit property
git-svn-id: trunk@11752 -
2007-08-07 00:05:10 +00:00
jesus
9c18feacc6 LCL, dbgrid scrolling was locked under some circunstances, fix issue #9381
git-svn-id: trunk@11741 -
2007-08-04 23:38:29 +00:00
jesus
683b03a129 LCL, grids, improved dbgrid ownerdraw delphi compatibility, fixed dbgrid scroll issue (9219), improved and fixed dbgrid with native style
git-svn-id: trunk@11468 -
2007-07-12 07:31:39 +00:00
jesus
b465403293 LCL, grids Improved themed look in TitleStyle:=tsNative, implemented headers hot tracking and pushed look when clicking
git-svn-id: trunk@11203 -
2007-05-25 21:04:25 +00:00
jesus
7613000706 LCL, grids fix arrow keys to navigate TDBGrid does not work after edit, issue #8546
git-svn-id: trunk@11136 -
2007-05-14 05:31:29 +00:00
jesus
d4b0c88e83 LCL: dbgrid, fixed FieldName/DisplayFormat typo
git-svn-id: trunk@11115 -
2007-05-09 16:39:56 +00:00
vincents
370aa4c253 fixed fpc 2.3 compilation (assigning to set or record properties)
git-svn-id: trunk@11078 -
2007-05-04 22:43:58 +00:00
jesus
15f7db6d03 LCL, fix several db controls to not enter dataset in edit state if datasource.autoedit is false, issue #8739
git-svn-id: trunk@11066 -
2007-05-03 17:34:56 +00:00
vincents
a168e7a228 LCL: don't capitalize keywords (e.g Property -> property)
git-svn-id: trunk@11043 -
2007-05-01 17:32:12 +00:00
jesus
c1e14d850d dbgrid: update field textusing text property so field's OnSetText event can be used (from Aleksey Lagunov)
git-svn-id: trunk@10746 -
2007-03-13 23:56:32 +00:00
jesus
7c526a7dfe dbgrid: fix cancel editing record using UP key, issue #8345 (probably)
git-svn-id: trunk@10652 -
2007-02-18 20:22:47 +00:00
vincents
96ad5d8179 LCL: published dragging related properties for TDBxxx components
patch by: Paul Ishenin

git-svn-id: trunk@10649 -
2007-02-16 13:11:37 +00:00
jesus
d947dfbb55 dbgrid: fixed cell grid might draw over vertical grid lines (issue #8318)
grid: added small margin at the right side of cell so text near the grid line looks better

git-svn-id: trunk@10628 -
2007-02-12 19:27:56 +00:00
jesus
cca097adbc dbgrid: fix editor doesnt hide if while editing the last record user press down arrow key (issue #8262)
grid: enable descendant grids to override DrawCellGrid

git-svn-id: trunk@10612 -
2007-02-08 17:52:10 +00:00
jesus
ddc4c1e57c dbgrid: Additional check for valid ActiveRecord
git-svn-id: trunk@10513 -
2007-01-26 17:08:26 +00:00
jesus
94485e724e dbgrid: Checking for valid ActiveRecord (issue #8224)
git-svn-id: trunk@10512 -
2007-01-26 17:04:06 +00:00
jesus
670108df05 dbgrid: check for active datalink, issue #8194
git-svn-id: trunk@10504 -
2007-01-26 09:13:37 +00:00
jesus
be37b3ea24 dbgrid: update active row if active record changed (bug #7934)
git-svn-id: trunk@10502 -
2007-01-24 08:42:25 +00:00
jesus
90251b1bdc grids, fixed shift-TAB browsing, and TdbGrid TAB issue #7348
git-svn-id: trunk@10320 -
2006-12-12 09:33:52 +00:00
jesus
a6020fde72 fix dbgrid false bookmark duplicates, issue #7884
git-svn-id: trunk@10305 -
2006-12-06 08:24:44 +00:00
jesus
70ac84f4fb added OnSelectEditor for dbgrid
git-svn-id: trunk@10267 -
2006-11-30 21:41:05 +00:00
jesus
cd7659f566 CheckNewCachedSizes, UpdateActive and UpdateData made virtual from Aleksey Lagunov
git-svn-id: trunk@10149 -
2006-11-01 07:41:05 +00:00
mattias
63e2e77804 renamed TDBGrid
git-svn-id: trunk@9752 -
2006-08-27 13:44:52 +00:00
jesus
f5bc0a2868 added dbgrid OnColumnSized
git-svn-id: trunk@9706 -
2006-08-06 17:20:12 +00:00
jesus
b4de789eaa avoid drawing data if dataset is empty
git-svn-id: trunk@9702 -
2006-08-05 19:41:46 +00:00
jesus
e5a13ce4e3 fixed dbgrids column visibility
git-svn-id: trunk@9687 -
2006-07-27 19:15:45 +00:00
jesus
8396895ec1 dbgrid: checking field visibility change
git-svn-id: trunk@9647 -
2006-07-20 20:40:19 +00:00
jesus
6fd4085074 disabled editing of blob fields in dbgrid
git-svn-id: trunk@9457 -
2006-06-20 18:49:00 +00:00
mattias
6eb4930179 fixed references to COPYING.LCL
git-svn-id: trunk@9243 -
2006-05-05 05:52:08 +00:00
jesus
089474d7bb Implements dbgrid.SelectedRows (issue #1849)
git-svn-id: trunk@9234 -
2006-05-03 18:22:48 +00:00
jesus
5da71e890e fixed dbgrid eating some keys
git-svn-id: trunk@8965 -
2006-03-19 21:03:22 +00:00
jesus
a85b8947c8 fixed dbgrid do not save and restore scrollbars property
git-svn-id: trunk@8823 -
2006-02-25 20:29:58 +00:00
mattias
994cebd433 replaced IFDEF win32 with IF defined(VER2_0_2) and defined(WIN32)
git-svn-id: trunk@8759 -
2006-02-17 14:07:21 +00:00
mattias
c17929dd5f fixes for compiling wince
git-svn-id: trunk@8757 -
2006-02-17 13:57:15 +00:00
mattias
0c9ab7d58b renamed DrawByRows to DrawAllRows
git-svn-id: trunk@8644 -
2006-01-28 18:14:26 +00:00
jesus
ecf75a0527 fixed: updating default titlefont (through grid.font change) modify colcount, fixed double releasing of FValueUnchecked (from Aleksey Lagunov)
git-svn-id: trunk@8019 -
2005-11-01 06:35:53 +00:00
jesus
97510df1a2 Fixed columns fonts, created OnPicklistSelected, Columns creation
git-svn-id: trunk@8000 -
2005-10-29 20:14:44 +00:00
jesus
0235d8ac82 TStringGrid/TDrawGrid Columns fixes, bugs #1359,#1367
git-svn-id: trunk@7988 -
2005-10-27 18:54:35 +00:00
jesus
418158b975 TColumn.ReadOnly is now checked when using cbsCheckboxColumn, from Lagunov
git-svn-id: trunk@7971 -
2005-10-17 20:32:17 +00:00
jesus
a54c8c6d92 Implemented dgColumnResize
git-svn-id: trunk@7881 -
2005-10-01 17:26:31 +00:00
jesus
dd485801cc active record wasn't updated after dataset scroll
git-svn-id: trunk@7851 -
2005-09-29 17:19:14 +00:00
jesus
d6b74d51c8 fixed AV in dbgrid.CellClick
git-svn-id: trunk@7837 -
2005-09-26 18:36:20 +00:00
jesus
86fba93d3c grid: fixed borderstyle (win32), focus is drawn correctly, alternate color don't override
a user selected column color. 
Applied goRowNumbering clean-up from Darius
dbgrid: better columns' default width, new SelectedColumn property,
fixed draw problems in vert scrollbar when closing linked dataset (win32)
now user columns remove autocolumns at runtime. 
fixed dgTitles, dgIndicator behaviour

git-svn-id: trunk@7830 -
2005-09-26 07:22:28 +00:00
marc
8925ef5f51 * Fixed bug #907
* Changed TLMScoll <-> TWMScroll, TLMScroll has extended position info

git-svn-id: trunk@7665 -
2005-09-10 16:31:04 +00:00
mattias
373eba5ee6 improved TGridColumn.GetDisplayName and updating column index in TCollection editor
git-svn-id: trunk@7608 -
2005-08-31 08:43:26 +00:00
jesus
ff82665c10 row numbering from Darius, fixed column with mouse, FixedCols/rows can be equal to Col/RowCount
git-svn-id: trunk@7603 -
2005-08-30 21:50:38 +00:00
vincents
a0311c2cba removed cvs logs
git-svn-id: trunk@7541 -
2005-08-22 12:30:03 +00:00
jesus
c7c83312ec property editormode made public
git-svn-id: trunk@7494 -
2005-08-10 17:21:14 +00:00
jesus
8a2365929a Fix bugs #1077, #1072. Wrapping selections at column boundary
git-svn-id: trunk@7476 -
2005-08-03 20:41:05 +00:00
jesus
b0f697e2fa removed some unused objects
fixed redrawing issues after closing dataset or removing columns

git-svn-id: trunk@7338 -
2005-07-12 21:05:51 +00:00
jesus
512a4fa364 implemented columns assign method bug #984
git-svn-id: trunk@7270 -
2005-06-22 21:32:25 +00:00
mattias
49823c14e4 added checkboxes to TDBGrid from Sergey Smirnov
git-svn-id: trunk@7233 -
2005-06-11 09:30:24 +00:00
vincents
925d70c154 fixes for bugs #922,#924 and updating <10 recs. Automatic Columns, picklist implementation from Jesus
git-svn-id: trunk@7224 -
2005-06-07 19:29:24 +00:00
mattias
dcefb8d97e TextRect clipping patch from Jesus
git-svn-id: trunk@7186 -
2005-05-21 13:24:58 +00:00
mattias
144133d2e9 fix bug #878 (can not paste from clipboard) new property TitleStyle from Jesus
git-svn-id: trunk@7122 -
2005-05-02 08:35:42 +00:00
mattias
9f22ae4900 dbgrids: Stops propagating ENTER key when modifying a field from Jesus
git-svn-id: trunk@7053 -
2005-04-03 10:13:34 +00:00
marc
b70bc3d401 * patch from Jesus Reyes
git-svn-id: trunk@7036 -
2005-03-29 21:56:02 +00:00
mattias
2f6700d991 checking HandleAllocated for dbgrid from Jesus
git-svn-id: trunk@7018 -
2005-03-24 09:50:03 +00:00
mattias
244f70823e blob fields for TDBGrid from Jose A. Rimon
git-svn-id: trunk@7014 -
2005-03-23 15:59:33 +00:00
mattias
8a344c0ff0 BorderStyle for TCustomEdit in win32 intf from Jesus
git-svn-id: trunk@6925 -
2005-03-08 10:32:47 +00:00
mattias
d00d0b82ac fixed DefaultRowHeight=18 and various published properties from Jesus
git-svn-id: trunk@6916 -
2005-03-07 23:21:36 +00:00
vincents
4ecc26ea8e added initialization of FEditingColumn from Luiz Americo
git-svn-id: trunk@6883 -
2005-03-04 07:06:18 +00:00
mattias
459ccdc887 fixes for empty dbgrid from Jesus
git-svn-id: trunk@6769 -
2005-02-08 11:33:16 +00:00
mattias
303e21e7b1 dbgrid.ThumbTracking and fixes from Jesus
git-svn-id: trunk@6759 -
2005-02-06 22:43:38 +00:00
mattias
838c199783 added DoCompareCells, changed OnCompareCell from Jesus
git-svn-id: trunk@6611 -
2005-01-16 13:16:31 +00:00
vincents
abe5e0c3fb some ugly hacks to fix 1.0.x compilation
git-svn-id: trunk@6532 -
2005-01-10 15:59:43 +00:00
mattias
1be6e84c55 registered andadded icon for TTIGrid
git-svn-id: trunk@6522 -
2005-01-09 14:11:03 +00:00
mattias
4f3496c1cd fixed TabOrder dialog for new TabOrder
git-svn-id: trunk@6510 -
2005-01-08 15:06:06 +00:00
mattias
6334f891ba Columns property in TCustomGrid by Jesus
git-svn-id: trunk@6485 -
2005-01-05 15:20:10 +00:00
vincents
39db8229af fixed fpc 1.0.x compilation
git-svn-id: trunk@6417 -
2004-12-25 21:46:23 +00:00
mattias
caa5ef7bac added auto column sizing from Jesus
git-svn-id: trunk@6413 -
2004-12-23 19:24:46 +00:00
mattias
273f133de5 defaultrowheight property is set to 20 pixels and fixes from Jesus
git-svn-id: trunk@6407 -
2004-12-22 20:02:26 +00:00
mattias
9a37fb3c97 implemented scrollbar codes for gtk intf from Jesus
git-svn-id: trunk@6404 -
2004-12-21 22:49:29 +00:00
mattias
6a9d72cbda fixed compiler options interface double variables
git-svn-id: trunk@6133 -
2004-10-12 08:23:20 +00:00
vincents
d3f31f7707 Fix fpc 1.0.x compilation.
git-svn-id: trunk@6128 -
2004-10-09 18:08:52 +00:00
mattias
45c1fe7cee From Jesus: Ctrl+HOME does dataset.first, ctrl+END does dataSet.Last and fixes
git-svn-id: trunk@6124 -
2004-10-09 12:16:21 +00:00
mattias
2c8db8bb68 fixed TCanvas.TextRect Delphi compatible Rect and added TBarChart from Michael VC
git-svn-id: trunk@6064 -
2004-09-24 13:45:32 +00:00
vincents
7c078384c9 fix fpc 1.0.x. compilation
git-svn-id: trunk@6052 -
2004-09-23 12:59:37 +00:00
vincents
78477655a6 - removed some debug output
- removed wmsize event handler
- changed case of some keywords
- improved DrawFocusRect in case there are not gridlines

git-svn-id: trunk@5941 -
2004-09-08 07:21:10 +00:00
mattias
0f9985babe fixed changing CNCHar.CharCode when key changed
git-svn-id: trunk@5914 -
2004-09-02 17:42:38 +00:00
micha
08e3b3170f from jesus reyes:
grids:
 + bug #388 fixed
 + focused cell rectangle redesign
 + many internal changes

dbgrids:
 + font support, still the object inspector doesnt allow main/title
font changes but it works in the column/column.title font.
 + column/column.title text layout (tltop, tlcenter, tlbottom)
 + editing support
 + fixed resize designtime problems
 + options

git-svn-id: trunk@5903 -
2004-09-01 20:18:03 +00:00
vincents
43c69b43f3 fixed for compilation with fpc 1.0.11 too
git-svn-id: trunk@5810 -
2004-08-17 19:21:37 +00:00
mattias
ebb787e8f5 implemented virtual temporary ct files
git-svn-id: trunk@5747 -
2004-08-07 07:03:29 +00:00
mattias
21b270c41c fixed compilation for fpc 1.0.10
git-svn-id: trunk@5745 -
2004-08-06 06:51:15 +00:00
mattias
540727fc1b implemented setting TTabSheet.TabIndex
git-svn-id: trunk@5731 -
2004-08-04 09:35:38 +00:00
vincents
bc48338a51 fix 1.0.x compilation.
git-svn-id: trunk@5727 -
2004-08-03 15:38:53 +00:00
micha
7e37785f81 implement column support for tdbgrid (thx jesusrmx)
git-svn-id: trunk@5721 -
2004-08-01 14:21:47 +00:00
mattias
4df1099fd6 applied patch for OnColEnter/OnColExit from Jesus
git-svn-id: trunk@5677 -
2004-07-13 18:59:50 +00:00
mattias
e1f1af3fb2 improved grids e.g. OnPrepareCanvas patch from Jesus
git-svn-id: trunk@5469 -
2004-05-14 12:53:25 +00:00
mattias
a444f136c2 replaced writeln by debugln
git-svn-id: trunk@5455 -
2004-05-11 11:42:27 +00:00
mattias
f9b13e171e applied grids patch, fixing ctl3d and other bugs from Jesus
git-svn-id: trunk@5406 -
2004-04-13 20:11:19 +00:00
micha
912d81b51e revert intf split
git-svn-id: trunk@5225 -
2004-02-23 08:19:05 +00:00
micha
8c520fe744 split interface into non-lcl and lcl-component dependent parts
git-svn-id: trunk@5224 -
2004-02-22 22:52:59 +00:00
mattias
70d1404151 added TDBGrid from Jesus
git-svn-id: trunk@4653 -
2003-09-20 09:16:07 +00:00