Julian Smart
e015d1f7da
Applied patch [ 603858 ] wxTextCtrl text alignment patch
...
Benjamin I. Williams
This patch implements three new flags for the
wxTextCtrl control. The flags are wxTE_LEFT,
wxTE_CENTRE, and wxTE_RIGHT. These flags can change
the way text is aligned inside an edit control, which
is useful when the user is editing numbers or dates.
At Vadim's recommendation, the patch implements the
alignment flags so they are equal to the corresponding
wxALIGN_* value. wxTE_LEFT is actually 0x0000, and is
just a place holder. wxTE_CENTRE is equal to
wx_ALIGN_CENTER_HORIZONTAL (0x0100), and wxTE_RIGHT is
equal to wxALIGN_RIGHT (0x0100). I couldn't agree more
with this idea.
As Vadim pointed out, choosing to set the text
alignment flags to the corresponding wxALIGN_* flags
has a slight negative side effect: the values 0x0100
and 0x0200 collide with the existing flags
wxTE_NO_VSCROLL and wxTE_AUTO_SCROLL. A valid point
was raised, however, which stated that the flags would
never really be used at the same time, and also that
wxTE_AUTO_SCROLL is (possibly) going to be deprecated
anyway.
While this collision is not really a problem, I didn't
like the idea of someone specifying wxTE_NO_VSCROLL and
ending up with with a centered text control ! Thus, I
chose to move both wxTE_NO_VSCROLL and wxTE_AUTO_SCROLL
down to the free bits 0x0002 and 0x0008, respectively.
I'll leave the final say up to Vadim and the rest of
you whether you want to move these flags down or keep
them where they are (with collisions). What truly
matters to me is that I can now create text controls
with the proper alignment!
This patch also updates the documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 16:15:30 +00:00
Gilles Depeyrot
85d5e282e9
-o flag must be after PIC flag for gcc under HPUX
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 16:15:06 +00:00
Julian Smart
2385ec429a
Added #include <ctype.h> since it seems to have
...
gone missing from this file for non-Unicode
cases.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 14:56:34 +00:00
Gilles Depeyrot
06313569d8
added -D_REENTRANT for hpux when threads are enabled
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 13:59:18 +00:00
David Webster
5efff1479e
Fix for child window positioning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 13:54:24 +00:00
Stefan Csomor
1b2a04da9a
corrected code for doubles
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 12:42:16 +00:00
Gilles Depeyrot
ad2622f15d
corrected HPUX specific test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16983 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 12:28:30 +00:00
Vadim Zeitlin
57351df0a6
fix Union(empty rect) bug
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 10:54:30 +00:00
Václav Slavík
c601df457c
compilation fix for wxUSE_WCHAR_T=0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 22:17:09 +00:00
Václav Slavík
2af6b4c37f
use own mutex for region iterator locking, not gui one
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 22:07:25 +00:00
Václav Slavík
7e2f4683db
why the heck was the flag changed to T from Theme?! Broke my makefiles...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 22:07:19 +00:00
Václav Slavík
77ab277914
compilation fix for wxUSE_WCHAR_T=0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 22:07:12 +00:00
Václav Slavík
a682b31c35
added watmgl.t to Makefile
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 22:07:00 +00:00
Václav Slavík
28e40b1e06
whoever added mdig.cpp forgot to update the makefiles
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 22:06:50 +00:00
Mattia Barbon
b8ddac49a3
Missing #include
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 16:42:53 +00:00
Vadim Zeitlin
a8ddb18623
should fix Unicode build for BC++ 5.3
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 15:06:46 +00:00
Vadim Zeitlin
ca8e52b3d2
don't use -mthreads switch if the compiler doesn't support it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 15:04:10 +00:00
Vadim Zeitlin
2bffed64c5
make --static default if configured with --disable-shared
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16972 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 14:56:55 +00:00
Vadim Zeitlin
2076893b53
use standard colour for the selected tree item text as well as background
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16971 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 14:30:25 +00:00
Vadim Zeitlin
8705ab68e2
mention that wxBase builds with BC++ now
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 14:21:51 +00:00
Vadim Zeitlin
798265916e
fix crash if Delete menu command is used twice
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 13:50:58 +00:00
Vadim Zeitlin
8161b5b9f0
fix wxCheckListBox which was completely broken by the Unicode changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 13:45:39 +00:00
David Webster
f0b47621e9
For OS/2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 13:39:02 +00:00
Vadim Zeitlin
390015c0ee
generic status bar now:
...
1. works correctly (handles negative widths according to the docs/MSW/Univ)
2. has shorter and simpler GetFieldRect() implementation
3. ... which is also more efficient (pixel widths are cached)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 13:16:46 +00:00
Chris Elliott
333e110dab
move code from .h to .cpp to prevent Borland warning
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 12:24:45 +00:00
Vadim Zeitlin
a42de1303a
fix wxBase apps compilation after ProcessIdle() change from the patch 588734
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 11:45:06 +00:00
Chris Elliott
b7b45f6ffc
Introducing wxBase for borland based on Michael Fieldings patch 598106
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 11:16:46 +00:00
Gilles Depeyrot
b261fbf3dc
SetBackground with a bitmap is only implemented in wxUniversal
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 11:14:55 +00:00
Chris Elliott
8c3288a7b6
Introducing wxBase for borland based on Michael Fieldings patch 598106
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 10:56:49 +00:00
Chris Elliott
95f102ab59
Introducing wxBase for borland based on Michael Fieldings patch 598106
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 10:47:11 +00:00
Ron Lee
0e080be64b
Added (and documented) GetTraceMasks so userspace can probe the currently
...
allowed masks. IMO its omission is a bug and it's non-threatening to
the freeze, so..
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-04 09:35:13 +00:00
David Webster
f5ea767eb8
More OS/2 update to fix some owner drawn things
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 22:26:53 +00:00
Julian Smart
a715019788
Avoid using wxTextCtrl::SaveFile with no arg
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 20:36:58 +00:00
Gilles Depeyrot
b2fee376fd
disable Darwin GCC precompiled headers by default also for wxBase
...
integrate includes into preprocessor flags instead of both C and C++ flags
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 20:13:19 +00:00
Mattia Barbon
7975104d4a
Small clarification in ::wxShowTip docs.
...
Added a wxPerl note to wxWindow::GetHandle
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 19:34:34 +00:00
Mattia Barbon
93ff73b308
gettext (correctly) uses "1 message" (singular).
...
Take that into account in make stats.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16954 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 19:32:03 +00:00
Gilles Depeyrot
a1f9e3ec5d
disable use of #pragma interface under Mac OS X
...
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16953 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 19:17:56 +00:00
Julian Smart
d38e8d5f34
Changed char* to wxChar*
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16952 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 11:22:56 +00:00
David Webster
1de4baa31f
Notebook, Listbox, and Checklst updates
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16951 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 04:47:39 +00:00
Ron Lee
a85030bd90
sorry, removing /usr/include breaks the macros we use to detect -lGL and co.
...
They'll need to be fixed first if this really is the right fix. (and I'm not
sure what the original problem was, so...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16950 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-03 04:43:37 +00:00
Vadim Zeitlin
0c0cee1ed3
removed GetObjectType() ghost
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 23:23:28 +00:00
Julian Smart
8c3289daa4
More casting to make gcc 3.2 behave.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16948 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 22:47:22 +00:00
Julian Smart
f9c62cfcdd
And some more casting
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 22:00:37 +00:00
Julian Smart
a336f999c2
Added size_t cast to disambiguate array usage.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 21:54:42 +00:00
Vadim Zeitlin
ce209cf15b
removed /usr/include from SEARCH_INCLUDE -- this should fix wxMotif/AIX compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 20:10:21 +00:00
Vadim Zeitlin
d2c7015bf0
old compilation fix for AIX from Ian Brown
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 20:08:16 +00:00
Vadim Zeitlin
f02444d0d7
define _FILE_OFFSET_BITS/_LARGE_FILES on the compiler command line instead of wx/setup.h to make sure they're always defined when needed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16943 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 19:53:54 +00:00
Gilles Depeyrot
1bfec677b1
avoid warning for duplicate defined wxEntry when compiling with the Apple
...
Developer Tools (already defined in common include)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16942 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 19:17:52 +00:00
Gilles Depeyrot
57530dba85
use "..." for wx includes instead of <...>
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16941 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 19:16:32 +00:00
Gilles Depeyrot
7b108a5e8c
disable use of #pragma interface under Mac OS X
...
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-02 19:15:40 +00:00