Commit Graph

18471 Commits

Author SHA1 Message Date
Vadim Zeitlin
af6c0f1de7 don't eat activation events (replaces patch 1465849)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38776 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-17 00:00:58 +00:00
Vadim Zeitlin
a183ddba3e don't return items which are not visible from DoHitTest() (patch 1448508)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 23:41:52 +00:00
Vadim Zeitlin
6493aacaeb centralized the handling of border styles; added borders support for wxListBox and support of other kinds of borders (patch 1448088)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 23:38:26 +00:00
Vadim Zeitlin
1de8d512b7 simplify/cleanup wxTheXXXList and wxGDIObject code (patch 1452023 from Paul Cornett)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 22:33:24 +00:00
Vadim Zeitlin
d0914b9d8d build fixes for wxUSE_LOG==0 (modified patch 1450207)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 22:29:47 +00:00
Vadim Zeitlin
f516d98637 create stock GDI objects on demand; use const with GDI objects appropriately (patch 1445355)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 22:18:29 +00:00
Vadim Zeitlin
051924b886 Handle alpha channel in wxImage::Mirror() and GetSubImage() (patch 1469817)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38762 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 21:37:39 +00:00
Vadim Zeitlin
2936a6b18c implement wxFileModificationTime() in terms of wxFileName::GetTimes() (replaces broken patch 1468592)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 21:24:22 +00:00
Vadim Zeitlin
57e988b8ef added overwrite parameter to wxRenameFile (patch 1467041)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 21:14:00 +00:00
Julian Smart
d5363f57fb Make an image block beore writing it, if there's no data in the block
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38758 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 18:37:09 +00:00
Julian Smart
4bfec1790f Changed the wxPlatform syntax as per Vadim's suggestions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 09:31:06 +00:00
Vadim Zeitlin
760f0fc2f4 set up scrollbars correctly when we don't need them (fixes the problems reported by the patches 1460482 and 1456060)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 01:14:28 +00:00
Vadim Zeitlin
6fb683081c removed unnecessary (the problem is due to a bug elsewhere) test for vertical scroll position in OnScroll() introduced in rev 1.400
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 01:10:28 +00:00
Vadim Zeitlin
cf76cd4eba a tentatively better fix for the problem of patch 1456060: don't use m_linesPerPage directly as it's initialized on demand by GetCountPerPage(); also removed some stray tabs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 00:48:34 +00:00
Julian Smart
55d452c6f9 Typo correction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 19:34:18 +00:00
Julian Smart
230c90774f Easier platform testing class and function
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38746 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 17:40:13 +00:00
Vadim Zeitlin
481203cb23 made width computation in GetTextExtent() more precise, especially for italics fonts (based on the code from Wlodek Szafran)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 15:08:43 +00:00
Stefan Neis
d704d2f5dc Replaced "uint" (which may be or may not be defined depending on platform)
by "guint".


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38741 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 10:01:21 +00:00
Robin Dunn
89a3d0f772 Avoid assert that was hidden by IsStandard bug
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38738 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 06:54:37 +00:00
Robin Dunn
c072c75701 Give wxDataObjectComposite a way to report what kind of data was given
to it from the clipboard or DnD source.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 05:35:08 +00:00
Vadim Zeitlin
619297ab30 slight simplification of coords translation code in GetBoundingRect()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 01:16:52 +00:00
Włodzimierz Skiba
1d94e268dd Deprecated and obsolete parts marked up for backward compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 19:54:51 +00:00
Włodzimierz Skiba
89831b54e6 Deprecated and obsolete parts marked up for backward compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 19:32:51 +00:00
Vadim Zeitlin
bf5752a4a0 respect the specified font encoding in DoGetTextExtent() instead of always using m_font
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 17:34:35 +00:00
Vadim Zeitlin
63916e4494 don't show vertical scrollbar if we don't need it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 17:16:45 +00:00
Włodzimierz Skiba
40ff126ac4 Deprecated and obsolete parts marked up for backward compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 17:01:16 +00:00
Julian Smart
006591def7 Spacing tweak
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 16:25:33 +00:00
Vadim Zeitlin
234b1c0147 reverted wxHVScrolledWindow patch (rev 1.19/1.21 of vscroll.h/.cpp) because not only we don't want to duplicate code like this but it also broke wxHtmlListBox by making scrolling in it O(N) instead of O(1)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38715 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 15:55:28 +00:00
Julian Smart
fac6eaec24 Simulated text labels and toggle highlights under buttons
Removed background colour


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 15:49:57 +00:00
Vadim Zeitlin
959b1a338e fixed bug with not taking background colour into account introduced in 1.24
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 15:22:31 +00:00
Julian Smart
77631b1d81 Implemented Mac-style button toggling within wxButtonToolBar, and line
under toolbar.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 12:40:34 +00:00
Julian Smart
1a1190b245 Allow specification of border spacing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38709 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 12:38:48 +00:00
Václav Slavík
88a1b6485f don't show the I-beam cursor over text in wxHtmlListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38706 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 11:38:36 +00:00
Julian Smart
b887dc7b5a wxButtonToolBar only useful on Mac right now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38705 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 10:09:11 +00:00
Julian Smart
64d3ed176d Steps towards implementing native-style, non-top-level toolbars on Mac
by implementing a toolbar class that uses native buttons.
Ultimately this should allow wxToolbook and wxPropertySheetDialog
classes to look native, when we complete the button API improvements
to combine text, bitmaps and toggling.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 09:15:10 +00:00
Jamie Gadd
44c930ebba Fix bug in GetTimeZone where timezone wasn't set.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-14 03:05:45 +00:00
Václav Slavík
bc55e31bdc 1. added abstract interface to wxHtmlWindow for use by wxHtmlWinParser and implemented it for wxHtmlListBox
2. used the above to implement clickable links support in wxHtmlListBox


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-13 22:08:28 +00:00
Włodzimierz Skiba
e0d5d9af8b All book controls shares wxBK_* flags [bug #1469980].
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-13 18:24:38 +00:00
Julian Smart
9916dbf643 Compile fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-13 14:37:11 +00:00
Julian Smart
87cf52d8ac On screens with restricted space, it's useful to be able to add controls
to e.g. the wxChoice control of a wxChoicebook. GetControlSizer
allows an app to do that, and we also add a control margin which
may or may not be respected by individual book controls.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38698 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-13 14:22:32 +00:00
Jamie Gadd
7a9f5d5a79 Fix casts from void* to int on x86_64 gcc by using wxUIntPtr instead.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-13 12:41:21 +00:00
Vadim Zeitlin
a78c43f158 initialize nulLen to 0 for all compilers as some versions of gcc don't see that it's not used if left uninitialized too (bug 1469637)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-13 12:16:38 +00:00
Stefan Neis
0934d91c7b Fixed GetSelection to behave the same as for the other ports, added
GetCurrentSelection.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38687 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-12 20:31:46 +00:00
Julian Smart
dd456db5e6 Applied patch [ 1463711 ] wxRichTextCtrl fix for pasting text
(too many linefeeds).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-12 13:33:48 +00:00
Vadim Zeitlin
46e86fc347 a better compilation fix after wxGTK_CONV changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-12 00:17:36 +00:00
Vadim Zeitlin
c334a69083 removed spurious if in DoGradientFillLinear()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 21:28:12 +00:00
Vadim Zeitlin
b8f3257625 compilation fix after wxGTK_CONV changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 21:24:52 +00:00
Stefan Csomor
0c81ef7fce Ryan's patch 1468129 ,
1) Don't hog mouse events from other windows
2) Don't crash on mouse and other events when a bad file is loaded
3) Correctly detect whether a file can be loaded or not (Forgot to call ::ClearMoviesStickyError())
4) Real workaround for the wxNotebook issue (by using offscreen GWorld)
5) Nuke of CreateMovieControl version and many other cleanups


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 05:53:55 +00:00
Stefan Csomor
786a9df157 Ryan's patch 1467727 , removing the SetValue from SetRange when not needed and some cleanups
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38672 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 05:45:31 +00:00
Vadim Zeitlin
4693d68648 removed wxGTK2 hack, not needed any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38670 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-11 01:37:36 +00:00