Julian Smart
b30661fdd0
Don't select all if there is nothing to select.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 11:43:08 +00:00
Julian Smart
fc6d9d0d45
Don't delete previous character when pressing Del at end of buffer.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 09:51:53 +00:00
Stefan Csomor
a533f0504f
safe degradation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63370 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 08:32:42 +00:00
Kevin Ollivier
20559592cb
Rebake after DND changes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 06:08:31 +00:00
Kevin Ollivier
7dab9892b3
Refactor DND code into Carbon and Cocoa parts, and provide a basic OS X Cocoa implementation for wxDropSource::DoDragDrop.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 05:31:31 +00:00
Kevin Ollivier
803e2857b3
Add sanity check on the item number.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-03 05:22:13 +00:00
Julian Smart
205a1ad98f
Fixes for incorrect selection, extra newline insertion when undoing deletion of selection,
...
incorrect SetScrollbar optimization, insufficient refresh for operations on last line,
HasCharacter/ParagraphAttributes bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-02 22:19:33 +00:00
Jaakko Salli
7261371b17
Do not clear property selection when adding new properties, but instead correct positions of any open editor controls.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-02 15:19:41 +00:00
Julian Smart
8c0f078408
Don't crash if there's no top window.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-02 11:23:31 +00:00
Julian Smart
76d7fc2904
Simplify SetSelectionRange and make consistent with SetSelection.
...
Fix a bug that returns true for character and paragraph style tests if no characters or paragraphs were found.
Fix SetSelection to position caret at end.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 10:45:51 +00:00
Stefan Csomor
44f97e649a
adapting to new API variant
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63343 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 08:23:59 +00:00
Kevin Ollivier
2fea6972c7
nschars is never used for the wxEVT_CHAR case, so don't assign it a different value for this case.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 01:20:15 +00:00
Kevin Ollivier
98182acce8
Use the correct type to fix Tiger compilation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-02-01 00:48:23 +00:00
Jaakko Salli
c05fe84146
Added nominal wxPG_PROP_READONLY support for editor controls other than wxTextCtrl-based ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 18:15:17 +00:00
Jaakko Salli
8669431add
Added command to set wxPG_PROP_READONLY in the propgrid sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 18:14:24 +00:00
Jaakko Salli
34c921fc4d
Fixed value column rendering for properties which do not create editor control when selected
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 18:13:13 +00:00
Stefan Csomor
f0a9f45635
avoiding catching incorrect shortcuts, see #11676
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 14:42:51 +00:00
Stefan Csomor
5aa6ea933f
supporting clipboard command shortcuts on osx_cocoa as well, simplifying code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-31 11:01:53 +00:00
Vadim Zeitlin
96e790a567
Disable wxUSE_FSWATCHER under Unix if neither inotify nor kqueue is available.
...
Don't define wxUSE_FSWATCHER as 1 in configure if we can't implement it.
Also add a check to wx/unix/chkconf.h to verify that we didn't end up with an
inconsistent configuration somehow.
Closes #11670 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-29 13:07:26 +00:00
Michael Wetherell
1682f86006
Fix for file length fixup.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 21:46:18 +00:00
Stefan Csomor
f135deaa90
storing modal returncode correctly for carbon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 13:49:16 +00:00
Stefan Csomor
3039af96f6
make sure modality is reflected correctly when rerouted from window-modal to app-modal
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 13:48:35 +00:00
Vadim Zeitlin
aedb388157
Disable wxUSE_OWNER_DRAWN for wxUniv to fix the build.
...
wxMenuItem in wxUniv doesn't even use wxOwnerDrawn but linking in
ownerdrwcmn.cpp is enough to break the DLL build of wxUniv at least under MSW
as it references symbols normally defined in msw/ownerdrw.cpp which is not
part of wxUniv.
Fix this by simply disabling wxUSE_OWNER_DRAWN under wxUniv for now as it's
unused anyhow.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 12:07:16 +00:00
Stefan Csomor
86c3808c28
adding window-modal message box sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 09:54:51 +00:00
Stefan Csomor
0aeac464d1
setting correct alertType
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63292 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 08:28:52 +00:00
Kevin Ollivier
bfa92264c0
Get ShowWindowModal behavior working under OS X Cocoa for file, dir and message dialogs.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-28 04:06:23 +00:00
Vadim Zeitlin
896576e31e
Never block in wxSocket::Peek().
...
Peek() is not expected to block so ensure that it doesn't, independently of
the currently used socket flags, by using wxSOCKET_NOWAIT.
See #11528 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 23:04:26 +00:00
Jaakko Salli
fb9521b8f5
wxPGProperty::GetHintText() function body was missing 'inline' keyword
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 21:09:41 +00:00
Jaakko Salli
13bb4e59af
Fixed wxPGGlobalVars export declaration
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 17:44:51 +00:00
Stefan Csomor
d5f46cddf1
optimizing creation of glcontexts, less flicker
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 14:36:39 +00:00
Jouk Jansen
06b4070d7c
Fixes for compilation on OpenVMS platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 14:24:06 +00:00
Vadim Zeitlin
5cb3a695e0
Add wxTreeCtrl::SelectChildren() method.
...
Add MSW and generic implementation, documentation and change to the sample
showing it.
Closes #11620 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 12:43:39 +00:00
Vadim Zeitlin
6b2f55531a
Try to prevent users from forgetting to include wx.rc from their resources.
...
Document that some of the standard cursors are defined in this file.
Also add a (hopefully) helpful assert if loading one of such cursors failed.
Closes #11424 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 12:39:41 +00:00
Vadim Zeitlin
6900a89752
Don't pass logs at unknown levels to wxLog::DoLogRecord() from wxLogGui.
...
This results in an assert in DoLogText() which is not implemented in the base
class but ends up being called as DoLogTextAtLevel() doesn't know how to
handle non-standard log levels otherwise. This assert happened if you simply
called wxLogMessage(wxLOG_User, ...) in the program.
Just ignore messages at unknown log levels instead in wxLogGui, by definition
it can't handle them anyhow.
See also r63167.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 12:33:34 +00:00
Vadim Zeitlin
c9980eb871
Another compilation fix for wxMSW without PCH.
...
Need to include <commctrl.h> as we use HIMAGELIST and related functions now.
See #11595 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 12:33:01 +00:00
Vadim Zeitlin
32b8e70161
Implement RequestUserAttention() for wxOSX/Cocoa.
...
Simply use NSApplication:requestUserAttention to do it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 12:16:44 +00:00
Vadim Zeitlin
9d043a9227
Compilation fixes for PCH-less build after ownerdraw-refactor branch merge.
...
Forward declare more classes, in particular use tagRECT which can be forward
declared, instead of RECT typedef in public headers.
Also include more header in #ifndef WX_PRECOMP case.
See #11595 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 09:01:13 +00:00
Vadim Zeitlin
a4a0bff166
Avoid g++ warning about unhandled wxFONTFAMILY_XXX value in a switch.
...
Add wxFONTFAMILY_UNKNOWN case to the switch as it will allow us to be warned
if we add a new family in the future and forget to update this code to take it
into account.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 09:01:08 +00:00
Vadim Zeitlin
0369a9fedf
No real changes, just don't initialize extern variable to avoid g++ warning.
...
g++ warns about initialized extern variables so separate the declaration from
the initialization to avoid this warning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 09:01:02 +00:00
Vadim Zeitlin
108694fe19
Make wxWindow::MSWGetThemeColour() const.
...
There doesn't seem to be any reason for this method to not be const.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63269 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 09:00:55 +00:00
Vadim Zeitlin
6c0487907a
Compilation fix for wxUniv.
...
We need explicit casts to wxWindow in wxWindowMSW code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-26 09:00:48 +00:00
Stefan Csomor
4d572a2cac
simplifying code, removing outdated API
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63266 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-25 22:27:42 +00:00
Stefan Csomor
bdb5b32a58
adding note for correct wheel params
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-25 22:24:49 +00:00
Julian Smart
deeb0a89b9
Added EVT_WIZARD_PAGE_SHOWN event for wxWizard, to give apps
...
a chance to initiate processing after a page is presented.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-25 18:48:21 +00:00
Stefan Csomor
83ffdd7111
better wheel support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-25 17:12:53 +00:00
Stefan Csomor
1814b27e45
make sure we can override GetModality
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-25 17:12:07 +00:00
Stefan Csomor
f44af1dc9e
adding wxWindow::Show in order to make the sheet showing its children as well
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-25 13:27:59 +00:00
Stefan Csomor
f0d454bd6a
fixing building on iphone
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-25 13:26:36 +00:00
Jouk Jansen
55f375a584
Update compile support for OpenVMS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-25 11:32:19 +00:00
Kevin Ollivier
72247c2f53
Fix mistake, though this assert is unfortunate since now FindString("whatever") will always assert under OS X Cocoa, even when it would find and return the position correctly.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-01-24 23:28:32 +00:00