From ccee328e0b1f593067e7af51ddd8f0c68cfcff40 Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Wed, 31 Jan 2007 03:26:31 +0000
Subject: [PATCH] Added wxSizerFlags::Top() and Bottom()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/changes.txt        |  5 +++++
 docs/latex/wx/sizer.tex | 24 ++++++++++++++++++++++++
 include/wx/sizer.h      |  2 ++
 3 files changed, 31 insertions(+)

diff --git a/docs/changes.txt b/docs/changes.txt
index 1872c2a441..e5bd0f3e5b 100644
--- a/docs/changes.txt
+++ b/docs/changes.txt
@@ -18,6 +18,11 @@ Major new features in this release
 ----------------------------------
 
 
+2.9.0
+-----
+
+- Added wxSizerFlags::Top() and Bottom()
+
 
 2.8.2
 -----
diff --git a/docs/latex/wx/sizer.tex b/docs/latex/wx/sizer.tex
index a90b83bffd..81fbcb2e48 100644
--- a/docs/latex/wx/sizer.tex
+++ b/docs/latex/wx/sizer.tex
@@ -596,8 +596,10 @@ Note that if this method is not called, the wxSizerFlags has no specified alignm
 
 \wxheading{See also}
 
+\helpref{Top}{wxsizerflagstop},\\
 \helpref{Left}{wxsizerflagsleft},\\
 \helpref{Right}{wxsizerflagsright},\\
+\helpref{Bottom}{wxsizerflagsbottom},\\
 \helpref{Centre}{wxsizerflagscentre}
 
 
@@ -615,6 +617,17 @@ default size, as returned by \helpref{GetDefaultBorder}{wxsizerflagsgetdefaultbo
 is used.
 
 
+\membersection{wxSizerFlags::Bottom}\label{wxsizerflagsbottom}
+
+\func{wxSizerFlags\& }{Bottom}{\void}
+
+Aligns the object to the bottom, shortcut for \texttt{Align(wxALIGN\_BOTTOM)}
+
+\wxheading{See also}
+
+\helpref{Align}{wxsizerflagsalign}
+
+
 \membersection{wxSizerFlags::Center}\label{wxsizerflagscenter}
 
 \func{wxSizerFlags\& }{Center}{\void}
@@ -704,6 +717,17 @@ Set the \texttt{wx\_SHAPED} flag which indicates that the elements should
 always keep the fixed width to height ratio equal to its original value.
 
 
+\membersection{wxSizerFlags::Top}\label{wxsizerflagstop}
+
+\func{wxSizerFlags\& }{Top}{\void}
+
+Aligns the object to the top, shortcut for \texttt{Align(wxALIGN\_TOP)}
+
+\wxheading{See also}
+
+\helpref{Align}{wxsizerflagsalign}
+
+
 \membersection{wxSizerFlags::TripleBorder}\label{wxsizerflagstriplebleborder}
 
 \func{wxSizerFlags\& }{TripleBorder}{\param{int }{direction = wxALL}}
diff --git a/include/wx/sizer.h b/include/wx/sizer.h
index d477a2e0f4..4b5c06f6cf 100644
--- a/include/wx/sizer.h
+++ b/include/wx/sizer.h
@@ -75,8 +75,10 @@ public:
     // some shortcuts for Align()
     wxSizerFlags& Centre() { return Align(wxCENTRE); }
     wxSizerFlags& Center() { return Centre(); }
+    wxSizerFlags& Top() { return Align(wxALIGN_TOP); }
     wxSizerFlags& Left() { return Align(wxALIGN_LEFT); }
     wxSizerFlags& Right() { return Align(wxALIGN_RIGHT); }
+    wxSizerFlags& Bottom() { return Align(wxALIGN_BOTTOM); }
 
     // default border size used by Border() below
     static int GetDefaultBorder()
-- 
2.50.0

