Added knowledge of virtual size to wx(Scrolled)Windows, they can now
manage their own scrollbars with the help of a sizer or other user clues (SetVirtualSizeHints) without the need for an ancillary container. Added SetSizerAndFit convenience method. SetSizer now enables/disables AutoLayout automagically. Logic bugfix for scrollsub sample. Syntax bugfix in parser.y. Compiler warning fix in textctrl.cpp. Modified Files: docs/latex/wx/scrolwin.tex docs/latex/wx/sizer.tex docs/latex/wx/window.tex include/wx/scrolwin.h include/wx/sizer.h include/wx/window.h include/wx/generic/scrolwin.h include/wx/gtk/scrolwin.h samples/scrollsub/scrollsub.cpp src/common/parser.y src/common/sizer.cpp src/common/wincmn.cpp src/generic/scrlwing.cpp src/gtk/scrolwin.cpp src/msw/textctrl.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// Name: sizer.h
|
||||
// Purpose: provide wxSizer class for layouting
|
||||
// Author: Robert Roebling and Robin Dunn
|
||||
// Modified by:
|
||||
// Modified by: Ron Lee
|
||||
// Created:
|
||||
// RCS-ID: $Id$
|
||||
// Copyright: (c) Robin Dunn, Dirk Holtwick and Robert Roebling
|
||||
@@ -185,7 +185,9 @@ public:
|
||||
virtual void Layout();
|
||||
|
||||
void Fit( wxWindow *window );
|
||||
void FitInside( wxWindow *window );
|
||||
void SetSizeHints( wxWindow *window );
|
||||
void SetVirtualSizeHints( wxWindow *window );
|
||||
|
||||
wxList& GetChildren()
|
||||
{ return m_children; }
|
||||
@@ -200,7 +202,10 @@ protected:
|
||||
|
||||
wxSize GetMaxWindowSize( wxWindow *window );
|
||||
wxSize GetMinWindowSize( wxWindow *window );
|
||||
wxSize GetMaxClientSize( wxWindow *window );
|
||||
wxSize GetMinClientSize( wxWindow *window );
|
||||
wxSize FitSize( wxWindow *window );
|
||||
wxSize VirtualFitSize( wxWindow *window );
|
||||
|
||||
virtual void DoSetMinSize( int width, int height );
|
||||
virtual bool DoSetItemMinSize( wxWindow *window, int width, int height );
|
||||
|
Reference in New Issue
Block a user