wxWidgets/samples/grid
Vadim Zeitlin cfbc15ee04 Allow changing horizontal alignment of numeric cells in wxGrid.
wxGridCellAttr didn't provide any way to query its alignment attributes
without falling back to the (always defined) default alignment so the code in
wxGridCellNumberRenderer and similar classes simply always used right
alignment,

Add a new wxGridCellAttr::GetNonDefaultAlignment() function which allows to
retrieve the alignment defined in the attribute and use it to use right
alignment by default but allow overriding it.

Add a test to the sample showing a non right-aligned numeric cell.

Incidentally fix a long-standing bug in wxGridCell{DateTime,Enum}Renderers
which used wxRIGHT instead of wxALIGN_RIGHT and so were not aligned properly
even by default.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-11-27 01:47:38 +00:00
..
bitmap1.bmp
bitmap2.bmp
grid_vc7.vcproj Rebake after last commit. 2009-11-18 19:22:58 +00:00
grid_vc8.vcproj Rebake after last commit. 2009-11-18 19:22:58 +00:00
grid_vc9.vcproj Rebake after last commit. 2009-11-18 19:22:58 +00:00
grid.bkl add headers to the samples' bakefiles so that they show up in MSVC project files 2009-03-04 11:47:32 +00:00
grid.dsp Rebake everything using bakefile 0.2.7. 2009-10-22 16:53:10 +00:00
griddemo.cpp Allow changing horizontal alignment of numeric cells in wxGrid. 2009-11-27 01:47:38 +00:00
griddemo.h Added support for corner, row and column headers renderers to wxGrid. 2009-09-14 00:45:29 +00:00
griddemo.rc
griddemoM7.mcp
makefile.bcc Rebake after last commit. 2009-11-18 19:22:58 +00:00
makefile.gcc Rebake after last commit. 2009-11-18 19:22:58 +00:00
Makefile.in Rebake after last commit. 2009-11-18 19:22:58 +00:00
makefile.unx Rebaked using post-0.2.7 svn version of bakefile. 2009-10-23 17:48:21 +00:00
makefile.vc Rebake after last commit. 2009-11-18 19:22:58 +00:00
makefile.wat Rebake after last commit. 2009-11-18 19:22:58 +00:00