Stefan Csomor
63bcc669d8
fixing setting initial value under osx_cocoa for single line text controls
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62221 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-10-01 08:59:01 +00:00
Stefan Csomor
ada175836e
overriding to allocate an outer autorelease pool
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62216 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 18:25:33 +00:00
Stefan Csomor
6bd1764f27
fixing text matrix (dataview custom renderer showed problems) and reordering SaveGState
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 17:50:49 +00:00
Vadim Zeitlin
9a78f7856d
Fix harmless unused parameters warnings.
...
Also assert in the not implemented wxSound methods instead of silently
returning false.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 16:38:28 +00:00
Paul Cornett
f629f37a82
use proper signature for callback function
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62212 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 15:39:21 +00:00
Paul Cornett
d6d3b32302
build fix for wxUSE_CONSOLE_EVENTLOOP==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 15:38:53 +00:00
Paul Cornett
e33cd7e203
build fix for wxUSE_SOCKETS==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62209 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 15:38:23 +00:00
Stefan Csomor
3b2527c739
support backgroundcolor on osx_cocoa
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 15:20:30 +00:00
Julian Smart
b914917f2c
Applied #11260 (found a regression while checking in src/motif/menu.cpp with static code analysis tool cppcheck)
...
Marin Ettl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62203 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 06:53:35 +00:00
Vadim Zeitlin
7a8e90dd7a
Correct checks for conversion success in wxUniChar.
...
Correct the checks in wxUniChar::From/ToHi8bit() to check for conversion
success correctly as it always failed otherwise: wxMBConv::To/FromWChar()
conversion functions should return 2, not 1, when conversion of 2 characters
succeeded, even if one of them is a NUL.
Closes #11243 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-30 00:15:11 +00:00
Václav Slavík
023f27388f
fix message box icons sizes in wxWindowsArtProvider: they should respect client ID and not be 32x32 all the time
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-29 17:04:08 +00:00
Jaakko Salli
24985a9b5b
Removed dst buffer delete responsibility from wxAnyValueType::CopyBuffer(), clarified documentation regarding it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62198 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-29 13:38:20 +00:00
Julian Smart
d90443b8a2
#11259 : Correction for bad help button on OSX
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-29 07:19:38 +00:00
Julian Smart
8e43fc7776
Context menu now created in constructor; old context menu deleted when new one set.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-29 06:45:36 +00:00
Bryan Petty
c06de7d4c8
Forward port of r62191 to SVN trunk fixing regression from r37982 (missing ')'). Fixes #11257 .
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 23:44:34 +00:00
Julian Smart
7da33e042c
Moved WinPrinter from private.h to printdlg.cpp.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 16:15:34 +00:00
Paul Cornett
53c43278a9
linking fix for wxUSE_VALIDATORS==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62188 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 15:36:06 +00:00
Paul Cornett
2ee7e3c302
build fix for wxUSE_SOCKETS==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 15:35:48 +00:00
Julian Smart
2ae3afa09f
Applied #9076 (scrolling bars grow box fix)
...
By lillo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62179 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 07:06:14 +00:00
Jaakko Salli
30fad74e44
Do not use wxS in array of const wxChar*
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62178 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 06:40:26 +00:00
Jaakko Salli
9370ec6a3b
wxUSE_THREAD -> wxUSE_THREADS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 06:25:44 +00:00
Julian Smart
1690c2ce36
Attempt at compile fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-28 06:07:43 +00:00
Jaakko Salli
cd4b15e523
Do not process editor control events when propgrid event is currently being processed. Doing otherwise could lead to a crash if application is doing something time-consuming (such as displaying a message box) in the event handler.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62169 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 14:39:03 +00:00
Jaakko Salli
644b283d6a
Store property name and value in wxPropertyGridEvent, keep track of live event instances, and clear property/grid information in them in wxPropertyGrid dtor. This allows application to relay events for later processing without fear of losing most relevant information within.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 14:35:02 +00:00
Jaakko Salli
9867e3e498
wxFontProperty: Added support for wxFONTFAMILY_TELETYPE and wxFONTFAMILY_UNKNOWN, moved Family child-property to the back.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-27 11:44:25 +00:00
Julian Smart
906cb3f119
Applied modified #10655 (Added Cookie (receive) support to wxHTTP)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62160 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 19:47:23 +00:00
Stefan Csomor
b0a9bfc8b8
adding ProcessPendingEvents as ProcessIdle doesn't call it anymore, closes #11132
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 18:50:33 +00:00
Vadim Zeitlin
0b2a23c48d
No real changes, just small cleanup in wxMac wxDVC.
...
Use wxDC{Pen,Brush}Changer classes instead of setting/restoring pen and brush
manually.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:44 +00:00
Vadim Zeitlin
ddb44248a6
Fixed wxDataViewCtrl::Set{Foreground,Background}Colour() to work under GTK too.
...
Implement DoApplyWidgetStyle() in wxGTK version of wxDataViewCtrl to propagate
the main window style to the GtkTreeView which is what the user mostly sees.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:30 +00:00
Vadim Zeitlin
bb58fa37cd
Don't hard code white background colour in generic wxDataViewCtrl.
...
wxDataViewMainWindow::OnPaint() always used the white brush to erase the
control background which was wrong, change it to use the background colour of
the control.
Also add tests for setting wxDataViewCtrl foreground and background colours to
the dataview sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:19 +00:00
Vadim Zeitlin
0534259ab8
Move wxControl::GetCompositeControlsDefaultAttributes() from MSW to common.
...
This function is not MSW-specific and should be used in generic implementation
of controls such as wxListCtrl, wxTreeCtrl and wxDataViewCtrl. Even if it is
needed by MSW only now, move it to the common code to avoid #ifdefs in these
controls code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:43:06 +00:00
Vadim Zeitlin
7fc1b0c7ca
Fix harmless warning about -1 to WPARAM conversion.
...
This was introduced by the last change to this file in r62058.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:42:56 +00:00
Stefan Csomor
715824d58d
reducing key event handling complexity
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 16:39:33 +00:00
Vadim Zeitlin
1d8cdcf2e3
Don't use invalid pen in wxDCImpl::DoGradientFillConcentric().
...
The old code stored the original colour of m_pen before changing it and
restored it on exit but this didn't work if the pen was invalid to start with.
Just store the pen itself instead, this works in any case.
Closes #11235 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:41 +00:00
Vadim Zeitlin
bbb8a1aad6
Use checked bitmap for menu items under Vista.
...
The normal (unchecked) bitmap was always used for the menu items under Vista,
fix this and do use the checked bitmap if needed.
Closes #11244 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:32 +00:00
Vadim Zeitlin
bbb0ff36db
Fix another off-by-1 bug in wxMBConv::ToWChar().
...
When converting a fixed number of characters we need to take any NULs inside
the buffer being converted into account for our return value -- but this
wasn't done and converting 2 characters 'x' and '\0' returned only 1, even if
the length 2 was explicitly specified.
Fix this bug and add a unit test checking for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:31:27 +00:00
Vadim Zeitlin
3396739da1
Refactor wxStyledTextCtrl to share common file save/load code.
...
Keep the code for saving and loading text contents from files in a single
place instead of doing it differently in wxTextCtrl and wxStyledTextCtrl.
This required adding Set/GetValue() methods to wxTextAreaBase just so that its
DoLoad/SaveFile() could use them, even if they are the same as wxTextEntryBase
methods and are overridden in wxTextCtrlBase to be implemented in terms of the
latter.
Notice that wxRichTextCtrl might need to be refactored to use this code too in
the future.
Also notice that this reverts the change of r62081 which replaced SetValue()
with ChangeValue() in DoLoadFile() as wxTextAreaBase only has SetValue() and
it's not worth adding ChangeValue() to it too just to preserve this recent
change in behaviour.
Closes #10715 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62139 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:26:16 +00:00
Vadim Zeitlin
65702d2fe9
Compilation fix for non-MSW: don't use ProcessCommand().
...
wxControl::ProcessCommand() is MSW-only, use HandleWindowEvent() to fix
compilation under Unix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62138 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 13:26:03 +00:00
Stefan Csomor
ddbc8ac9ca
cleaning up key handling, closes #10406
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62137 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 10:39:26 +00:00
Jaakko Salli
a1d5aa9361
Have wxComboCtrl generate wxEVT_COMMAND_COMBOBOX_DROPDOWN and wxEVT_COMMAND_COMBOBOX_CLOSEUP events
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-26 09:15:29 +00:00
Stefan Csomor
f4c24d3da4
using native key handling, closes #10406
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 18:53:38 +00:00
Stefan Csomor
81eaa4dab2
using common notification mechanism for selection changes (key or mouse), see #10406
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 16:57:08 +00:00
Julian Smart
b80fdc0299
Raise the scrollbars on reparenting (part of patch #9076 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62131 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 16:15:04 +00:00
Julian Smart
b78ffab030
Applied #8804 ([wxMac] wxSpinCtrl behaviour)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 15:25:25 +00:00
Julian Smart
7291222828
Applied #8697 (Improve error detection for MacFindFont )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 13:14:31 +00:00
Julian Smart
476a319a8f
Applied #11238 : Wrong text positioning if fonts with different Ascent/Descent ratio are on the same line
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 11:14:11 +00:00
Julian Smart
58d4ed8a11
Applied #10007 : SetWindowGroupParent hangs in Mac Carbon dialog.cpp
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62118 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 10:11:24 +00:00
Julian Smart
1508fcaccd
Applied #10753 : WarpPointer() for Mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 09:57:41 +00:00
Julian Smart
51c72a7b56
Applied #9011 : Native wxListCtrl::HitTest on OS X
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 09:02:04 +00:00
Julian Smart
8b558f1228
Applied #9520 : Fix to allow repeated use of wxFileDialog object
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-09-25 07:51:50 +00:00