Commit Graph

40251 Commits

Author SHA1 Message Date
Vadim Zeitlin
006988d24f fix GetTLWParentIfNotBeingDeleted() to work correctly even if an intermediate non-TLW parent is being deleted, it should still return the TLW parent and not NULL in this case, otherwise we'd crash when a button child of a panel being deleted is current temporary default button [backport of r51570 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51571 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-06 14:20:22 +00:00
Julian Smart
bc11931c4e Strip menu codes from page label for consistency with other platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51558 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-05 09:12:12 +00:00
Vadim Zeitlin
887f53ddf6 length passed to WideCharToMultiByte() was off by one in the last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51557 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-05 07:24:59 +00:00
Vadim Zeitlin
9b0956b277 set eol-style LF on even more Unix-only files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51550 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-04 17:05:54 +00:00
Vadim Zeitlin
f3282c3e51 set eol-style LF on more Unix-only files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-04 16:58:38 +00:00
Vadim Zeitlin
a129b6d15a use BSTR length to also deal with NULs inside BSTRs correctly in Unicode build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-04 08:08:57 +00:00
Vadim Zeitlin
6b5f2e44c1 use WideCharToMultiByte() instead of wcstombs() to deal with BSTRs containing NULs (modified patch 1886062)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-04 08:04:39 +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
Vadim Zeitlin
c0d550ed92 correct indices used in StringToLines() (modified patch 1882985)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51532 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 21:06:17 +00:00
Vadim Zeitlin
4e370c7f2a set svn:eol-style to LF [backport of r50845 from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51530 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 17:08:41 +00:00
Vadim Zeitlin
fcaa9a6e30 build fix for wxUSE_INTL==0 (patch 1878908)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 14:12:45 +00:00
Vadim Zeitlin
3aac5b45ea 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/branches/WX_2_8_BRANCH@51522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 14:11:24 +00:00
Vadim Zeitlin
807eac818a make XPM data const to avoid warnings from mingw 4.0 (patch 1874995)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51519 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-03 13:48:11 +00:00
Václav Slavík
285900728d fixed wxTextCtrl to not process clipboard events twice if there's a custom wxEVT_COMMAND_TEXT_* handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51504 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-02 14:07:19 +00:00
Michael Wetherell
f8f925e0a9 Compile fix when 2.6 compatibility on and --without-zlib.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51495 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-01 16:44:56 +00:00
Julian Smart
8b2a6dfc24 Added a reset-buffer event to give an opportunity to set the default initial style
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-01 14:13:51 +00:00
David Elliott
7e27b3c853 Allow wxTopLevelWindowCocoa::SetDefaultItem(NULL)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-31 19:17:42 +00:00
Vadim Zeitlin
2902ec6116 return the result of ProcessEvent() from ProcessCommand() instead of always returning true unconditionally
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-30 21:31:03 +00:00
Julian Smart
349556aba5 Added checks to encoding conversion to avoid crash
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-30 17:02:53 +00:00
Vadim Zeitlin
24ca0acd57 corrected comment: wxSingleInstance is not for Win32 only since about 10 years
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51451 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 23:11:55 +00:00
Julian Smart
ccaff46ee6 Corrected wxSetCursor documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 11:18:03 +00:00
Julian Smart
8012cfb11f Fixed global cursor setting on Mac, which fixes busy cursor and context help cursor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-29 11:01:27 +00:00
Julian Smart
fbd42050d5 Take basic style into account when applying style sheet
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 17:58:43 +00:00
Julian Smart
a5e384ca8d Take basic style into account when showing style under cursor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51413 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 17:34:36 +00:00
Václav Slavík
a36c664252 Fixed wxCURSOR_HAND to map to GDK_HAND2 and not GDK_HAND1, for consistency with other applications
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 15:26:44 +00:00
Vadim Zeitlin
da79097cbe only define wxEventPtr in wxBase, not wxCore
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-27 12:57:04 +00:00
Vadim Zeitlin
38d05c1011 don't fail in wxTransferStreamToFile if file size is exact multiple of 4KB (bug 1835918)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-26 23:23:09 +00:00
Vadim Zeitlin
29f1f4864e delete the event object in ProcessPendingEvents() even if the handler throws an exception (bug 1836010)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51391 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-26 23:18:30 +00:00
Vadim Zeitlin
57f27af169 fix assert when using owner-drawn menu items with the newest (Vista) SDK [backport from trunk]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-26 01:38:06 +00:00
Julian Smart
1ca0f7a249 Corrected image saving to HTML
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-25 16:38:18 +00:00
Julian Smart
52bd35f359 HTML output corrections
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-25 15:02:44 +00:00
Julian Smart
b97ff943c6 Image objects should load and save attributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-25 12:10:56 +00:00
Julian Smart
123cc0e9d7 Fixed a bug in HasAlignment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51368 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-25 09:16:01 +00:00
Julian Smart
c6f158dfbb Update caret in SetInsertionPoint
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 22:43:22 +00:00
Julian Smart
7885636055 Style removal fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 22:23:08 +00:00
Paul Cornett
9bcce52d3f don't clear m_items before deleting m_menu (partial backport of r49263)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 18:12:55 +00:00
Paul Cornett
0913baedc3 fix memory leak when wxMenu is used as a popup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51360 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 17:59:11 +00:00
Julian Smart
d06f01b7a2 Optimization correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 17:28:41 +00:00
Vadim Zeitlin
d05fe24689 fix assert when calling ExpandAll() on hidden root item (bug 1768282)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-24 11:23:30 +00:00
Julian Smart
4d6022b2c6 ABI compatibility
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-23 13:03:22 +00:00
Julian Smart
00ba76f198 Splittree header commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-23 07:29:48 +00:00
Stefan Csomor
27aa92bfa0 fixing 1877182
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-22 13:59:45 +00:00
Václav Slavík
a9cb1b92a3 use xdg-open in wxLaunchDefaultBrowser() on Unix if available
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-22 10:19:39 +00:00
Julian Smart
8bd0636fca Added event handler macro
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-22 08:23:44 +00:00
Václav Slavík
2ce6b01ba5 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/branches/WX_2_8_BRANCH@51314 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-21 17:16:15 +00:00
Václav Slavík
8439c5e20e C++ files are not executable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-21 16:30:13 +00:00
Stefan Neis
0ed66b8299 Applied patch #1875242 - fixing more bugs related to using OS/2's DevQueryCaps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-19 14:10:36 +00:00
Vadim Zeitlin
479ba6e11e use bgcolor when restoring styles as this is what we write, not backgroundcolor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-19 03:42:05 +00:00
Vadim Zeitlin
87c5dec670 skip focus events after handling them in wxTextCtrl, otherwise they never reach wxApp (bug 1875046)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-19 03:35:47 +00:00
Stefan Neis
e5a898b54d Fixed errors in OS/2's wxDC::SetMapMode (patch #1871556, needed for Filezilla).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-01-18 21:38:26 +00:00