Commit Graph

23922 Commits

Author SHA1 Message Date
Vadim Zeitlin
2d2b68baa3 use GlobalPtrLock (modified to allow not initializing it if the ptr is NULL) in wxGetPrinterDC() to avoid /Wp64 warnings and also make code safer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-28 00:41:38 +00:00
Julian Smart
3dce337969 Take into account explorer associations and CurVer when finding the command to execute.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 18:07:30 +00:00
Vadim Zeitlin
7c9f643a85 don't attempt to create 0*0 bitmaps in GetBuffer() (patch 1899643)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52152 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 18:03:12 +00:00
Vadim Zeitlin
f9f37ee220 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/trunk@52151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 18:00:30 +00:00
Vadim Zeitlin
886274c6f9 don't track handlers connected to this object itself (patch 1899730)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 17:54:44 +00:00
Vadim Zeitlin
c50c6fb23b add SetNativeTheme() (slightly modified patch 1884553)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 17:46:14 +00:00
Vadim Zeitlin
28dd9a9d03 translate "Copy URL" string in the popup menu (feature request 1803958) (should have been part of r52131 but somehow wasn't committed)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 17:45:15 +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
5a0b1008ff forward WM_HELP from the buddy control to the main one in order to make context sensitive help work when the text part of wxSpinCtrl is clicked with "?" cursor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 15:08:54 +00:00
Vadim Zeitlin
18868d62a2 don't hide the TLW being deleted unless there any other *visible* TLWs remaining (bug 1902632)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52142 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 14:49:46 +00:00
Stefan Csomor
0d0b1695e0 applying patch 1873285
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-27 08:11:33 +00:00
Robert Roebling
5e9b723f6d restore wxComboBox's behaviour of reacting to <ENTER>
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 20:09:23 +00:00
Julian Smart
6c0ea5130f Don't take the previous paragraph style when deleting paragraph marker
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 17:59:06 +00:00
Vadim Zeitlin
3f49efdba9 /Wp64 warnings fixes (mostly simply use wxUIntToPtr/wxPtrToUInt() instead of C casts)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52125 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 17:55:19 +00:00
Julian Smart
c40766261b Corrected GetFontAttributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 17:55:19 +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
Paul Cornett
8d788b830c initialize m_miniTitle, fix button press detection on caption area,
remove support for obsolete wxTINY_CAPTION styles

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 17:14:17 +00:00
Julian Smart
3638bb5c0d Fixed [ 1775674 ] Invalid color in picker dialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52120 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 15:27:20 +00:00
Julian Smart
063dbace7b Fixed bug [ 1714813 ] ApplyXXXToSelection remove style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 14:55:42 +00:00
Julian Smart
11f0898b7d Removed redundant Init call (bug 1724495)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 14:26:18 +00:00
Julian Smart
ff24aeb7b1 Fixed [ 1764805 ] wxSeek with negative offset fails on WinCE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 14:15:35 +00:00
Julian Smart
62381daaaf Fixed bug [ 1870906 ] There are few problems selection text by mouse in RichTextCt
Fixed bug [ 1870265 ] window does not scroll after pasting text
Fixed bug [ 1870264 ] wxTextUrlEvent after click in empty space
Fixed bug [ 1806479 ] wxRichText URL issues (URL event triggered when clicking on blank space)
Fixed bug [ 1806953 ] wxRichTextControl::AddParagraph() is broken
Fixed a bug in SelectWord causing bad selections.
Added Ctrl+Backspace word deletion.



git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 12:54:01 +00:00
Paul Cornett
81b0235f13 update GTK size hints when window decorations change
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 06:14:32 +00:00
David Elliott
dee851ec9f * When hiding a wxWindow make sure that none of its subviews are the first
responder.  If one of them is, make it resign. If it refuses, don't hide
    the window and return false.
*   When showing a wxWindow that has been hidden, schedule a reconfiguration
    of the key-view loop so that tabbing will work correctly.
*   Add some comments about why wxCocoa does what it does.

This makes the widgets sample much more usable.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-26 05:57:42 +00:00
Václav Slavík
30724d046d compilation fix for pch-less build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-25 15:35:28 +00:00
Vadim Zeitlin
ed8c374dd7 check that we have a non-empty keyword in KeywordSearch() (replaces patch 1899972)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-25 03:01:47 +00:00
Vadim Zeitlin
000eea7a2e reset s_bInAssert in wxDoOnAssert() in an exception-safe way (replaces patch 1900613)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-25 02:51:44 +00:00
Vadim Zeitlin
d238d403f1 implement support for display enumeration under WinCE (patch 1890936)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52077 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-25 02:45:27 +00:00
Vadim Zeitlin
fa9cd5d361 check for wxDF_UNICODETEXT and not only wxDF_TEXT in CanPaste(), this is necessary under WinCE (patch 1891003) and shouldn't hurt elsewhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52076 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-25 02:23:45 +00:00
Vadim Zeitlin
7eee360775 correct radio button best size calculation under CE (was too small by 1 pixel vertically) (modified patch 1891008)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52075 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-25 02:21:18 +00:00
Vadim Zeitlin
74052fe83b added more includes of wx/msw/dc.h needed since r52054 for wxMSW compilation
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52074 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-25 02:13:36 +00:00
Vadim Zeitlin
0d801d09f9 use wxLogLastError() to show the last error value when reporting failure to create a control (replaces patch 1890940)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 23:38:57 +00:00
Vadim Zeitlin
6b4296f7fb always return 471 from wxApp::GetComCtl32Version() under CE as its commctrl.dll includes all comctl32.dll v4.71 functionality (replaces patch 1890933)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 23:28:43 +00:00
Vadim Zeitlin
2036bdd303 don't define, nor use, LVS_EX_LABELTIP under WinCE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 23:20:27 +00:00
Vadim Zeitlin
47493bc09f compilation fixes for Unicode build in !TIF_PLATFORM_CONSOLE case (fixes WinCE compilation)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 23:05:45 +00:00
Vadim Zeitlin
ecb22f9e0a WinCE adjustments
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 23:04:57 +00:00
Vadim Zeitlin
704c499e86 don't use hook code for positioning message box under WinCE, it doesn't compile there
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 22:59:58 +00:00
Vadim Zeitlin
d9fda37ba1 restore checks for SM_SWAPBUTTON, it is not defined in WinCE SDK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 22:59:07 +00:00
Vadim Zeitlin
025f7d775c don't include wx/msw/dc.h from wx/msw/private.h, this results in circular inclusion of wx/stream.h from wx/filefn.h before wxFileOffset is defined which results in compilation errors under WinCE and is bad/confusing anyhow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 22:32:23 +00:00
Václav Slavík
8b4b586ce9 fixed wxListCtrl::RefreshItem(s) - it didn't update anything before
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 17:07:13 +00:00
Vadim Zeitlin
21bf81db6f revert r51647 change as it broke the code overriding AcceptsFocusFromKeyboard() to prevent the user from tabbing into a window; simply override it at wxControlContainer too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-24 13:58:38 +00:00
Stefan Csomor
f3b2b3e920 under 10.4 there are some theme brushes represented as pure grayscale, convert them to the rgb components accordingly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-23 14:48:21 +00:00
Stefan Csomor
d5af92fdd9 adding comments for debugging visibility differences between native and wx state
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-23 09:53:42 +00:00
Stefan Csomor
18d01215a1 Use native visibility information at this point, as it might trigger during a sequence of hiding/showing events
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-23 09:46:26 +00:00
Stefan Csomor
ef53a8e814 avoiding double firing of visibility state changed for certain controls like multiline text controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-23 09:45:10 +00:00
Vadim Zeitlin
841e47cfd7 remove MacIsReallyShown() as we now have public IsShownOnScreen() doing exactly the same thing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-23 00:19:18 +00:00
Robin Dunn
975bcfda0d Add MacHideApp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52009 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-22 20:37:43 +00:00
Václav Slavík
6fba6c78a4 fixed wxBitmapButton to use focus and hover bitmaps correctly; also fixed tons of misnomers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-22 19:59:36 +00:00
Václav Slavík
66470d87a3 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/trunk@52001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-22 18:44:38 +00:00
Julian Smart
983ddcb9d6 Fixed IsShownOnScreen() for Mac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-22 14:12:16 +00:00