Vadim Zeitlin
b4a980f4f5
don't use obsolete functions (mostly copystring() and Count()), remove their documentation (patch 1697956)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-11 00:23:19 +00:00
Václav Slavík
add4bb4044
BCC5.5 compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-03 10:36:40 +00:00
Vadim Zeitlin
733f486aac
added support for wxGRID_AUTOSIZE in wxGrid::SetRow/ColLabelSize()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-15 17:44:41 +00:00
Vadim Zeitlin
b62f94ff48
added wxGridUpdateLocker helper class wrapping Begin/EndBatch() calls in a more convenient and safe way
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-15 17:25:15 +00:00
Vadim Zeitlin
86033c4b6f
handle mouse capture lost event in grid windows and reset the grid to normal state when it happens
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-04 22:18:35 +00:00
Vadim Zeitlin
c71b212607
do adjust scrollbars in our EVT_SIZE handler now that we turn them off correctly (otherwise scrollbars wouldn't be shown correctly when the grid becomes too small to show its contents entirely after changes in rev 1.410)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-17 02:35:50 +00:00
Vadim Zeitlin
b2df5ddf6a
don't delete inexistent column indices in DeleteCols()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-16 17:41:58 +00:00
Robin Dunn
25107357ef
Don't capture the mouse until after the possible wxEVT_GRID_CELL_BEGIN_DRAG event.
...
(ported from 2.8 branch)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 21:52:23 +00:00
Vadim Zeitlin
ef316e23c9
made (many) more wxGrid methods const
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-05 19:10:09 +00:00
Stefan Neis
a7dde52f0a
Improve resetting table via SetTable (extended version of patch #1636377 ).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 22:39:56 +00:00
Vadim Zeitlin
b8508db8b4
create in place edit control with wxTE_PROCESS_ENTER style as otherwise it's not closed on Enter when used inside a panel or a dialog (which uses Enter for dialog navigation) (patch 1630586)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-14 21:04:27 +00:00
Vadim Zeitlin
2c03d7714c
fix attribute memory leak in wxGrid::ShowCellEditControl() (patch 1629949)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-07 17:09:54 +00:00
Vadim Zeitlin
388703a573
forcefully get rid of the scrollbars in CalcWindowSizes() if we don't need them any more
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-17 02:13:04 +00:00
Vadim Zeitlin
dc4689ef73
correct GetBestSize() to return correct best size, i.e. the same size as AutoSize() would give to the control since the fix in 1.407
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-15 01:09:06 +00:00
Vadim Zeitlin
39621ee0e7
added the missing parameter to SetScrollbars() call in AutoSize()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-04 10:43:43 +00:00
Vadim Zeitlin
0ed3b81230
fixed long standing bug with Fit() still showing the scrollbars: the old code for rounding up the grid size to a multiple of scroll step was wrong as it did for the grid itself and not just the scrollable area (and also assorted off by 1 errors and a workaround for a bug in wxMSW SetClientSize() implementation whihc may sometimes leave space for unneeded scrollbar)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-03 20:54:04 +00:00
Mattia Barbon
dab61ed75f
Use 1 as true and "" as false, not the opposite.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-26 14:22:29 +00:00
Robin Dunn
ecc7aa8203
ensure m_table is not NULL before trying to access the view
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-08 04:54:47 +00:00
Julian Smart
5d38a5f3c1
Improved highlight drawing on wxMac/Core Graphics by not using wxClientDC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43115 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 11:41:02 +00:00
Stefan Csomor
f4f9074f49
fixing region clipping
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43108 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-06 08:11:57 +00:00
Vadim Zeitlin
86020f7e33
don't leave tables non-owned by the grid with dangling view pointer when the grid is deleted (patch 1310535)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 13:43:13 +00:00
Vadim Zeitlin
7c3f33a943
grid lines were incorrectly drawn over multicell cells in the last column (bug 1290841)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-04 12:33:48 +00:00
Robin Dunn
170acdc90e
GetBestFittingSize --> GetEffectiveMinSize
...
SetBestFittingSize --> SetInitialSize
SetBestSize --> SetInitialSize
SetInitialBestSize --> SetInitialSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42816 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 08:50:17 +00:00
Vadim Zeitlin
8497bbf52d
check that the cell using bool editor has a valid value (i.e. either true or false) (last nail in the coffin of the request 1557790)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 01:28:15 +00:00
Vadim Zeitlin
9c71a1386d
allow customizing the string values returned by wxGridCellBoolEditor::GetValue() (feature request 1557790)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-28 13:57:38 +00:00
Robert Roebling
e60022505d
I don't think anylonger that DrawHeaderButton() should
...
be used for drawing grid row/col buttons. Also, the
GTK2 port should not waste space per line of wxMSW
doesn' waste it neither.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-15 19:44:39 +00:00
Vadim Zeitlin
dfd7c0821a
SetOverflow() should be called with a bool argument, not m_overflow
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 22:46:15 +00:00
Stefan Neis
eb703a121f
Initialize m_overflow in wxGridCellAttr::Clone.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-08 22:22:24 +00:00
Paul Cornett
4c44eb66f3
put grid string in generic/grid.cpp, not common/datacmn.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-02 08:12:33 +00:00
Kevin Hock
9d4b8a5d0d
When autosizing a row or column (AutoSize____), use GetMultiLineTextExtent to determine header size. Otherwise, the column header widths are artificially inflated, and row header heights are not high enough.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-22 17:20:40 +00:00
Robert Roebling
2121eb69fa
Another RTL fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41293 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-19 10:42:42 +00:00
Robert Roebling
615b7e6ab0
More wxGrid RTL things.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-18 21:02:09 +00:00
Robert Roebling
bcb614b328
More RTL work. Now transform m_updateRegion and
...
do nothing special in IsExposed() since some
code may use m_updateRegion directly. Keep
untransformed version around for use with
GTK clipping in the DC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-18 14:29:16 +00:00
Vadim Zeitlin
d3c7fc996a
mark all dtors which are virtual because base class dtor is virtual explicitly virtual themselves
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-05 20:47:48 +00:00
Stefan Neis
be2e4015f5
Only support detection of "near the edge" coordinates, if dragging grid lines
...
is actually enabled (Fixes #548106 - Border of grid lines of wx.grid).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40933 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-30 22:38:14 +00:00
Michael Wetherell
c2b2c10ed6
Warning fixes for VC5.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40908 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-29 09:57:41 +00:00
Vadim Zeitlin
7b34da9bd6
remove debugging printf() from wxGridCellFloatEditor::IsAcceptedKey(); cleaned up the code a bit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-26 13:00:49 +00:00
Vadim Zeitlin
3d3f3e3749
allow customization of individual grid lines appearance (patch 1496015)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-24 23:16:37 +00:00
Robin Dunn
2b73a34e1b
properly offset the mouse position for the label window clicks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 22:13:24 +00:00
Vadim Zeitlin
6f706ee0a3
fix appearance problems when the cell is scrolled (patch 1515458)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39934 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-02 01:35:01 +00:00
Vadim Zeitlin
b524b5c6f8
reset m_selectingKeyboard in ClearSelection() too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39927 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-02 00:29:58 +00:00
Vadim Zeitlin
852b6c3ce7
silence gcc warnings about values not handled in switch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-04 14:55:10 +00:00
Włodzimierz Skiba
2a673eb1c9
Include wx/listbox.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39505 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-01 08:23:42 +00:00
Vadim Zeitlin
d417574519
added possibility to reorder columns by dragging them (patch 1409677)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39498 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-01 00:13:19 +00:00
Robin Dunn
e1a66d9a86
Don't scroll the grid when starting a cell editor if it will already
...
fit in the viewable space. The way it was always jumping around drove
me nuts!
Also, ensure that keys like HOME or END won't start the cell editor on
wxGTK2.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-23 02:17:39 +00:00
Robin Dunn
152e88789d
Reverted mistaken check-in
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 01:52:55 +00:00
Robin Dunn
f460c29d59
Use correct DLL import/export specifier for multi-lib builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-18 01:22:06 +00:00
Vadim Zeitlin
9b7d3c0988
blank lines were ignored in multiline cell labels (replaces patch 1476165)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 15:33:23 +00:00
Vadim Zeitlin
4330c974ed
code cleanup in DrawTextRectangle()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-06 15:28:27 +00:00
David Surovell
c2f5b920ca
minor cleanup - reformatting
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-03 02:44:33 +00:00