Kendall Bennett
33ac7e6f01
Updates to fix Watcom C/C++ 11.0 compiler warning problems. Now compiles
...
clean with this compiler. Hopefully I did this without breaking other
compilers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-02 19:48:15 +00:00
Stefan Neis
f74d0b57aa
Hopefully fixed bug #233492 (SelectAll crashed on empty grids).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-20 20:48:51 +00:00
George Tasker
389b961e23
Fixed a compiler performance warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9778 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-17 11:05:24 +00:00
Stefan Neis
faec5a4383
Added patch #412132 (Fix for bug #215410 ) (Mainly in CalcDimensions()),
...
changing GRID_SCROLL_LINE to 1.
Fixed Bug #413014 (Missing refresh after calling DeleteCols) by fixing
Redimension.
Fixed Bug #232657 (Mouse not captured during wxGrid column resize) by
fixing ChangeCursorMode.
Fixed some minor problems with screen updates (CalcDimensions should only be
called while not BatchMode, Autosizing Rows/Cols should happen within
BatchMode, Sizing a row/column should update also labels)
- touched various functions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-16 22:58:26 +00:00
Vadim Zeitlin
ffdd3c9861
added missing GetEventHandler() (patch #103561 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-02-02 15:56:30 +00:00
Vadim Zeitlin
2e4df4bfaf
1. made compilation with WXWIN_COMPATIBILITY_EVENT_TYPES really work
...
2. moved ~50% of the event types in their own headers/sources from event.h/cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9243 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-01-31 17:16:40 +00:00
Robert Roebling
0f442030c4
Prepare wxToolBarSimple for event type change.
...
Make wxGrid use new event types.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9167 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-01-25 18:27:01 +00:00
Vadim Zeitlin
f7b4b3435b
patch adding DeselectXXX() functions from Roland Scholz <scholz@pb.izm.fhg.de>
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-01-02 15:35:46 +00:00
Vadim Zeitlin
ee495e4cab
typo in AutosizeRowOrCol fixed (bug 115437)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8824 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-25 23:23:41 +00:00
Robin Dunn
a4f7bf5849
Changed wxGridCellEditor::IsAcceptedKey to only check Control and Alt,
...
not Meta. (NumLock is Meta for me, and so the old setting wouldn't
let any key activate the control if NumLock was on.)
Checked for WXK_NUMPAD_ENTER everywhere we were checking for
WXK_RETURN.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-12 00:07:15 +00:00
Robin Dunn
84912ef8b7
Allow a NULL editor and/or renderer to be passed to RegisterDataType
...
and not crash when it tries to get them later. (If NULL it falls back
to the grid's default like it used to before the type registry was
added.)
Added wxTE_PROCESS_TAB to wxTextCtrl style for MSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-11 23:57:16 +00:00
Michael Bedward
695a326318
Added Paul Gamman's patch for 0 as FALSE in bool editor and renderer.
...
Fixed bug in grid selection code that caused crashes (e.g. when grid
had just 1 col and mode was row selection).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-08 10:43:16 +00:00
Bryan Petty
3ca6a5f046
second merge of the 2.2 branch (RL)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-08 06:11:51 +00:00
Michael Bedward
b1944ebcd0
Removed redundant m_left etc. variables
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-08-04 05:22:34 +00:00
Michael Bedward
c909783630
Renamed existing wxGrid::SelectBlock to HighlightBlock.
...
Added new wxGrid::SelectBlock that does what the name suggests
(consistent with the other SelectXXX functions).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7890 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-28 05:12:32 +00:00
Michael Bedward
ae9cab0676
Fix for bug where the cell highlight was not cleared from a cell
...
that was only partially in view.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-27 06:37:41 +00:00
Michael Bedward
a0948e2723
Added another hack to the collection of hacks in
...
wxGridCellTextEditor::SetSize so that the caret will show
for cells in the first row.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-27 06:23:33 +00:00
Michael Bedward
4c7277db42
Changed cell and label alignment functions to use wxALIGN_XXX defs.
...
SetXXXAlignment() functions still accept wxTOP, wxLEFT etc
for (some) backwards compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-27 01:57:24 +00:00
Michael Bedward
632efa475b
Changes as per patch from Paul Gammans to fix bug with edit control
...
handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-24 06:16:49 +00:00
Michael Bedward
d82323930c
Added ForceRefresh() to request immediate repainting of a grid.
...
Calling Refresh() doesn't do this because of our minimal OnPaint
handler (to reduce screen flicker).
Setting of position coords for wxGridEvents now takes account of
row and col label sizes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-21 06:51:22 +00:00
Bryan Petty
f6bcfd974e
merged 2.2 branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@7748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-07-15 19:51:35 +00:00
Stefan Neis
399b60a0ad
Improved selection mode handling in wxGrid::SelectBlock
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-13 22:11:24 +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
0b7e6e7da2
*** empty log message ***
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-11 18:01:18 +00:00
Stefan Neis
c78b3acd0c
Added WXUNUSED_GTK and WXUNUSED_GTK_AND_MOTIF
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6624 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-11 17:28:36 +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
4a64bee465
Fixed remaining int vs. long warnings.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-11 13:27:39 +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
Julian Smart
3f8e5072f7
Small fixes for Tex2RTF but alas, we still get memory problems.
...
Added wxUSE_MFC setting (doesn't include windows.h, removes own memory
tracing); added include <ctype.h> in case where PCH isn't used;
wxExit now exits :-)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6587 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-10 11:18:22 +00:00
Vadim Zeitlin
d7da975624
1. fixed warning which was hiding a bug in wxGrid::SendEvent()
...
2. started documenting wxDateTime
3. and wxLongLong
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-10 01:15:17 +00:00
Stefan Neis
6b10575493
Make correct cell visible for cursor movement.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-09 15:55:17 +00:00
Stefan Neis
ca4f2b729c
Modified keyboard and mouse handling wrt selecting blocks/cells.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-09 14:25:07 +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
Julian Smart
5fa399c9e2
Made VC++ makefiles and project files a bit more consistent
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-08 08:32:31 +00:00
Michael Bedward
cb9fb5bb00
Modified <shift>+arrow key behaviour so that the starting cell is
...
included in the selection
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-07 10:07:36 +00:00
Michael Bedward
2a7750d939
Moved current cell initialization from wxGrid::OnPaint to
...
wxGrid::DrawHighlight to accommodate wxGTK behaviour.
Removed redundant m_displayed member var from wxGrid.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-07 07:41:58 +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
Vadim Zeitlin
a95e38c034
1. wxGrid row can't be resized to less than minimal height
...
2. memory leaks fixed in wxHashTableLong
3. and in wxGrid
4. changed newgrid sample to use char buffers
5. fixed double clicking owner-drawn buttons
6. compilation fix in enhmeta.cpp for !wxUSE_DND
7. bug introduced earlier today in wxGridCellAttr::GetEditor() fixed
8. bool renderer/editor now look as good as I may ever make them look
good under MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-02 00:58:11 +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
831243b127
asserts in wxGridStringTable corrected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-01 17:21:00 +00:00
Michael Bedward
294d195c3c
Minor compilation fix for Borland
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-03-01 04:10:21 +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
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