Julian Smart
46cbb21ecb
Fixed problem with choice editor in wxGrid whereby the editor
...
lost focus when the combobox menu was shown.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-17 17:43:15 +00:00
Kevin Hock
4db6714b16
Code formatting cleanup from OSAF [ patch 1307563 ]
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35772 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-10-01 21:02:18 +00:00
Vadim Zeitlin
4e115ed2c7
fixed variable shadowing icc warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-26 00:29:42 +00:00
Vadim Zeitlin
c77a67962c
use wxIsSameDouble() and wxIsNullDouble() for warning-less double comparison of doubles
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 23:27:27 +00:00
Vadim Zeitlin
17a1ebd101
first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Vadim Zeitlin
fbfb8bcc3f
added missing consts and pass objects by const reference instead of by value (patch 1205869)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-24 21:43:15 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
11850ff358
corrected test for __WXGTK__ (but should it be there at all?)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35105 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-04 21:05:49 +00:00
Włodzimierz Skiba
7448de8d8d
[1231183] 'cleanup: mismatched indentation' and other cleanings.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-22 17:08:42 +00:00
Vadim Zeitlin
48962b9fdd
reverted last change with setting the focus only if we hadn't had it, this breaks under wxGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-21 10:19:53 +00:00
Vadim Zeitlin
2fb3e528a3
only set focus to the grid window in wxGrid::HideCellEditControl() if it hadn't been switched to another window of our application
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-07-02 11:22:24 +00:00
Julian Smart
08dd04d082
Worked around problem with kill focus event being sent as soon as
...
the combobox is focused, on Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-09 14:49:54 +00:00
Włodzimierz Skiba
902725eefe
Source cleaning inspired by and included in patch '[ 1215450 ] cleanup: unreachable code.'
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-06 16:47:04 +00:00
Vadim Zeitlin
140954fd9c
hide the cell editor if the grid loses focus
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34524 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-02 11:38:16 +00:00
Robin Dunn
3100c3dbf3
Merge the cell size attribute the same way that other attributes are
...
merged, e.g., if it is already set to a non-default value in the
current wxGridCellAttr object then don't merge from the other.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34479 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-01 00:16:41 +00:00
Robin Dunn
eb5e42b615
Allow wxGridCellNumberEditor::StartingKey to work when the control is
...
a spinctrl too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-30 18:48:23 +00:00
Julian Smart
659af82672
Applied patch [ 1192917 ] Grids with no row or col headers cause AV under wxGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-22 14:32:15 +00:00
Robin Dunn
33e9fc549c
Set focus to the grid windwo when it is left-clicked
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-20 16:17:57 +00:00
Julian Smart
c2651b0a5c
Renderer should only be used for GTK+ 2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-20 08:17:11 +00:00
Stefan Csomor
c03bf0c740
fix for drawing correct gridlines even on scrolled positions (wxMac)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-22 06:53:03 +00:00
Robin Dunn
7d75e6c6cf
some extra refreshing and updating on wxMac so the grid renders itself correctly.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33800 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-21 19:53:51 +00:00
Michael Wetherell
5335e9c406
Temporary compilation fix for wxUSE_INTL=0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-13 12:39:44 +00:00
Václav Slavík
675a9c0de5
use configured scrolling increments (m_scrollLineX/Y) instead of hardcoded constants in all places
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-12 14:36:59 +00:00
Robin Dunn
046d682f0f
Don't call StartingKey if the key was F2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-08 17:32:41 +00:00
Włodzimierz Skiba
6f0d2ceef5
Dummy warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 17:29:16 +00:00
Vadim Zeitlin
ba30efbc53
unreachable code warning fix (Unicode build)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-21 12:44:28 +00:00
Robin Dunn
63e2147c8b
Fixed bug #1163384 . Moved the code that handles activating the cell
...
editors to a EVT_CHAR event handler. This is done so the character
inserted into the editor will be the "cooked" char value (including
accented or composed keys) rather than the raw code provided by the
EVT_KEY_DOWN.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-19 22:33:17 +00:00
Vadim Zeitlin
60d8e88654
iterator methods fixes (patch 1164808)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-17 23:19:13 +00:00
Robin Dunn
109b9ba582
The key event for the shift key should not start the cell editor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-26 03:16:46 +00:00
Włodzimierz Skiba
c47addef10
wxPoint/Size/Rect() causes the same code with (0,0) initialization and is incomparably more readable and clear.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-16 20:34:34 +00:00
Włodzimierz Skiba
2997ca30d6
Use default constructors for wxSize/Point/Rect.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-10 21:33:56 +00:00
Vadim Zeitlin
bf6461219d
redraw the grid when it's enabled/disabled
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31881 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-09 22:31:30 +00:00
Stefan Neis
d3e9dd9409
fixed double delete in UpdateAttrRows/Cols introduced by patch 1104355.
...
[ Only the change for UpdateAttrRowsOrCols was valid. ]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-06 17:10:01 +00:00
Vadim Zeitlin
01dd42b61f
fixed memory leak in UpdateAttr[Rows][Or][Cols] (patch 1104355)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 16:15:20 +00:00
Włodzimierz Skiba
ec157c8f95
Old API depreciated. Use of new API. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-04 19:35:52 +00:00
Robert Roebling
4d1bc39c96
Give native GTK+ look to wxGrid.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30796 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-27 16:30:03 +00:00
Włodzimierz Skiba
0e871ad039
Fixes for wxUSE_SPIN... == 0.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-23 20:08:56 +00:00
Ryan Norton
0c6099b79e
Revert files to previous version that were affected by wxIsXXX((wxChar)X) change. Note - passing a negative value to those c lib functions is undefined, and could return true on platforms using a lookup table, for example (might crash also?), which is what will happen when casting to char to ansii mode and a char is above 127
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-06 07:09:35 +00:00
Włodzimierz Skiba
32b1391332
Warning fixes to unused variables, int/wxChar keycode and other typecasting, not mixing 'type*' and 'type' variables in single line, IsEmpty to empty replacement etc.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-05 21:18:04 +00:00
Julian Smart
ea2d542c01
Worked around font setting problem for GTK+1 on some
...
distributions. This is a workaround for wxGrid only.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-20 16:44:17 +00:00
Włodzimierz Skiba
c6fbe2f0c8
Unnecessary const_ prefix removed (blindly).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 13:00:11 +00:00
Włodzimierz Skiba
1b941f2d31
Warning fixes for OpenWatcom.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-18 05:56:07 +00:00
Włodzimierz Skiba
8253f2e063
Warning fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 16:00:06 +00:00
Julian Smart
608754c4a3
Added SetScrollLinesX, SetScrollLinesY so apps can work around scrollbar
...
appearance problems by setting the scroll increment to e.g. 1
(Scrollbar problems caused by rounding errors - see comments in grid.cpp).
Also removed obsolete functions from reference, rearranged alphabetically
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-14 10:28:20 +00:00
Włodzimierz Skiba
42841dfcad
Warning fixes found under hardest mode of OpenWatcom. Seems clean in Borland, MinGW and DMC.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-11 16:30:43 +00:00
Robin Dunn
2d0c2e79c2
Fix for probably rare but potential refcount leak.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-27 20:46:44 +00:00
Robin Dunn
ca63e8e992
For editors and renderers the type registry takes precedence over the
...
default attr, so we need to register the new editor/renderer for the string
data type in order to make setting a default editor/renderer appear to
work correctly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-09 18:29:25 +00:00
Robin Dunn
71e60f703c
Since it is documented, changed GetOrCreateCellAttr from protected to
...
public so it can be used from wxPython.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-03 19:30:19 +00:00
Robin Dunn
5a9b107dd0
Don't set the size until after everything is initialized
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-02 18:35:45 +00:00
Vadim Zeitlin
faffacecc4
no real changes, just rewrote ChoiceEditor::EndEdit() in a slightly more concise/clear way
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-31 22:13:56 +00:00