Vadim Zeitlin
0bd879bad6
(re?)added support for params to wxGridCellFloatEditor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-05-18 12:29:02 +00:00
Michael Bedward
d66093c7b6
Check for multiple calls to wxGrid::CreateGrid
...
Changed number format for wxGridCellFloatEditor from f to g
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-05-12 11:05:30 +00:00
Robin Dunn
61471de76f
Methods to change the cell highlight colour
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-05-05 15:00:00 +00:00
Stefan Neis
5498f96bfe
Renamed IsCellEditControlDisplayed() to IsCellEditControlShown().
...
Replaces some more IsCellEditControlEnabled() by IsCellEditControlShown().
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-04-18 15:14:53 +00:00
Stefan Neis
fa1b3a43cc
Added IsCellEditControlDisplayed() and use it from SetCellValue.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-04-18 10:51:38 +00:00
Stefan Neis
f9823427eb
Corrected handling of row/column attributes/selections if all columns/rows
...
are removed.
Emit EVT_GRID_CELL_LEFT_CLICK before doing any processing of the left click
mouse event (instead of emitting it somewhere in the middle).
Moved calls to UpdateAttrRows/Cols to wxGrid's Insert/DeleteRow/Column
(thereby eliminating the need for two now removed functions).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-04-08 15:30:20 +00:00
Robin Dunn
a410206586
Changed wxGridCellChoiceEditor's constructor to take an array of
...
wxStrings instead of wxChar*'s. This saved a lot of work for
wxPython.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7082 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-04-08 08:16:08 +00:00
Robin Dunn
4d350ff2ca
Exported a few more things for DLL builds.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-04-02 03:27:55 +00:00
Stefan Neis
1904bfd1e9
Repaired semantics of EVT_GRID_SELECT_CELL.
...
Added OnKeyUp handler for selection with Shift+arrow keys.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-31 17:04:54 +00:00
Stefan Neis
6989e08f3a
Changed wxGrid::OnPaint to call Refresh on subwindows.
...
Added Refresh to wxGrid::EndBatch().
Use batch mode in sample.
Changed CalcDimension to better handle cases with zero columns or rows.
No more automatic insertion of column when adding rows to a grid without
columns.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@6947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-26 12:36:59 +00:00
Stefan Neis
6fc0f38fe0
More compilation fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-13 12:04:25 +00:00
Stefan Neis
aa5e1f75d9
Added many WXUNUSED, untabified once again.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-11 13:59:41 +00:00
Stefan Neis
e32352cf66
Changed wxGridCellCoords from long to int (get rid of most HP warnings?)
...
Added Shift/Control+Click handling for labels.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-10 12:27:27 +00:00
Stefan Neis
d95b0c2ba0
Changed Shift+Arrow handling
...
Fixed Ctrl/Shift/Alt/Meta handling in generated events.
Added display of Ctrl/Shift/Alt/Meta status to griddemo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-09 13:57:02 +00:00
Michael Bedward
19701d22df
Removed redundant m_displayed member var from wxGrid
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-07 08:22:43 +00:00
Stefan Neis
5c8fc7c1de
Improved handling of selection/deselection events.
...
Improved keyboard navigation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-04 23:09:37 +00:00
Stefan Neis
043d16b225
Bugfixes; added selection modes demo to griddemo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-04 19:56:39 +00:00
Stefan Neis
f1567cddea
Added SetSelectionMode
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-04 16:35:58 +00:00
Stefan Neis
b58088819b
Added extended selection support.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-03 16:44:33 +00:00
Stefan Neis
294f6bcbdb
Added class to handle selection inside wxGrid
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-02 19:41:17 +00:00
Vadim Zeitlin
c4608a8af3
1. warning in gtk/menu.cpp fixed
...
2. Unicode fix in msw/textctrl.cpp
3. more parameters support in grid editors/handlers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-01 18:55:29 +00:00
Vadim Zeitlin
e72b421324
setting parameters for wxGridCellFloatRenderer seems to work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-29 19:30:26 +00:00
Vadim Zeitlin
0b190b0f6a
1. more corrections for ref counted editors/renderers (doesn't crash any more,
...
might leak memory though)
2. attempt to add parameters to renderers - failed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-29 18:36:04 +00:00
Vadim Zeitlin
39bcce60fe
wxGridCellRenderer/Editor made ref counted
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-29 17:42:28 +00:00
Vadim Zeitlin
af547d51b7
1. added range checks in wxGridStringTable
...
2. added AutoSizeRow(), setting minimal size for the rows is supported as
well now
3. replaced ugly wxHashTables with (just created) wxHashTableLong
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-29 17:21:20 +00:00
Michael Bedward
ad115b2d65
AutoSizeColumns and AutoSizeRows changed to pass FALSE for calcOnly arg
...
to SetOrCalcXXXSizes()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-29 08:27:29 +00:00
Michael Bedward
ebd773c6f8
Added wxWANTS_CHARS style to all windows so that the grid reacts to
...
cursor keys when it is on a panel.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-29 01:37:37 +00:00
Vadim Zeitlin
a68c1246db
wxGridCellAttr::Clone() added to allow the demo of custom grid cell attr provider to work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-28 19:08:01 +00:00
Vadim Zeitlin
266e83674a
grid autosize fixes/changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-28 16:40:14 +00:00
Vadim Zeitlin
57c086ef99
wxGrid::AutoSize() added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-26 21:00:07 +00:00
Vadim Zeitlin
3324d5f50f
removed saveValue param in EndEdit()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-23 15:58:10 +00:00
Michael Bedward
7c8a8ad57e
Added wxGrid::DrawGridSpace function to suppress junk beyond last
...
row and col of grid.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6230 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-23 07:15:04 +00:00
Robin Dunn
4cfa5de640
Some mouse events need to be handled even when outside the grid.
...
Added flag and accessors to enable/disable the dragging of the grid
lines.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6229 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-23 07:03:56 +00:00
Robin Dunn
28a77bc43b
delay getting the default editor and renderer (by data type) until
...
actually needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6228 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-23 04:45:24 +00:00
Vadim Zeitlin
4ee5fc9c92
added combobox editor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-22 16:57:12 +00:00
Vadim Zeitlin
65e4e78efb
column autosizing added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6213 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-22 16:03:54 +00:00
Vadim Zeitlin
816be743e8
added renderers/editors for long/float, not fully tested yet, but seems to
...
work - see the demo in the (updated) sample
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-22 14:29:41 +00:00
Vadim Zeitlin
99306db210
don't draw cell highlight over the cell editor (improves wxGCBoolEditor appearance
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-22 11:08:17 +00:00
Vadim Zeitlin
6daa30a07e
removed some default value for wxGrid compatibility ctor resolving ambiguity of writing wxGrid(this, -1)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-22 09:56:22 +00:00
Michael Bedward
6e8524b11b
Added functions to enable/disable drag-resizing of rows and cols.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-22 03:51:43 +00:00
Robin Dunn
0ba143c9a0
forgot to uncomment a few things
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-21 23:22:40 +00:00
Robin Dunn
f2d7623799
Added ability for tables, grids, editors and renderers to handle nonstring data.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-21 23:17:40 +00:00
Vadim Zeitlin
439479796a
added SetColMinimalWidth()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-21 18:01:45 +00:00
Vadim Zeitlin
7c1cb26122
virtualized m_row/col height/widths arrays
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-21 16:39:23 +00:00
Vadim Zeitlin
d16c04bb0a
1. removed 3d border, but
...
a) made DrawCellHighlight() virtual to allow overriding it in user code
b) fixed bug with grid lines painting over the border, so it should really
work now
2. char events to readonly cells are Skip()ped which makes Alt-X work for
them too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-21 14:27:36 +00:00
Vadim Zeitlin
e195a54c31
added wxGridCellEditor::StartingClick(), used by BoolEditor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-17 20:03:01 +00:00
Vadim Zeitlin
189d0213da
wxGridCellEditor::PaintBackground() added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-17 19:13:48 +00:00
Vadim Zeitlin
508011ce6c
bool editor/renderer added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-17 14:08:27 +00:00
Vadim Zeitlin
b54ba67107
1. EVT_GRID_XXX constants renamed to wxEVT_GRID_XXX
...
2. EVT_GRID_EDITOR_SHOWN/HIDDEN added
3. Alt-X now work in the grid (instead of being eaten in StartingKey)
4. added CanEnableCellControl() and use it before calling EnableEC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-17 10:12:48 +00:00
Vadim Zeitlin
283b7808d8
added support for readonly cells and 3d border drawing
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-02-16 21:10:45 +00:00