e015d1f7da
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 |
||
---|---|---|
.. | ||
tmake | ||
bc.rsp | ||
contrib.rsp | ||
copy_src.bat | ||
copybase.bat | ||
cw_mac.rsp | ||
cw.rsp | ||
dialoged.rsp | ||
docsrc.rsp | ||
dsw_files.zip | ||
expdwild.bat | ||
extradoc.rsp | ||
filerepl.bat | ||
generic.rsp | ||
glcanvas.rsp | ||
gtk.rsp | ||
innobott.txt | ||
innotop.txt | ||
jpeg.rsp | ||
lower.bat | ||
mac.rsp | ||
makeall.bat | ||
makedist.sh | ||
makefile.rsp | ||
makeinno.bat | ||
makewise.bat | ||
makewise.sh | ||
microwin.rsp | ||
mmedia.rsp | ||
motif.rsp | ||
msw.rsp | ||
nplugin.rsp | ||
ogl.rsp | ||
os2.rsp | ||
patch.rsp | ||
process_all_samples_bcb.bat | ||
process_sample_bcb.bat | ||
readme.txt | ||
rearchive.bat | ||
splitwise.cpp | ||
stc.rsp | ||
stubs.rsp | ||
tags.cmd | ||
tardist | ||
tardist.bat | ||
tarmicrowin.sh | ||
tarwxmac | ||
tarwxmotif | ||
tex2rtf.rsp | ||
tiff.rsp | ||
univ.rsp | ||
user.rsp | ||
utilmake.rsp | ||
utils.rsp | ||
vc.rsp | ||
vcupdate.bat | ||
wisebott.txt | ||
wisesys.txt | ||
wisetop.txt | ||
wordstyle.dot | ||
wx_chm.rsp | ||
wx_hlp.rsp | ||
wx_htb.rsp | ||
wx_html.rsp | ||
wx_pdf.rsp | ||
wx_word.rsp | ||
wxrc.rsp | ||
wxtree.rsp | ||
wxwin01.bmp | ||
x11.rsp | ||
xml.rsp | ||
zipdist.bat | ||
zipdist.sh | ||
zipdistinno.bat | ||
zipmac.bat | ||
zipmac.sh | ||
zippatch.bat | ||
zipstc.bat | ||
zipwxmac.bat | ||
zipwxos2.bat | ||
zipxml.bat |
Distribution scripts and lists ----------------------------------------------------------------- This directory (distrib\msw) contains some 4DOS batch files (.bat) and 'response' files (.rsp) to simplify the job of producing distributions. The .rsp files specify which files are associated with a particular module, e.g. wx200vc.rsp refers to the VC++ project files, wx200gen.rsp represents the generic files, wx200msw.rsp specifies the Windows specific files, etc. When making a distribution on Windows, I call zipdist.bat to prepare zip files with everything needed for Windows, GTK and Motif. zipdist then unzips some of them into deliver\wx, removes and adds a few files to perfect the distribution. zipdist then calls 'makewise.bat' to generate a new wxwin2.wse script, for WISE Installer. It takes wisetop.txt, wisebott.txt and adds the section for file installation. (If you've modified wxwin2.wse using WISE Installer, simply compile and run splitwise.exe to put back up-to-date wisetop.txt, wisebott.txt files before running zipdist.) Finally, zipdist runs WISE Installer using a command line argument to produce the setup.* files automatically. Note that although zipdist.bat produces archives for 3 platforms, I only use a subset of these to produce the Windows-specific setup.exe. I then have the option of distributing the zip files as well. You may need to install 4DOS to run these scripts. If anyone wishes to remove 4DOS dependency, that's fine with me. Julian Smart, 11th October 1999