Commit Graph

21256 Commits

Author SHA1 Message Date
Julian Smart
24f640b8d9 IsShown shouldn't cause empty sizers to not have their positions calculated
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-16 22:12:58 +00:00
Vadim Zeitlin
cefb28b4d7 don't delete inexistent column indices in DeleteCols() [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-16 17:43:39 +00:00
Julian Smart
f15bea31f9 Added support for hover bitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-16 08:16:37 +00:00
Vadim Zeitlin
42c680d04a fixed LastRead() after Read(wxOutputStream&) (patch 1658301) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-12 19:11:12 +00:00
Robin Dunn
dc02e004d6 Compile fix for Panther
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44482 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-12 18:17:40 +00:00
Vadim Zeitlin
fa63e208ce removed spurious cast of GetTruncatedJDN() return value to WeekDay enum which breaks the code with Watcom (and maybe others) (bug 1618853) [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-12 13:05:47 +00:00
Robert Roebling
d42677b8c8 Backport wxListBox::Insert() changes to 2_8.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-11 14:39:31 +00:00
Vadim Zeitlin
1bd50ac5be don't Printf() the string into itself (replaces patch 1655318) (backport from HEAD)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-11 02:58:33 +00:00
Vadim Zeitlin
7d5be546b1 fit the control when its real contents is attached and not simply (re-)layout it as it has no effect (patch 1644924) (backport from HEAD)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-11 02:34:57 +00:00
Vadim Zeitlin
b54a991894 don't use strlen() to verify the length of the string as it can contain embedded NULs (patch 1643843; closes bug 1642284) (backport from HEAD)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-11 02:24:56 +00:00
Vadim Zeitlin
53c48a7304 write the entire file at once in Flush() instead of doing it line by line (patch 1656509) (backport from HEAD)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-11 02:14:59 +00:00
Vadim Zeitlin
1b5665ea3f update the popup menu item when it's [un]checked too, as it already happens for the items in the main menu bar (backport from HEAD)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-11 00:59:37 +00:00
Julian Smart
90863a014b Don't optimize if there are child windows since children won't be scrolled
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-10 09:41:42 +00:00
Julian Smart
09e161721b Reverted renderer changes and just use window variant within renderer functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-09 14:05:11 +00:00
Julian Smart
8dfd2d0aad Added control size constants to renderer to allow component drawing to match the
window variant, initially on Mac


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-08 17:18:43 +00:00
Julian Smart
869d741e0b Added missing include
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-08 15:48:27 +00:00
Vadim Zeitlin
872ff793e6 added dllexport/import declarations for wxRunningEventLoopCount to fix linking in DLL build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-08 02:32:48 +00:00
Vadim Zeitlin
484f1362b2 update wxChoice value when SetSelection() is called
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-07 17:43:03 +00:00
Vadim Zeitlin
bdcb00e8ec fix compilation after the last change in msw/thread.cpp: we can't use wxEventLoop from there; use the hack described at http://article.gmane.org/gmane.comp.lib.wxwidgets.devel/83190 instead
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-07 16:30:34 +00:00
Julian Smart
bacea03059 Added flag for removing attributes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-07 12:24:17 +00:00
Julian Smart
11ab3d4687 Removed unnecessary assignment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-07 12:21:42 +00:00
Robin Dunn
9358d3e22f Allow wxWANTS_CHARS to be effective on native controls too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 18:15:22 +00:00
Robin Dunn
0711a2d38c Add wxHL_* styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 18:14:08 +00:00
Robin Dunn
c7ffa7e49f Backport Mac optimization to always use Refresh instead of Update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 18:12:49 +00:00
Włodzimierz Skiba
53ab8e0d5f Fixed wxComboBox always sorted in all univ builds (see wxforum.shadonet.com/viewtopic.php?p=53661)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 12:26:33 +00:00
Julian Smart
745cf1fff9 Backported corrections to head
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-06 08:47:45 +00:00
Robin Dunn
be62fdc518 backport from HEAD: don't assert about font face errors, just log it
and use the default


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-05 22:01:44 +00:00
Robin Dunn
4582da584a backport from HEAD:properly clip the area between the scrollbars if needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-05 22:00:50 +00:00
Julian Smart
dde243668f Avoid triggering false update event when setting the initial range
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-05 14:40:55 +00:00
Julian Smart
69e05a2e97 Restored drag position mysteriously removed in revision 1.233
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-05 14:14:46 +00:00
Julian Smart
4642e25987 Typo fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-05 08:45:15 +00:00
Vadim Zeitlin
fa38bddf76 fix assert when the control doesn't have a valid date initially (bug 1648192)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-02 23:41:54 +00:00
Vadim Zeitlin
f30083b960 don't wait for Windows messages in WaitForThread() if we don't dispatch events (should fix the bugs 1523302 and 1650795)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-02 23:22:22 +00:00
Robin Dunn
8aaba8af80 Reset g_lastMouseEvent after processing the mouse button release event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-01 22:54:19 +00:00
Robin Dunn
b80e33a799 Don't capture the mouse until after we're sure we're not sending
wxEVT_GRID_CELL_BEGIN_DRAG


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-01 22:52:01 +00:00
Vadim Zeitlin
8aaf987c83 use wxObject copy ctor, not default ctor, in wxEvent copy ctor (backport from HEAD)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-01 00:10:25 +00:00
Julian Smart
4ea7392787 Added extra hit test style for more accurate reporting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-28 16:57:07 +00:00
Robin Dunn
69d4bbb974 Added wxToolBar::SetTool[Normal|Disabled]Bitmap for wxMSW, wxGTK and wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-25 23:35:07 +00:00
Robin Dunn
d4aca4baf0 Use ChangeValue instead of SetValue when changing the DescriptiveText
in order to not generate unexpected EVT_TEXT events.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-25 23:04:44 +00:00
Vadim Zeitlin
0fac79547e changing text alignment dynamically doesn't always work under XP, recreate the control there too (backport from HEAD)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44308 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-25 15:39:58 +00:00
Chris Elliott
3e6f2f98a1 fix SF bug 1640955
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44299 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-23 09:06:42 +00:00
Bryan Petty
e5ab3bbc9c This commit was manufactured by cvs2svn to create branch
'WX_2_8_BRANCH'.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44296 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-22 21:46:14 +00:00
Stefan Neis
a7dde52f0a Improve resetting table via SetTable (extended version of patch #1636377).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 22:39:56 +00:00
Robin Dunn
5712281c5d Return an empty string from wxDataFormat::GetId if there was an error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 06:58:05 +00:00
Robin Dunn
68585e1770 Add some wxCHECK_MSG's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 06:53:42 +00:00
Robin Dunn
4aab34290a Return an empty string from GetValue if the textctrl is set to the
descriptive text


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 06:47:33 +00:00
Robin Dunn
f24b783af3 Revert menus and toolbars to using wxNewId() too since their IDs can't
be negative either


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 06:43:59 +00:00
Paul Cornett
6d727f6c10 expose handlers are supposed to return a gboolean;
false may be correct, at least it's not random


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 01:58:53 +00:00
Vadim Zeitlin
5f28de16f3 fix infinite recursion when processing navigation keys in panels containing book controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 01:21:45 +00:00
Vadim Zeitlin
0fdd3cc881 reverted last commit, using result of NewControlId() when creating the control (instead of wxID_ANY) results in an assert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-01-21 01:01:39 +00:00