wxWidgets/samples
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
..
artprov disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
calendar disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
caret updated CW exported xml projects 2002-08-24 20:57:15 +00:00
checklst For OS/2 2002-09-04 13:39:02 +00:00
config fix crash if Delete menu command is used twice 2002-09-04 13:50:58 +00:00
console added tests for wxString::To/FromAscii 2002-08-20 15:07:51 +00:00
controls made it compile with wxUniv (which doesn't have tooltips) 2002-08-27 20:26:56 +00:00
db use include "..." instead of <...> 2002-08-31 22:36:13 +00:00
dialogs For OS/2 2002-09-04 13:39:02 +00:00
dialup Patch [ 584078 ] Misc samples fixes from Dimitri Schoolwerth 2002-08-01 19:12:24 +00:00
dnd updated CW exported xml projects 2002-08-24 20:57:15 +00:00
docview updated CW exported xml projects 2002-08-24 20:57:15 +00:00
docvwmdi updated CW exported xml projects 2002-08-24 20:57:15 +00:00
dragimag updated CW exported xml projects 2002-08-24 20:57:15 +00:00
drawing disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
dynamic disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
erase disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
event disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
exec disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
font updated CW exported xml projects 2002-08-24 20:57:15 +00:00
grid updated CW exported xml projects 2002-08-24 20:57:15 +00:00
help updated CW exported xml projects 2002-08-24 20:57:15 +00:00
html disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
image For OS/2 2002-09-04 13:39:02 +00:00
internat disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
ipc Applied patch [ 600051 ] DDE and TCP improvements and fixes 2002-09-01 14:48:16 +00:00
joytest updated CW exported xml projects 2002-08-24 20:57:15 +00:00
keyboard updated CW exported xml projects 2002-08-24 20:57:15 +00:00
layout updated CW exported xml projects 2002-08-24 20:57:15 +00:00
listbox updated CW exported xml projects 2002-08-24 20:57:15 +00:00
listctrl added icons to virtual list mode 2002-08-27 09:38:11 +00:00
mdi updated CW exported xml projects 2002-08-24 20:57:15 +00:00
memcheck Added __WXX11__ tests where appropriate 2002-03-21 10:32:18 +00:00
menu For OS/2 2002-09-04 13:39:02 +00:00
mfc patch from Dimitri fixing a few memory leaks and unTABbing the sources 2002-03-17 14:16:03 +00:00
minifram updated CW exported xml projects 2002-08-24 20:57:15 +00:00
minimal For OS/2 2002-09-04 13:39:02 +00:00
mobile SetBackground with a bitmap is only implemented in wxUniversal 2002-09-04 11:14:55 +00:00
multimon Applied patch [ 573644 ] wxDisplay for Mac (again) 2002-07-19 20:42:34 +00:00
nativdlg patch from Dimitri fixing a few memory leaks and unTABbing the sources 2002-03-17 14:16:03 +00:00
newgrid updated CW exported xml projects 2002-08-24 20:57:15 +00:00
notebook For OS/2 2002-09-04 13:39:02 +00:00
oleauto Added __WXX11__ tests where appropriate 2002-03-21 10:32:18 +00:00
opengl disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
ownerdrw removed a few warnings and CW compilation problems (patch from Dimitri) 2002-03-27 18:43:13 +00:00
png disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
printing disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
proplist disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
propsize disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
regtest updated CW exported xml projects 2002-08-24 20:57:15 +00:00
resource updated CW exported xml projects 2002-08-24 20:57:15 +00:00
richedit updated CW exported xml projects 2002-08-24 20:57:15 +00:00
rotate updated CW exported xml projects 2002-08-24 20:57:15 +00:00
sashtest updated CW exported xml projects 2002-08-24 20:57:15 +00:00
scroll For OS/2 2002-09-04 13:39:02 +00:00
scrollsub updated CW exported xml projects 2002-08-24 20:57:15 +00:00
sockets disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
splitter updated CW exported xml projects 2002-08-24 20:57:15 +00:00
statbar disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
stc Applied patch [ 571965 ] update stc contrib stuff 2002-06-23 14:01:57 +00:00
svg svg Unix fix 2002-06-21 09:46:32 +00:00
tab updated CW exported xml projects 2002-08-24 20:57:15 +00:00
taskbar Applied patch [ 603858 ] wxTextCtrl text alignment patch 2002-09-05 16:15:30 +00:00
text updated CW exported xml projects 2002-08-24 20:57:15 +00:00
thread updated CW exported xml projects 2002-08-24 21:08:41 +00:00
toolbar For OS/2 2002-09-04 13:39:02 +00:00
treectrl ignore files produced when building samples 2002-08-24 20:19:34 +00:00
treelay updated CW exported xml projects 2002-08-24 21:08:41 +00:00
typetest disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
validate updated CW exported xml projects 2002-08-24 21:08:41 +00:00
widgets fixed the button alignment flags 2002-09-02 12:29:44 +00:00
wizard disable use of #pragma interface under Mac OS X 2002-08-31 22:31:03 +00:00
wxtest ignore files produced when building samples 2002-08-24 20:19:34 +00:00
xrc Applied [ 594925 ] Implement wxArtProvider and XRC together 2002-08-16 11:24:46 +00:00
.cvsignore ignore samples workspace files 2001-10-10 01:15:51 +00:00
configure added propsize to the list of samples 2002-08-21 18:41:23 +00:00
configure.in added propsize to the list of samples 2002-08-21 18:41:23 +00:00
makefile.b32 Applied docview patch 2002-04-12 13:15:44 +00:00
makefile.dos Applied docview patch 2002-04-12 13:15:44 +00:00
makefile.g95 Applied docview patch 2002-04-12 13:15:44 +00:00
Makefile.in replaced make with $MAKE 2000-03-11 16:38:01 +00:00
makefile.vc Applied docview patch 2002-04-12 13:15:44 +00:00
samples.dsw Applied docview patch 2002-04-12 13:15:44 +00:00