Commit Graph

3231 Commits

Author SHA1 Message Date
Vadim Zeitlin
009605231a 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/branches/WX_2_8_BRANCH@55631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-09-15 00:19:41 +00:00
Vadim Zeitlin
f837582af4 fix a couple of harmless warnings reported by g++ 4.3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-25 14:39:11 +00:00
Vadim Zeitlin
60e82f36d3 optimize wxGrid::BlockToDeviceRect() to avoid iterating over all cells, it's enough to only iterate over the visible ones (#9527) [backport from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-23 18:47:48 +00:00
Vadim Zeitlin
e3959a350e don't reserve space for the icons if none are used, even if we're in icon view (#9472) [backport from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-23 17:53:37 +00:00
Julian Smart
1bf1c271b3 Generic caret no longer invisible on a dark background
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-22 10:34:32 +00:00
Vadim Zeitlin
ba7ef3304e paint the space remaining after the columns too in wxListHeaderWindow::OnPaint() (#9855)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-18 12:02:01 +00:00
Robin Dunn
9fae82ec59 Use WXUNUSED and give more explaination for the handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-10 20:52:26 +00:00
Robin Dunn
46205f5352 Avoid default child window focus behavior in generic wxListCtrl. Fixes #9563
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-10 00:25:05 +00:00
Julian Smart
307c2b253f Fixed scrolling problem where scrollbar was taken to be a valid child window
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-07 15:58:51 +00:00
Vadim Zeitlin
00a6c15a74 fix view rectangle calculation for the control with scrollbars (#9467)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-03 12:15:30 +00:00
Stefan Csomor
bc217fe9dc guarding all text methods against unset font
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-02 06:31:46 +00:00
Vadim Zeitlin
0babb5fa2a fix setting the initial value when it's not in the default 0..100 range [backport of r53550 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-30 21:53:26 +00:00
Julian Smart
c5c703efea Fixed wxTreebook tree control border style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 21:29:10 +00:00
Vadim Zeitlin
f89a4c2df5 fix changing size of merged cells (#9736)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-15 14:36:28 +00:00
Vadim Zeitlin
e95308c0ae set wxKeyEvent::m_uniChar correctly in the events generated by generic wxListCtrl (#4581)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-13 18:16:38 +00:00
Stefan Neis
1989629a23 Applied fix for wxGrid::ClearAttrCache (#9712).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-09 17:25:32 +00:00
Robin Dunn
01e2f8bbd1 Applied patch from Ticket #9563. Use just the rectangle of the widget with the focus when deciding if scrolling is needed, instead of the rect of the parent of the widget/child of the target window. This fixes some flickering when a panel of widgets is used inside the scrolled window, and also a total lack of scrolling if the focused widget is out of view but the upper-left corner of the panel is in view.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-09 01:38:08 +00:00
Stefan Neis
00687e20f5 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/branches/WX_2_8_BRANCH@54513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-06 16:29:58 +00:00
Vadim Zeitlin
84ef02fea0 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/branches/WX_2_8_BRANCH@54477 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-03 15:37:35 +00:00
Stefan Neis
c3f80e6c6b Don't force ColWidth to always grow for wxGridCellAutoWrapStringRenderer (#1798)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-29 15:15:19 +00:00
Vadim Zeitlin
8aba745d1d fix crash when vetoing label edit end due to a click outside of the text control (#8947) [backport of r51149 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-29 01:04:52 +00:00
Vadim Zeitlin
9bf4a4249a 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/branches/WX_2_8_BRANCH@54410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-28 23:14:35 +00:00
Vadim Zeitlin
c6b44b6c88 support wxDP_ALLOWNONE in generic wxDatePickerCtrl (#3164)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-28 18:58:07 +00:00
Stefan Neis
44de0d66d2 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/branches/WX_2_8_BRANCH@54397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-28 00:17:09 +00:00
Stefan Neis
b1e8cff3e2 Cleaned up/Fixed wxGrid{Cell,RowOrCol}AttrData::SetAttr, adding some comments.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-18 11:21:57 +00:00
Stefan Neis
c35a95c75d Fixed problems with reassigning the already assigned attribute, see #9567.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-15 17:26:31 +00:00
Stefan Neis
906ecfa15d Added missing screen update on deselection in wxGrid (ticket #4212, part1).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-15 14:10:41 +00:00
Vadim Zeitlin
924d65ee97 don't clear the list control when wxLC_[HV]RULES style is toggled (#4688)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-13 22:38:33 +00:00
Vadim Zeitlin
e81695562e fix reference counting problems with wxGridCellWithAttr (re-#9567)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-13 21:37:58 +00:00
Vadim Zeitlin
3a020570cd fix crash which happened if you called SetAttr(NULL) followed by SetAttr(attr) (#9567)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-12 23:58:19 +00:00
Vadim Zeitlin
c18b12458f don't refresh the current cell in SetCellHighlightROPenWidth() if it's invalid (#9523)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@54010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-07 02:09:03 +00:00
Vadim Zeitlin
2d164de6e1 don't leave current item index invalid after SetItemCount() (ticket #3720)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-06 22:55:23 +00:00
Vadim Zeitlin
ffbf09ac1e set focus to the control when it's clicked [backport of r53014 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-05 15:48:55 +00:00
Vadim Zeitlin
61afd24c7a revert r52151, apparently it doesn't work in 2.8 (see patch 1939287)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-11 19:50:42 +00:00
Robin Dunn
aae5ec8bbe Avoid asserts when wxDP_ALLOWNONE is used and the date is set to wxDefaultDateTime
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-09 22:15:55 +00:00
Vadim Zeitlin
ffdf14fca4 use WXDLLIMPEXP_FWD_CORE instead of WXDLLEXPORT to avoid newer mingw32 warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-12 02:31:04 +00:00
Vadim Zeitlin
21723122cb reset m_selection in DeleteAllPages() (patch 1922215); some cleanup of DoRemovePage() in trunk
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-04-06 15:14:25 +00:00
Julian Smart
be3a59f269 Added GetId() to Connect to ensure only the relevant events are processed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 15:49:08 +00:00
Vadim Zeitlin
a954b0dd20 fix crash when pressing Up key in empty combobox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-23 20:20:46 +00:00
Vadim Zeitlin
45ff30df68 implement wxSpinCtrl::Reparent() to properly reparent both the spin button and the text control part [backport of r52543 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-17 13:46:31 +00:00
Vadim Zeitlin
78de549990 use wxTE_PROCESS_{ENTER,TAB} with the wxGridCellChoiceEditor combobox (slightly modified patch 1906581)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52529 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-15 02:24:12 +00:00
Vadim Zeitlin
c0e61743de use extra parentheses to fix Borland problems with operator?:
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-09 12:59:26 +00:00
Vadim Zeitlin
60d02d5637 don't clear value index in SetStringValue() if the value is invalid (patch 1905695)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-02 14:29:38 +00:00
Vadim Zeitlin
2603810965 clip the text in report mode to prevent it from overflowing into the next column (patch 1898914)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 18:00:30 +00:00
Vadim Zeitlin
441be66059 translate "Copy URL" string in the popup menu (feature request 1803958)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 02:18:42 +00:00
Václav Slavík
e1f6fc8616 fixed strange focus order in wxTipDialog and set initial focus to the checkbox instead of read-only textctrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-22 18:37:18 +00:00
Vadim Zeitlin
70ba4e9681 fix redundant storage of current date both in wxCalendarCtrl and popup m_currentDate variable which resulted in multiple bugs, e.g. calendar didn't open at the current date value [ABI preserving version of r51843 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51846 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-16 15:54:55 +00:00
Vadim Zeitlin
be0d2b4b11 don't hardcode grey/white colours for non-MSW/Mac in InitColours(), use wxSystemSettings for all ports (even if some of them, such as wxGTK, still hardcode white for wxSYS_COLOUR_3DHILIGHT) (replaces patch 1883386)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-09 15:10:13 +00:00
Julian Smart
d646b8d6c7 Avoid scrolling parts of the screen that don't belong to us
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-07 14:15:45 +00:00
Vadim Zeitlin
918a6614fa another correction to indices used in StringToLines()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 23:43:58 +00:00