respect minimal wxTLW size in wxUniv

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14113 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2002-02-10 19:08:54 +00:00
parent 6feddea302
commit e7dda1ffa3
18 changed files with 333 additions and 99 deletions

View File

@@ -61,6 +61,9 @@ public:
virtual void PositionToolBar();
#endif // wxUSE_TOOLBAR
virtual int GetMinWidth() const;
virtual int GetMinHeight() const;
protected:
void OnSize(wxSizeEvent& event);

View File

@@ -412,6 +412,9 @@ public:
// get size of whole top level window, given size of its client area size
virtual wxSize GetFrameTotalSize(const wxSize& clientSize, int flags) const = 0;
// get the minimal size of top level window
virtual wxSize GetFrameMinSize(int flags) const = 0;
// get titlebar icon size
virtual wxSize GetFrameIconSize() const = 0;
@@ -761,6 +764,8 @@ public:
{ return m_renderer->GetFrameClientArea(rect, flags); }
virtual wxSize GetFrameTotalSize(const wxSize& clientSize, int flags) const
{ return m_renderer->GetFrameTotalSize(clientSize, flags); }
virtual wxSize GetFrameMinSize(int flags) const
{ return m_renderer->GetFrameMinSize(flags); }
virtual wxSize GetFrameIconSize() const
{ return m_renderer->GetFrameIconSize(); }
virtual int HitTestFrame(const wxRect& rect,

View File

@@ -138,6 +138,9 @@ public:
// move/resize the frame interactively, i.e. let the user do it
virtual void InteractiveMove(int flags = wxINTERACTIVE_MOVE);
virtual int GetMinWidth() const;
virtual int GetMinHeight() const;
protected:
// handle titlebar button click event
virtual void ClickTitleBarButton(long button);