Commit Graph

21272 Commits

Author SHA1 Message Date
Robin Dunn
9ba691fd6a Add an implementation of wxCairoContext::DrawBitmap
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-28 21:42:09 +00:00
Robin Dunn
483efacde6 Fix runtime crash in wxStdDialogButtonSizer. Don't set the label on a
button we don't have.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-28 21:40:32 +00:00
Vadim Zeitlin
49baf35105 don't generate size events when the window is unmapped, this is at best unnecessary and also breaks window layout in some situations [backport from HEAD rev 1.683]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-27 20:52:10 +00:00
Vadim Zeitlin
db122f4a78 removed erroneous return in DoSetFont() [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-27 14:06:58 +00:00
Robin Dunn
ee059415c1 Allow using a memory dc (or a buffered dc) as the target of
a wx.GraphicsContext.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-26 23:28:04 +00:00
Vadim Zeitlin
df1a8b2e0c interpret stringsinvalid in current encoding as ISO8859-1 instead of discarding them completely [backport from HEAD]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-26 10:00:35 +00:00
Julian Smart
83d4d9efdf Fixed a control-arrow bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-23 10:30:40 +00:00
Julian Smart
1c44e75697 Fixed a confusion between window and client size that could lead to
gradually increasing window size on repeated layout, by duplicate
application of the client to window size conversion.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-22 17:57:05 +00:00
Robin Dunn
20a3ae94cc Support wxTELETYPE font family
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-21 23:41:35 +00:00
Robin Dunn
a60374d0de Oops, forgot to remove the commented out code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44549 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-21 22:28:36 +00:00
Robin Dunn
ea91c399c5 Use floating point math in wxGCDC::DoDrawEllipticArc. Also removed
the lines closing the arc since wxDC doesn't do that.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44547 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-21 22:24:02 +00:00
Julian Smart
90cd8c2729 Applied [ 1613294 ] wxGetMouseState/wxIsKeyDown bug
(troelsk - allow for left-handed mouse)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-21 15:07:26 +00:00
Julian Smart
8a6dda6ff7 Fixed a problem with tabs when text spills over the end of the tab stops
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-20 12:54:44 +00:00
Julian Smart
1b8dc48cde Ignore Windows key
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-20 07:57:54 +00:00
Robin Dunn
dc44ffb35e Add implementations for:
wxCairoPathData::AddPath
    wxCairoContext::Clip
    wxCairoContext::ResetClip
    wxCairoContext::GetTextExtent

Adjusted the baseline-relative DrawText to be offset by the ascent.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44533 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-20 02:12:47 +00:00
Julian Smart
49a0fc52cf Layout correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@44525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-02-19 18:32:07 +00:00
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