Stefan Neis
c6707d16fe
Tried to fix bug 603906 by modifying GetModelValues to disable editor.
...
Also save and disable editor in SetModelValues. However, I don't have
a test case ...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 16:22:56 +00:00
Stefan Neis
aa5b885706
Commited John Labenski's patch giving access to the low level selection
...
representation (Patch 579754).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 13:58:25 +00:00
Stefan Neis
7fbc642095
Fixed bug in CoordToRowOrCol.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 12:46:39 +00:00
Stefan Neis
3ed884a0b8
Some refresh optimizations.
...
Untabified.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 12:28:03 +00:00
Julian Smart
8dd8f87530
Applied patch [ 605592 ] Unicode patch for dirctrlg.cpp
...
Markus Greither
just compiled the wxWindows CVS trunk using
BCC5.5.1 and UNICODE. I noticed a small bug in
girctrlg.cpp, that prevented compilation. There are more
such glitches in the wxGrid, but as I was running out of
time, I disabled this for now. Otherwise, compilation
worked fine and I was able to run the minimal sample
(using UNICOWS on my WIN98SE).
(I also corrected some wxGrid Unicode string typos -- JACS)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-06 14:42:47 +00:00
Julian Smart
ae31cc57f7
Eliminated unreachable code warning in VC++
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 20:12:02 +00:00
Stefan Neis
7e48d7d9fb
Fixed apparent typo in wxGridCellAttr::MergeWith, hopefully fixing
...
bug 581558 (wxGrid.SetColAttr vs. SetCellAlignment)
Remove editor in Redimension. This should fix
bug 593189 (wxGrid:delting rows doesn't hide editor)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 18:14:31 +00:00
Stefan Neis
a679468530
Clear attribute cache in Redimension to fix Bug 508407.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 16:34:17 +00:00
Stefan Neis
8403515064
Added some const qualifiers.
...
"Fixed" bug no 500487 by limiting wxGrid::DoGetBestSize's return value by
DisplaySize.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 15:27:26 +00:00
Stefan Neis
a373d23b14
Applied AutoWrap Renderer Bugfix by Roger Gammans (Patch 467479).
...
Blindly tried to fix crash reported by Roman Vanicek on Mailing list:
SetCellHighlightColour sometimes segfaults in wxGTK. The
application crashes in LookupAttr.
Tentative explanation: Cache handling gets confused if LookupAttr gets
called on wxGridNoCell.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 00:54:01 +00:00
Vadim Zeitlin
ad603bf790
compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 22:57:16 +00:00
Stefan Neis
27f35b6674
Make use of new array functions.
...
Added redraw function (by Roger Gammans).
Added Cell overflow & multiple cells (Patch 518206).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 22:42:29 +00:00
Julian Smart
85d8c319d6
Applied patch [ 601957 ] wxGrid: Start editing with numberpad key
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:25:37 +00:00
Robin Dunn
505f70dec6
All editors that derive from wxGridCellTextEditor will now select the
...
existing value when the editor is started, just like a wxTextCtrl now
does in normal use.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 21:40:43 +00:00
Robin Dunn
8a60ff0af8
If the number or float editor is being used but the values are
...
saved/loaded to the table as strings, then allow empty strings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 21:39:21 +00:00
Robin Dunn
ec53826c06
Fixed wxGridCellFloatEditor::Clone
...
Changed wxGridCellEditor::GetString to use %f instead of %g to match
the Renderer, otherwise it would truncate/round the value to
m_precision significant digits instead of m_precision digits after the
decimal point.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 20:03:42 +00:00
Robin Dunn
70e8d96150
Don't try to release the mouse unless we actually have it captured.
...
The mouse capture can be lost if an event handler shows a modal
dialog, for example.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-24 18:35:17 +00:00
Vadim Zeitlin
3f3dc2efd0
don't crash trying to dereference NULL m_selection (happens when showing a grid without any rows or columns)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-20 15:01:10 +00:00
Julian Smart
426b2d8795
Applied drag fix to row labels as well
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-20 16:16:28 +00:00
Julian Smart
fe77cf604a
Captured mouse in grid column label so the drag isn't prematurely and messily
...
ended when moving out of the column label window.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-20 13:17:31 +00:00
Vadim Zeitlin
1af546bfc3
don't pass arrays by value (and also fixed signed/unsigned comparison warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-28 14:39:37 +00:00
Stefan Neis
33188aa47a
Replaced internal calls to XToCol/YToRow added in 1.197 by internal macro
...
which treats the out of grid case in a way that's more suitable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-28 00:39:04 +00:00
Stefan Neis
68c5a31c6c
Fixes to my last commit.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-27 10:37:15 +00:00
Stefan Neis
b1da81074c
Speed-up for very large grids by more efficient search for rows/columns
...
that need to be updated (in various locations).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15246 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-23 17:56:56 +00:00
Vadim Zeitlin
1231429104
fixed the bug which resulted in not showing the grid withotu scrollbars at all
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-12 22:00:38 +00:00
Vadim Zeitlin
94af7d45ef
added wxTextCtrl::EmulateKeyPress
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-07 22:29:04 +00:00
Vadim Zeitlin
2f159c5849
don't crash if editing of the cell wasn't started for whatever reason (patch 502692)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-21 16:17:13 +00:00
Robin Dunn
ccd970b13b
Fixed a bug that prevented editors and renderers to be purly data type
...
dirven (IOW, if no other cell attributes have been set but the cell
has a non-string type.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-12 01:54:48 +00:00
Robin Dunn
59ddac0109
Derive wxGridWindow from wxWindow instead of wxPanel so thw SetFocus
...
in HideCellEditControl() will actually set the focus to the grid
window instead of back to the cell editor which was just hidden.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-05 20:38:25 +00:00
Vadim Zeitlin
526dbb9590
set extra margins to be 0 by default, not 50
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-27 13:58:35 +00:00
Vadim Zeitlin
ae1d0c6c46
fixed bug in wxGrid dimensions calculation (Staffan Ulfberg)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-26 01:33:47 +00:00
Václav Slavík
a756f21001
use the new wxSystemSettings API everywhere
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13471 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-08 23:53:01 +00:00
Robin Dunn
0926b2fcc2
Prevent crash when m_defGridAttr is NULL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-07 21:38:12 +00:00
Vadim Zeitlin
1df4050d11
fixed uninitialized wxGridCellAttr::m_defGridAttr (patch 491231)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-30 17:22:03 +00:00
Vadim Zeitlin
d0eb7e5699
fixed compilation for strict ANSI compilers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-25 22:38:01 +00:00
Vadim Zeitlin
97a9929e8f
fixed Fit() to avoid showing scrollbars
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-24 16:28:18 +00:00
Vadim Zeitlin
3cf883a26a
really fixed GetRenderer() and GetEditor() methods, they were both broken in some strange and twisted (and different) ways
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-24 14:15:11 +00:00
Vadim Zeitlin
d9f7f49ea3
applied patch 475879 (Can't use subclassed GridCellEditor)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-20 18:58:47 +00:00
Vadim Zeitlin
6f36917bbf
fixed a memory leak and an initialization problem
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-19 20:31:44 +00:00
David Webster
1bcf0c7d6e
TRUE and FALSE, not true and false.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-04 14:51:05 +00:00
Vadim Zeitlin
fe7b9ed6fd
support for vetoing grid cell editing (patch 469049)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-02 17:44:55 +00:00
Robin Dunn
275c4ae474
It's better to scroll by a little too much than by just barely not enough...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-22 22:05:24 +00:00
Vadim Zeitlin
4403ced6fc
changed some Remove()s into RemoveAt()s
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-13 21:34:08 +00:00
Vadim Zeitlin
edb89f7e35
formatting changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-10 01:44:00 +00:00
Vadim Zeitlin
27b92ca4e2
added \#if wxUSE_GRID around the whole file (patch 455225)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-25 14:43:43 +00:00
Vadim Zeitlin
b54e41c529
1. fixed typo ('&' instead of '|') in wxNotebook
...
2. changed wxTC_MULTILINE to be equal to wxNB_MULTILINE and != 0
3. much more efficient selection handling in virtual wxListCtrl,
we can now select 1000000 items without problems
4. kbd/mouse selection (ctrl/shift handling) fixed in wxListCtrl
5. added wxSortedArray::IndexForInsert() and AddAt(), remove Remove(size_t),
use RemoveAt() instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-07 22:42:35 +00:00
Vadim Zeitlin
3a8c693aea
renamed scrolwin file - no other way to make wxGTK/Univ compile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-03 18:14:22 +00:00
Julian Smart
606b005fb2
More small fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-06-27 12:31:16 +00:00
Robin Dunn
bf7945cef1
Added EVT_GRID_EDITOR_CREATED and wxGridEditorCreatedEvent so the user
...
code can get access to the edit control when it is created, (to push
on a custom event handler for example.)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-31 06:23:06 +00:00
Vadim Zeitlin
d10f4bf950
applied tons of wxGrid patches
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-27 15:22:28 +00:00