Vadim Zeitlin
3368424ae8
don't accept focus in book control itself
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 22:55:35 +00:00
Vadim Zeitlin
de160b0647
don't use wxControlContainer if wxHAS_NATIVE_TAB_TRAVERSAL is defined (currently it never is)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 22:41:11 +00:00
Vadim Zeitlin
ad02525dad
don't check whether the window is shown and enabled in AcceptsFocus() itself
...
as it makes overriding it in derived classes problematic; provide a separate
non virtual CanAcceptFocus() method checking whether the window accepts focus
and if it can accept it now and use it instead of AcceptsFocus(); documented
AcceptsFocus() and AcceptsFocusFromKeyboard()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 22:36:24 +00:00
Vadim Zeitlin
4542739ccb
why was this class made a wxControlContainer (rev. 1.7), this doesn't seem to make sense -- and if it does it should probably be done at the base class level, not here
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 21:17:19 +00:00
Václav Slavík
2233af93b0
remove wxStringBase::AllocCopy(), it wasn't used anywhere
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 19:46:05 +00:00
Vadim Zeitlin
16a81f6fe7
remove all the tags for development branch
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 13:54:19 +00:00
Vadim Zeitlin
2dd8d2d7f0
update status bar display when we don't have focus too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 13:43:30 +00:00
Vadim Zeitlin
378b042b98
make wxNO_BORDER work with wxRadioBox (patch 1525406)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 01:57:24 +00:00
Vadim Zeitlin
785d8330bb
respect the current default style in SetValue() (modified patch 1684613)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 01:30:46 +00:00
Vadim Zeitlin
8639b30da1
document GetBufferSize() (patch 1687070)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 00:54:40 +00:00
Vadim Zeitlin
c98543210a
corrected name of wxWS_EX_PROCESS_UI_UPDATES style (part of patch 1686335)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 00:53:13 +00:00
Vadim Zeitlin
38b36b4c67
corrected link to gettext manual (part of patch 1686335)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 00:52:19 +00:00
Vadim Zeitlin
0e2132fd88
extract popup menu item labels from Scintilla sources too (patch 1679509)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45044 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-25 00:51:03 +00:00
Vadim Zeitlin
b1c673942d
moved Write(const wxString&) to .cpp files as they're going to be changed again soon; removed unnecessary casts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45043 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-24 14:42:29 +00:00
Julian Smart
bd3f83f763
Test for encoding conversion success in wxFile::Write to avoid crash
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-24 10:21:48 +00:00
Julian Smart
f3140390f9
Test for encoding conversion success in wxFFile::Write to avoid crash
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-24 10:20:14 +00:00
Vadim Zeitlin
8145496b9b
more changes from 2.8.4 added
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 16:24:11 +00:00
Vadim Zeitlin
b40bf35c76
don't use TPM_RECURSE under NT4, it results in TrackPopupMenu() not showing the menu at all (bug 1663216)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 16:20:30 +00:00
Vadim Zeitlin
c961c0cfca
fixed compilation for Windows compilers now after last change: replaced conversions to ushort and uint with a conversion to wint_t but do it for (non-Apple) gcc only
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 15:16:08 +00:00
Vadim Zeitlin
2a686bd333
added conversions to unsigned short: this fixes compilation for some platforms where wint_t is ushort (mingw32)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 15:00:12 +00:00
Kevin Ollivier
e608ff58de
If using the system Window menu on OS X, integrate any Window wxMenu items into the system menu, rather than having duplicate Window menus (current behavior).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:53:55 +00:00
Vadim Zeitlin
9a183206da
compilation fix after wxCStrData changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:20:12 +00:00
Vadim Zeitlin
2e53e220c2
compilation fix after wxCStrData changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:14:42 +00:00
Vadim Zeitlin
15506ffe15
compilation fix after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:13:47 +00:00
Vadim Zeitlin
47a8a4d5cc
make IsEnabled() return false even if the window parent, and not the window itself, is disabled and added IsThisEnabled() implementing the old IsEnabled() behaviour; also significantly simplify the window state management code in all ports by factoring out the common parts in wxWindowBase
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 14:01:53 +00:00
Vadim Zeitlin
68a9527d51
destroy m_impl even if an exception is thrown from the main loop
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 13:24:55 +00:00
Vadim Zeitlin
1a81eea8d4
also removed WXDLLIMPEXP_BASE from friend declaration of wxCStrData
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 12:27:51 +00:00
Václav Slavík
90adbcca75
wxLogGeneric usage compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 09:31:07 +00:00
Vadim Zeitlin
bb650010c8
removed dll export declaration for wxCStrData: it's unneeded because the class is fully inline and creates problems with mingw32 3.4.2 which wanrs about functions defined locally after being declared with dll linkage and then fails to link wxBase DLL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 01:45:17 +00:00
Vadim Zeitlin
ccd4deab6b
fix DLL build with MSVC: it wasn't happy that some functions of a template class were not implemented, so get rid of FromCStrData() and implement its logic in one of the 2 derived classes ctors instead
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-23 00:04:15 +00:00
Václav Slavík
d18c8d3d94
reimplemented wx[W]CharBuffer using templates
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 23:31:08 +00:00
Vadim Zeitlin
17709275f9
added explicit conversion of wxCStrData to const void * to resolve ambiguity between const char * and const unsigned char * conversion when passing s.c_str() to e.g. file output functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 19:24:41 +00:00
Vadim Zeitlin
98c4eb3910
remove wxWINT_T_IS_TYPEDEF as it seems wint_t is always a typedef (although it can be either unsigned short or unsigned int or possibly something else)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 19:13:50 +00:00
Vadim Zeitlin
fb52c2b671
added macros to avoid code repetition when defining comparison operators; use them to replace existing operators in wxUniChar and wxUniCharRef (fixing bug in the operator== and != of the latter) and added comparison operators for const wxChar * and wxCStrData which are needed to compile existing code comparing pointers with s.c_str()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 18:03:02 +00:00
Vadim Zeitlin
dbea442a15
added wxCStrData conversion to const unsigned char * too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 17:28:00 +00:00
Vadim Zeitlin
b77afb41f3
add operator+=(unsigned char) for backwards compatibility and because we generally handle both signed and unisnged chars everywhere; added wxString(const wxCStrData&, size_t) ctor to resolve ambiguity between wxString(const char *, size_t) and wxString(const unsigned char *, size_t) and wxString(const wxString&, size_t) to resolved embiguity for string parameter of ctor
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 17:26:09 +00:00
Vadim Zeitlin
bd72306dc8
added conversion to unsigned int too: this is needed to be able to pass s[n] to standard toxxx/isyyy() functions under Windows when _MBCS is defined as they're mapped to _mbzzz(unsigned int) in this case
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 15:24:28 +00:00
Vadim Zeitlin
6346588525
removed Matches(const wxChar *, int=0) overload: it creates ambiguity with Matches(const wxString&, int=0) one when re.Matches(s.c_str()) is called now that c_str() returns wxCStrData which can be converted to both const wxChar * and wxString
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 15:20:50 +00:00
Vadim Zeitlin
191abe25ad
correct the checked flag in the event generated by checkable menu items (fixes bug introduced in 1.144, patch 1685634)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45013 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 03:01:50 +00:00
Vadim Zeitlin
5a5f4ba417
rename wxlike-libdirname to just wxlike-dirname (patch 1685279)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 02:56:15 +00:00
Vadim Zeitlin
f785bfddbd
don't lose the combobox text when it's opened and closed (patch 1684252, closes bug 1612994)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 02:43:52 +00:00
Vadim Zeitlin
b8ec69e863
use correct background colour for the box label when foreground colour is set (remaining part of patch 1683573)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 02:28:06 +00:00
Vadim Zeitlin
441dfa1d99
call GetTextExtent() after selecting the correct font into DC in PaintForeground(), fixes label drawing for non default font sizes (part of patch 1683573)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45007 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-22 02:25:25 +00:00
Vadim Zeitlin
342a2719e0
use wxIsEmpty() instead of deprecated IsEmpty()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-21 23:36:17 +00:00
Jouk Jansen
8e3d083ba0
Committing in .
...
Updates for OpenVMS support
Modified Files:
wxWidgets/setup.h_vms wxWidgets/src/common/descrip.mms
wxWidgets/src/generic/descrip.mms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-21 10:55:40 +00:00
Jouk Jansen
5992e60b96
Committing in .
...
VMS updates
Modified Files:
descrip.mms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-21 09:54:51 +00:00
Paul Cornett
83dcd78142
revert use of AllocExclusive
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-21 04:29:57 +00:00
Vadim Zeitlin
05cc594ad2
removed extraneous comma at the end of wxGridDirection enum
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-20 21:06:06 +00:00
Vadim Zeitlin
a7f8eb6d0f
removed extraneous semicolons
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-20 21:05:09 +00:00
Vadim Zeitlin
c6ba246b98
no changes, just fixed spelling of 'indeterminate'
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-20 16:23:12 +00:00