wxWidgets/include/wx
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
..
generic generic status bar now: 2002-09-04 13:16:46 +00:00
gtk fix wxCheckListBox which was completely broken by the Unicode changes 2002-09-04 13:45:39 +00:00
gtk1 fix wxCheckListBox which was completely broken by the Unicode changes 2002-09-04 13:45:39 +00:00
html disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
mac avoid warning for duplicate defined wxEntry when compiling with the Apple 2002-09-02 19:17:52 +00:00
mgl disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
motif wxChoice derives from wxChoiceBase; renamed Append to DoAppend 2002-08-24 10:54:15 +00:00
msw Changed char* to wxChar* 2002-09-03 11:22:56 +00:00
os2 More OS/2 update to fix some owner drawn things 2002-09-03 22:26:53 +00:00
protocol disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
stc
univ
unix disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
x11 Renamed internal GetClientWindow to GetClientAreaWindow so 2002-08-02 08:31:59 +00:00
xrc fixes to newly added i18n code in XRC - don't use it if wxXRC_USE_LOCALE isn't used 2002-09-01 17:11:38 +00:00
.cvsignore
accel.h
app.h fix wxBase apps compilation after ProcessIdle() change from the patch 588734 2002-09-04 11:45:06 +00:00
arrimpl.cpp
artprov.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
bitmap.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
bmpbuttn.h
brush.h
buffer.h use wxWcslen() instead of wcslen() which isn't always available in wxWCharBuffer; do accept NULL in wx[W]CharBuffer ctor as the code elsewhere uses this 2002-08-25 17:14:51 +00:00
build.h
busyinfo.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
button.h updated the comment about the flags meaning 2002-09-02 15:18:25 +00:00
calctrl.h
caret.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
checkbox.h
checklst.h
chkconf.h
choicdlg.h
choice.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
clipbrd.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
clntdata.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cmdline.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cmdproc.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cmndata.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
colordlg.h
colour.h
combobox.h
confbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
config.h
containr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
control.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cshelp.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
ctrlsub.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
cursor.h
dataobj.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
date.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
datetime.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
datetime.inl
datstrm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
db.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dbgrid.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dbkeyg.h
dbtable.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dc.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dcbuffer.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dcclient.h
dcmemory.h
dcprint.h
dcps.h
dcscreen.h
dcsvg.h
dde.h
debug.h move code from .h to .cpp to prevent Borland warning 2002-09-04 12:24:45 +00:00
defs.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dialog.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dialup.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dir.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dirctrl.h
dirdlg.h
display.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dnd.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
docmdi.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
docview.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dragimag.h
dynarray.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dynlib.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
dynload.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
effects.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
encconv.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
event.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
evtloop.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
expr.h
fdrepdlg.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
features.h
ffile.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
file.h compilation fix for wxUSE_WCHAR_T=0 2002-09-04 22:17:09 +00:00
fileconf.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
filedlg.h
filefn.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
filename.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
filesys.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
font.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fontdlg.h
fontenc.h Lots of work to set PangoFontDescription as the 2002-08-06 16:41:31 +00:00
fontenum.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fontmap.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fontutil.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
frame.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fs_inet.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fs_mem.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
fs_zip.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
gauge.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
gdicmn.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
gdiobj.h
geometry.h corrected code for doubles 2002-09-05 12:42:16 +00:00
gifdecod.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
glcanvas.h
grid.h
gsocket.h
hash.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
hashmap.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
help.h
helpbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
helphtml.h
helpwin.h
icon.h
iconbndl.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagbmp.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
image.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imaggif.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagiff.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagjpeg.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imaglist.h
imagpcx.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagpng.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagpnm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagtiff.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
imagxpm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
intl.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
ioswrap.h
ipc.h
ipcbase.h Changed char* to wxChar* 2002-09-03 11:22:56 +00:00
isql.h HWND already typedef'ed when compiling with EMX (OS/2). 2002-08-25 18:25:21 +00:00
isqlext.h
joystick.h
layout.h include the header needed to compile this file 2002-09-02 18:10:39 +00:00
laywin.h
list.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
listbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
listbox.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
listctrl.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
listimpl.cpp
log.h Added (and documented) GetTraceMasks so userspace can probe the currently 2002-09-04 09:35:13 +00:00
longlong.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
matrix.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
mdi.h Applied patch [ 597398 ] Generic MDI, wxNotebook based. 2002-08-20 09:09:55 +00:00
memconf.h
memory.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
memtext.h
menu.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
menuitem.h
metafile.h
mimetype.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
minifram.h
module.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
msgdlg.h
msgout.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
mstream.h
notebook.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
object.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
odbc.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
ownerdrw.h disable use of #pragma interface under Mac OS X 2002-09-02 19:15:40 +00:00
palette.h
panel.h
paper.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
pen.h
platform.h added wxCHECK_GCC_VERSION() macro 2002-08-24 21:28:48 +00:00
popupwin.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
print.h
printdlg.h
prntbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
process.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
progdlg.h
prop.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
propform.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
proplist.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
ptr_scpd.h Applied patch [ 587450 ] Scoped Smart pointers and docs 2002-08-08 09:57:05 +00:00
quantize.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
radiobox.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
radiobut.h
regex.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
region.h
resource.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
sashwin.h
sckaddr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
sckipc.h Changed char* to wxChar* 2002-09-03 11:22:56 +00:00
sckstrm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
scrolbar.h
scrolwin.h
settings.h
setup_redirect.h
sizer.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
slider.h
snglinst.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
socket.h Missing #include 2002-09-04 16:42:53 +00:00
spawnbrowser.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
spinbutt.h
spinctrl.h another part of SetSelection() change I forgot to commit 2002-09-01 20:24:25 +00:00
splash.h
splitter.h
stack.h
statbmp.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
statbox.h
statline.h
stattext.h
statusbr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
strconv.h compilation fix for wxUSE_WCHAR_T=0 2002-09-04 22:17:09 +00:00
stream.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
string.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
sysopt.h
tab.h
tabctrl.h
taskbar.h
tbarbase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
tbarsmpl.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
textbuf.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
textctrl.h Applied patch [ 603858 ] wxTextCtrl text alignment patch 2002-09-05 16:15:30 +00:00
textdlg.h
textfile.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
tglbtn.h
thread.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
thrimpl.cpp
time.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
timer.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
tipdlg.h Applied patch [ 600500 ] Tip-of-day: comments, translatable 2002-08-31 12:08:02 +00:00
tipwin.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
tokenzr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
toolbar.h
tooltip.h
toplevel.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
treebase.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
treectrl.h
treelay.h
txtstrm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
types.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
url.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
utils.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
valgen.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
validate.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
valtext.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
variant.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
vector.h
version.h
vms_x_fix.h
volume.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
wave.h
wfstream.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
window.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
wizard.h my previous backwards compatible fix wasn't really very compatible 2002-08-27 15:37:54 +00:00
wx_cw_cm.h opaque toolbox structs under Classic break access to contrlDefProc 2002-08-24 06:55:46 +00:00
wx_cw_d.h
wx_cw.h
wx_cwc_d.h
wx_cwc.h
wx_cwu_d.h
wx.h
wxchar.h Added #include <ctype.h> since it seems to have 2002-09-05 14:56:34 +00:00
wxexpr.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
wxhtml.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
wxprec.h
wxshlb_cw_d.h
wxshlb_cw.h
wxshlb_cwc_d.h
wxshlb_cwc.h
wxshlba_cw_d.h
wxshlba_cw.h
wxshlba_cwc_d.h
wxshlba_cwc.h
xpmdecod.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
xpmhand.h Added error directive for MSW since no longer needed. 2002-08-07 20:21:26 +00:00
zipstrm.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00
zstream.h disable use of #pragma interface under Mac OS X 2002-08-31 11:29:13 +00:00