Commit Graph

471 Commits

Author SHA1 Message Date
Vadim Zeitlin
02f3ee3d10 remove the now unused GetScroll[XY]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 13:36:28 +00:00
Vadim Zeitlin
d8210cd1b3 remove automatic selection of the current row/column in row/column selection mode when the current cell is changed using the mouse, this is inconsitent with both cell selection mode and the keyboard behaviour in row/column selection mode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 08:45:29 +00:00
Vadim Zeitlin
32b4e9ecd7 select current column when Ctrl-Space is pressed; the current row when Shift-Space is and everything on Shift-Ctrl-Space
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 08:25:47 +00:00
Vadim Zeitlin
87c819f9c9 improve display of hints during column move (#9884)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 00:33:39 +00:00
Vadim Zeitlin
7d277ac0f9 don't steal focus back to wxGrid when it hides an editor in the result of losing it (#9844)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 00:28:15 +00:00
Vadim Zeitlin
1eab965913 fix drawing of the column move hint when the grid is scrolled to the right (#9776)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 00:19:41 +00:00
Vadim Zeitlin
54181a3329 fix repaining of highlight for merged cells (#9718)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 00:11:49 +00:00
Vadim Zeitlin
72b0a1deec we don't need to round up the best/fitting grid size to a multiple of scroll units any more now that scrollbars behaviour is really correct
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 23:10:23 +00:00
Vadim Zeitlin
ace8d849d4 need to AdjustScrollbars() after changing the virtual size in CalcDimensions()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 23:06:36 +00:00
Vadim Zeitlin
69367c566e move the grid-specific workaround for scrollbar hysteresis to wxScrollHelper itself, the scrollbars now should not only appear but also disappear correctly during resizing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 22:44:08 +00:00
Vadim Zeitlin
f1ff7df032 don't use SetScrollbars() as this forces the grid virtual size to always be the multiple of scroll line size which is simply wrong, the grid doesn't need to be that big (#3800)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-14 21:09:31 +00:00
Vadim Zeitlin
a6b2078ddd fix changing size of merged cells (#9736)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 14:36:28 +00:00
Stefan Neis
1506cc6641 Applied fix for wxGrid::ClearAttrCache (#9712).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-09 17:24:48 +00:00
Stefan Neis
ad7502d861 Make AutoSizing in wxGrid's SetCol/RowSize work and use it from corresponding
AutoSize functions. This fixes #4107.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-06 16:30:51 +00:00
Vadim Zeitlin
8a3608697f don't ignore changes of empty string to 0 or vice versa in float grid cells (#2802)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-03 15:37:35 +00:00
Vadim Zeitlin
b64845917a don't call SetInsertionPointToEnd() on read-only combobox in wxGridCellChoiceEditor::Reset() neither (this had been already fixed for StartEdit() before) (#8843)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-29 00:19:44 +00:00
Vadim Zeitlin
d035e423e4 don't ignore changes of empty string to 0 or vice versa in float grid cells (#4764)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-28 23:14:35 +00:00
Vadim Zeitlin
053ac76fa2 deprecate wxTE_AUTO_SCROLL as it's always on in the ports which support it anyhow (#2176)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-28 18:18:54 +00:00
Stefan Neis
5b7668004b Restricted column/row resizing in cell window to left button for consistency
with label windows and because ending the resize is only handled in
        case of LeftUp() (Fixing #4212).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54395 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-28 00:10:20 +00:00
Stefan Neis
96ca74cdda Cleaned up/Fixed wxGrid{Cell,RowOrCol}AttrData::SetAttr, adding some comments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-18 11:24:34 +00:00
Stefan Neis
d1b021ffb9 Fixed problems with reassigning the already assigned attribute, see #9567.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54244 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-15 17:24:22 +00:00
Stefan Neis
6fb1c1cbcf Added missing screen update on deselection in wxGrid (ticket #4212, part1).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54238 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-15 14:11:17 +00:00
Stefan Neis
7d2c43731b Applied ticket #1230 (patch to SetColFormatCustom), setting both editor and
renderer when selecting a specific format instead of just the renderer.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-15 12:42:36 +00:00
Vadim Zeitlin
6f292345cf fix reference counting problems with wxGridCellWithAttr (re-#9567)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-13 21:37:58 +00:00
Vadim Zeitlin
a70517e979 fix crash which happened if you called SetAttr(NULL) followed by SetAttr(attr) (#9567)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-12 23:58:19 +00:00
Vadim Zeitlin
731330ec4c optimize wxGrid::BlockToDeviceRect() to avoid iterating over all cells, it's enough to only iterate over the visible ones (#9527)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-12 23:49:35 +00:00
Vadim Zeitlin
c1bc8d9f92 don't use deprecate SetClippingRegion(wxRegion)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-09 15:52:04 +00:00
Vadim Zeitlin
76c66f1953 don't refresh the current cell in SetCellHighlightROPenWidth() if it's invalid (#9523)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-07 02:09:03 +00:00
Paul Cornett
04ee05f92a fix a huge number of build errors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-17 18:26:00 +00:00
Vadim Zeitlin
7999b83011 use wxTE_PROCESS_{ENTER,TAB} with the wxGridCellChoiceEditor combobox (slightly modified patch 1906581)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:24:12 +00:00
Vadim Zeitlin
1edce33f7e override SetDropTarget() in wxGrid to associate it with wxGridWindow as this is what things tend to be dropped on (patch 1903103)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52145 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 17:19:42 +00:00
Vadim Zeitlin
f954984155 check whether the grid is fully created in Refresh() (fixes a crash under Mac); refactored members initialization into a new InitVars() method to avoid duplication and ensure that they're always initialized (slightly modified patch 1901366)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52122 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 17:17:28 +00:00
Vadim Zeitlin
2eafd712f1 another correction to indices used in StringToLines()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 23:43:58 +00:00
Vadim Zeitlin
696f3e9dd0 correct indices used in StringToLines() (modified patch 1882985)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 21:06:17 +00:00
Vadim Zeitlin
c1841ac2e3 don't use negative sizes for row/column labels subwindows to avoid GTK warnings (patch 1878512)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 14:11:24 +00:00
Václav Slavík
ba808e1178 call Create from wxGrid non-default ctor instead to ensure both methods of creation are in sync (they drifted apart already)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-21 17:18:47 +00:00
Václav Slavík
760be3f7cb wxGrid focus handling fixes:
- don't allow focus in helper labels subwindows
- draw selection in different colour when not focused
- hide cursor/highlight when not focused



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-21 17:11:49 +00:00
Robert Roebling
71cf399ff0 Playing with wxgrid, adding optionnally native columns labels
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-20 15:05:03 +00:00
Václav Slavík
a01cfc082f ensure that wxGrid::AutoSizeColumn/Row() never sets column/row size smaller than the minimal size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-24 17:53:06 +00:00
Stefan Csomor
9553702e46 mac cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-20 16:21:04 +00:00
Robert Roebling
2f26ad2872 Use renderer to draw checkmark
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-17 13:52:37 +00:00
Robert Roebling
ee2d93aed0 Use wxBORDER_NONE for wxGridCellTextEditor on all platforms, not just wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-17 12:37:35 +00:00
Vadim Zeitlin
521ff07eb1 don't capture the mouse when just moving it in the grid (tentative replacement for the patch 1779923)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-16 23:55:57 +00:00
Vadim Zeitlin
0aa2e24b97 don't call SetInsertionPointEnd() on a read-only combobox (patch 1828963)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49782 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-09 20:31:50 +00:00
Vadim Zeitlin
62d249cb22 don't store NULL attribute in wxGridRowOrColAttrData::SetAttr() unnecessarily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-21 21:27:56 +00:00
Julian Smart
b93aafaba9 Avoid a crash due to OnSize being called before initialisation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-11 08:32:57 +00:00
Vadim Zeitlin
1d5fda5dc6 extract setting max length in wxGridCellTextEditor::DoCreate() and call it from wxGridCellAutoWrapStringEditor::Create() to ensure that it honours the base editor parameters
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-01 22:05:12 +00:00
Vadim Zeitlin
767e083562 pass wxStrings directly to wxFAIL_MSG, there is no need to use c_str()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-22 01:38:40 +00:00
Robert Roebling
ad2633bd96 Compilo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-05 10:16:40 +00:00
Robin Dunn
1b3b96d84c ensure there is a current cell before using it to try and get width/height
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 00:15:42 +00:00