Version: 3.1.3
scrolwin.h File Reference

Classes

class  wxScrolled< T >
 The wxScrolled class manages scrolling for its client area, transforming the coordinates according to the scrollbar positions, and setting the scroll positions, thumb sizes and ranges according to the area in view. More...
 

Typedefs

typedef wxScrolled< wxPanelwxScrolledWindow
 Scrolled window derived from wxPanel. More...
 
typedef wxScrolled< wxWindowwxScrolledCanvas
 Alias for wxScrolled<wxWindow>. More...
 

Enumerations

enum  wxScrollbarVisibility {
  wxSHOW_SB_NEVER = -1,
  wxSHOW_SB_DEFAULT,
  wxSHOW_SB_ALWAYS
}
 Possible values for the second argument of wxScrolled::ShowScrollbars(). More...
 

Functions

bool wxCreateScrolled (T *self, wxWindow *parent, wxWindowID winid, const wxPoint &pos, const wxSize &size, long style, const wxString &name)
 Helper function which is called from wxScrolled::Create() to actually create a scrolled window. More...
 

Enumeration Type Documentation

Possible values for the second argument of wxScrolled::ShowScrollbars().

Enumerator
wxSHOW_SB_NEVER 

Never show the scrollbar at all.

wxSHOW_SB_DEFAULT 

Show scrollbar only if it is needed.

wxSHOW_SB_ALWAYS 

Always show scrollbar, even if not needed.

Function Documentation

bool wxCreateScrolled ( T *  self,
wxWindow parent,
wxWindowID  winid,
const wxPoint pos,
const wxSize size,
long  style,
const wxString name 
)

Helper function which is called from wxScrolled::Create() to actually create a scrolled window.

By default it just passes the call to the base class Create():

1 self->Create(parent, winid, pos, size, style, name);

You should provide overloaded implementation of this function for the custom base class if this class is created in a different manner, like it is e.g. done for wxControl:

1 bool wxCreateScrolled(wxControl* self,
2  wxWindow *parent, wxWindowID winid,
3  const wxPoint& pos, const wxSize& size,
4  long style, const wxString& name)
5 {
6  return self->Create(parent, winid, pos, size, style, wxDefaultValidator, name);
7 }
Since
3.1.3