added wxSizerFlags::Shaped() and FixedMinSize() methods

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44220 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2007-01-14 16:52:55 +00:00
parent fc2b0e31bb
commit d95527de9a
4 changed files with 39 additions and 0 deletions

View File

@ -91,6 +91,10 @@ Major new features in 2.8 release
2.8.2 2.8.2
----- -----
All:
- Added wxSizerFlags::Shaped() and FixedMinSize() methods
wxMSW wxMSW
- Fix lack of spin control update event when control lost focus - Fix lack of spin control update event when control lost focus

View File

@ -670,6 +670,14 @@ Aligns the object to the left, shortcut for \texttt{Align(wxALIGN\_LEFT)}
\helpref{Align}{wxsizerflagsalign} \helpref{Align}{wxsizerflagsalign}
\membersection{wxSizerFlags::FixedMinSize}\label{wxsizerflagsfixedminsize}
\func{wxSizerFlags\& }{FixedMinSize}{\void}
Set the \texttt{wxFIXED\_MINSIZE} flag which indicates that the initial size of
the window should be also set as its minimal size.
\membersection{wxSizerFlags::Proportion}\label{wxsizerflagsproportion} \membersection{wxSizerFlags::Proportion}\label{wxsizerflagsproportion}
\func{wxSizerFlags\& }{Proportion}{\param{int }{proportion = 0}} \func{wxSizerFlags\& }{Proportion}{\param{int }{proportion = 0}}
@ -688,6 +696,14 @@ Aligns the object to the right, shortcut for \texttt{Align(wxALIGN\_RIGHT)}
\helpref{Align}{wxsizerflagsalign} \helpref{Align}{wxsizerflagsalign}
\membersection{wxSizerFlags::Shaped}\label{wxsizerflagsshaped}
\func{wxSizerFlags\& }{Shaped}{\void}
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::TripleBorder}\label{wxsizerflagstriplebleborder} \membersection{wxSizerFlags::TripleBorder}\label{wxsizerflagstriplebleborder}
\func{wxSizerFlags\& }{TripleBorder}{\param{int }{direction = wxALL}} \func{wxSizerFlags\& }{TripleBorder}{\param{int }{direction = wxALL}}

View File

@ -153,6 +153,23 @@ public:
#endif #endif
} }
#if wxABI_VERSION >= 20802
// setters for the others flags
wxSizerFlags& Shaped()
{
m_flags |= wxSHAPED;
return *this;
}
wxSizerFlags& FixedMinSize()
{
m_flags |= wxFIXED_MINSIZE;
return *this;
}
#endif // wx 2.8.2+
// accessors for wxSizer only // accessors for wxSizer only
int GetProportion() const { return m_proportion; } int GetProportion() const { return m_proportion; }
int GetFlags() const { return m_flags; } int GetFlags() const { return m_flags; }

View File

@ -29,6 +29,8 @@
global: global:
# wxFileHistory::Set/GetBaseId() # wxFileHistory::Set/GetBaseId()
*wxFileHistory*etBaseId*; *wxFileHistory*etBaseId*;
*wxSizerFlags*Shaped*;
*wxSizerFlags*FixedMinSize*;
}; };
# public symbols added in 2.8.1 (please keep in alphabetical order): # public symbols added in 2.8.1 (please keep in alphabetical order):